Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IPv6] Skip IPsec e2e test #1373

Merged
merged 1 commit into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/e2e/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,17 @@ type PodIPs struct {
ipStrings []string
}

func (p PodIPs) String() string {
lzhecheng marked this conversation as resolved.
Show resolved Hide resolved
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
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/ipsec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down