Skip to content

Commit

Permalink
Set Stork custom service discovery host (#828)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Gonzalez Granados authored Sep 12, 2022
1 parent 6d267b4 commit 4f5c001
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,13 @@ public class StorkCustomServiceDiscoveryAndLoadBalancerIT {
.withProperty("quarkus.stork.pong.service-discovery.type", "simple")
.withProperty("quarkus.stork.pong-replica.load-balancer.type", "simplelb")
.withProperty("quarkus.stork.pong-replica.service-discovery.type", "simple")
.withProperty("quarkus.stork.pong.service-discovery.pongServicePort", () -> "" + pongService.getPort())
.withProperty("quarkus.stork.pong.service-discovery.pongServicePort", () -> "" + pongService.getURI().getPort())
.withProperty("quarkus.stork.pong-replica.service-discovery.pongReplicaServicePort",
() -> "" + pongReplicaService.getPort());
() -> "" + pongReplicaService.getURI().getPort())
// TODO: https://github.com/quarkusio/quarkus/issues/27870
// following custom service discovery host properties could be removed once the above issue is resolved
.withProperty("quarkus.stork.pong-replica.service-discovery.pongReplicaServiceHost", "localhost")
.withProperty("quarkus.stork.pong.service-discovery.pongServiceHost", "localhost");

@Test
public void verifyStorkCustomServiceDiscoveryAndLoadBalancer() {
Expand Down

0 comments on commit 4f5c001

Please sign in to comment.