Skip to content

Commit

Permalink
Implemented possibility for configuring traffic splitting, and fallba…
Browse files Browse the repository at this point in the history
…ck using aggregate cluster #292
  • Loading branch information
nastassia-dailidava committed Aug 25, 2023
1 parent 19714b3 commit fd999eb
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ class WeightedClustersRoutingTest {
val envoyControl =
EnvoyControlClusteredExtension(consul.serverFirst, { properties }, listOf(consul))

@JvmField
@RegisterExtension
val envoyControl2 =
EnvoyControlClusteredExtension(consul.serverSecond, { properties }, listOf(consul))

@JvmField
@RegisterExtension
val echoServiceDC1 = EchoServiceExtension()
Expand All @@ -78,9 +73,6 @@ class WeightedClustersRoutingTest {
@RegisterExtension
val echoEnvoyDC1 = EnvoyExtension(envoyControl, localService = echoServiceDC1, config)

@JvmField
@RegisterExtension
val envoyDC2 = EnvoyExtension(envoyControl2)
}

@Test
Expand All @@ -91,7 +83,7 @@ class WeightedClustersRoutingTest {
echoEnvoyDC1.verifyIsReachable(upstreamServiceDC1, upstreamServiceName)

consul.serverSecond.operations.registerService(upstreamServiceDC2, name = upstreamServiceName)
envoyDC2.verifyIsReachable(upstreamServiceDC2, upstreamServiceName)
echoEnvoyDC1.verifyIsReachable(upstreamServiceDC2, upstreamServiceName)

echoEnvoyDC1.callUpstreamServiceRepeatedly(upstreamServiceDC1, upstreamServiceDC2)
.verifyCallsCountCloseTo(upstreamServiceDC1, 90)
Expand Down

0 comments on commit fd999eb

Please sign in to comment.