From fd999eb835746a8e923dc056b4ffc0f225f8d6bc Mon Sep 17 00:00:00 2001 From: "nastassia.dailidava" Date: Fri, 25 Aug 2023 09:02:26 +0200 Subject: [PATCH] Implemented possibility for configuring traffic splitting, and fallback using aggregate cluster #292 --- .../trafficsplitting/WeightedClustersRoutingTest.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/trafficsplitting/WeightedClustersRoutingTest.kt b/envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/trafficsplitting/WeightedClustersRoutingTest.kt index 3b26d76cf..9042aa8f3 100644 --- a/envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/trafficsplitting/WeightedClustersRoutingTest.kt +++ b/envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/trafficsplitting/WeightedClustersRoutingTest.kt @@ -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() @@ -78,9 +73,6 @@ class WeightedClustersRoutingTest { @RegisterExtension val echoEnvoyDC1 = EnvoyExtension(envoyControl, localService = echoServiceDC1, config) - @JvmField - @RegisterExtension - val envoyDC2 = EnvoyExtension(envoyControl2) } @Test @@ -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)