forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use latest Stork and refactor extension according to new registrars p…
…rovided in standalone way
- Loading branch information
1 parent
8e6e43d
commit be13dac
Showing
11 changed files
with
20 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
...ation-tests/smallrye-stork-registration/src/main/java/org/acme/ClientCallingResource.java
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
integration-tests/smallrye-stork-registration/src/main/java/org/acme/MyServiceClient.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
...ration-tests/smallrye-stork-registration/src/main/java/org/acme/services/BlueService.java
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
...gration-tests/smallrye-stork-registration/src/main/java/org/acme/services/RedService.java
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
integration-tests/smallrye-stork-registration/src/main/resources/application.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
quarkus.stork.my-service.service-discovery.type=static | ||
|
||
quarkus.stork.my-service.service-registrar.type=static |
14 changes: 6 additions & 8 deletions
14
...n-tests/smallrye-stork-registration/src/test/java/org/acme/ClientCallingResourceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
package org.acme; | ||
|
||
import java.util.HashSet; | ||
import java.util.Set; | ||
import jakarta.inject.Inject; | ||
|
||
import org.acme.services.Registration; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
import io.restassured.RestAssured; | ||
|
||
@QuarkusTest | ||
public class ClientCallingResourceTest { | ||
|
||
@Inject | ||
Registration registration; | ||
|
||
@Test | ||
public void test() { | ||
Set<String> bodies = new HashSet<>(); | ||
for (int i = 0; i < 10; i++) { | ||
bodies.add(RestAssured.get("/api").then().statusCode(200).extract().body().asString()); | ||
} | ||
Assertions.assertEquals(2, bodies.size()); | ||
Assertions.assertNotNull(registration); | ||
} | ||
|
||
} |