Skip to content

Commit 6908643

Browse files
committed
fix OutlierDetectionTest
1 parent 5214b15 commit 6908643

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/OutlierDetectionTest.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import org.junit.jupiter.api.extension.RegisterExtension
66
import pl.allegro.tech.servicemesh.envoycontrol.assertions.isFrom
77
import pl.allegro.tech.servicemesh.envoycontrol.assertions.isOk
88
import pl.allegro.tech.servicemesh.envoycontrol.assertions.untilAsserted
9+
import pl.allegro.tech.servicemesh.envoycontrol.config.RandomConfigFile
910
import pl.allegro.tech.servicemesh.envoycontrol.config.consul.ConsulExtension
1011
import pl.allegro.tech.servicemesh.envoycontrol.config.service.EchoServiceExtension
1112
import pl.allegro.tech.servicemesh.envoycontrol.config.envoy.EnvoyExtension
@@ -33,9 +34,18 @@ class OutlierDetectionTest {
3334
@RegisterExtension
3435
val unhealthyService = EchoServiceExtension()
3536

37+
// necessary since Envoy 1.28.0 to keep the same behaviour (https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.28/v1.28.0)
38+
private val outlierEjectionConfig = """
39+
layered_runtime:
40+
layers:
41+
- name: static_layer
42+
static_layer:
43+
envoy.reloadable_features.check_mep_on_first_eject: false
44+
""".trimIndent()
45+
3646
@JvmField
3747
@RegisterExtension
38-
val envoy = EnvoyExtension(envoyControl)
48+
val envoy = EnvoyExtension(envoyControl, config = RandomConfigFile.copy(configOverride = outlierEjectionConfig))
3949
}
4050

4151
@Test

0 commit comments

Comments
 (0)