Skip to content

Commit e4acd9f

Browse files
authored
Temporarily skip test case with sidecar-injected source (#58149)
Sidecars don't yet know how to properly talk to ambient endpoints on a remote network. There is a bug we are working on to fix that, but in the mean time, to make the rest of the tests useful, I'm skipping the tests where sidecars can try to talk to ambient endpoints in another network. The bug tracking resolution of the underlying issue is istio/istio#57878. Signed-off-by: Mikhail Krinkin <[email protected]>
1 parent d8255b1 commit e4acd9f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/integration/ambient/baseline_test.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -951,6 +951,19 @@ spec:
951951
})
952952
}
953953

954+
func sidecarInjected(t framework.TestContext, es ...echo.Target) bool {
955+
t.Helper()
956+
957+
for _, e := range es {
958+
for _, w := range e.WorkloadsOrFail(t) {
959+
if w.Sidecar() != nil {
960+
return true
961+
}
962+
}
963+
}
964+
return false
965+
}
966+
954967
func TestAuthorizationL4(t *testing.T) {
955968
framework.NewTest(t).Run(func(t framework.TestContext) {
956969
applyDrainingWorkaround(t)
@@ -959,6 +972,20 @@ func TestAuthorizationL4(t *testing.T) {
959972
if opt.Scheme != scheme.TCP {
960973
t.Skip("this test is only for L4/TCP")
961974
}
975+
976+
if t.Settings().AmbientMultiNetwork && sidecarInjected(t, src) && !sidecarInjected(t, dst) {
977+
// Currently sidecars cannot talk to ambient endpoints on a remote network.
978+
//
979+
// Sidecars can't use double-HBONE and therefore cannot use ambient E/W gateways.
980+
// And if we filter out all the ambient gateways, due to an old bug/feature, EDS
981+
// generation code, when it can't find any E/W gateways for an endpoint, it just
982+
// assumes that it's directly reachable and does not even try to use HBONE - this
983+
// is not correct.
984+
//
985+
// See the linked bug for more details.
986+
t.Skip("https://github.com/istio/istio/issues/57878")
987+
}
988+
962989
// Ensure we don't get stuck on old connections with old RBAC rules. This causes 45s test times
963990
// due to draining.
964991
opt.NewConnectionPerRequest = true

0 commit comments

Comments
 (0)