diff --git a/test/e2e/framework.go b/test/e2e/framework.go index 3601f2139ba..c8080d58f54 100644 --- a/test/e2e/framework.go +++ b/test/e2e/framework.go @@ -127,6 +127,17 @@ type PodIPs struct { ipStrings []string } +func (p PodIPs) String() string { + res := "" + if p.ipv4 != nil { + res += fmt.Sprintf("IPv4: %s, ", p.ipv4.String()) + } + if p.ipv6 != nil { + res += fmt.Sprintf("IPv6: %s, ", p.ipv6.String()) + } + return fmt.Sprintf("%sIP strings: %s", res, strings.Join(p.ipStrings, ", ")) +} + func (p *PodIPs) hasSameIP(p1 *PodIPs) bool { if len(p.ipStrings) == 0 && len(p1.ipStrings) == 0 { return true diff --git a/test/e2e/ipsec_test.go b/test/e2e/ipsec_test.go index 56090b5a8a5..40a22057097 100644 --- a/test/e2e/ipsec_test.go +++ b/test/e2e/ipsec_test.go @@ -59,6 +59,7 @@ func (data *TestData) readSecurityAssociationsStatus(nodeName string) (up int, c // them ping each other. func TestIPSecTunnelConnectivity(t *testing.T) { skipIfProviderIs(t, "kind", "IPSec tunnel does not work with Kind") + skipIfIPv6Cluster(t) skipIfNumNodesLessThan(t, 2) data, err := setupTest(t) @@ -92,6 +93,7 @@ func TestIPSecTunnelConnectivity(t *testing.T) { // correctly. func TestIPSecDeleteStaleTunnelPorts(t *testing.T) { skipIfProviderIs(t, "kind", "IPSec tunnel does not work with Kind") + skipIfIPv6Cluster(t) skipIfNumNodesLessThan(t, 2) data, err := setupTest(t)