File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
envoy-control-tests/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import org.junit.jupiter.api.extension.RegisterExtension
6
6
import pl.allegro.tech.servicemesh.envoycontrol.assertions.isFrom
7
7
import pl.allegro.tech.servicemesh.envoycontrol.assertions.isOk
8
8
import pl.allegro.tech.servicemesh.envoycontrol.assertions.untilAsserted
9
+ import pl.allegro.tech.servicemesh.envoycontrol.config.RandomConfigFile
9
10
import pl.allegro.tech.servicemesh.envoycontrol.config.consul.ConsulExtension
10
11
import pl.allegro.tech.servicemesh.envoycontrol.config.service.EchoServiceExtension
11
12
import pl.allegro.tech.servicemesh.envoycontrol.config.envoy.EnvoyExtension
@@ -33,9 +34,18 @@ class OutlierDetectionTest {
33
34
@RegisterExtension
34
35
val unhealthyService = EchoServiceExtension ()
35
36
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
+
36
46
@JvmField
37
47
@RegisterExtension
38
- val envoy = EnvoyExtension (envoyControl)
48
+ val envoy = EnvoyExtension (envoyControl, config = RandomConfigFile .copy(configOverride = outlierEjectionConfig) )
39
49
}
40
50
41
51
@Test
You can’t perform that action at this time.
0 commit comments