Skip to content

Commit

Permalink
Add ipsec e2e tests for east west traffic
Browse files Browse the repository at this point in the history
This adds relevant ipsec e2e tests to validate both control plane
and dataplane for east west traffic scenario.

Signed-off-by: Periyasamy Palanisamy <pepalani@redhat.com>
  • Loading branch information
pperiyasamy committed Mar 26, 2024
1 parent f742c89 commit 8f2cb8c
Show file tree
Hide file tree
Showing 5 changed files with 614 additions and 11 deletions.
9 changes: 6 additions & 3 deletions test/extended/networking/external_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ var _ = g.Describe("[sig-network] external gateway address", func() {
// Set external gateway address into an IPv6 address and make sure
// pod ip address matches with IPv6 address family.
setNamespaceExternalGateway(f, "fd00:10:244:2::6")
podIPs, err := createPod(f.ClientSet, f.Namespace.Name, "test-ipv6-pod")
p, err := createPod(f.ClientSet, f.Namespace.Name, "test-ipv6-pod")
podIPs := p.Status.PodIPs
e2e.Logf("pod IPs are %v after setting external gw with IPv6 address", podIPs)
switch podIPFamily {
case DualStack:
Expand All @@ -37,7 +38,8 @@ var _ = g.Describe("[sig-network] external gateway address", func() {
// Set external gateway address into an IPv4 address and make sure
// pod ip address matches with IPv4 address family.
setNamespaceExternalGateway(f, "10.10.10.1")
podIPs, err = createPod(f.ClientSet, f.Namespace.Name, "test-ipv4-pod")
p, err = createPod(f.ClientSet, f.Namespace.Name, "test-ipv4-pod")
podIPs = p.Status.PodIPs
e2e.Logf("pod IPs are %v after setting external gw with IPv4 address", podIPs)
switch podIPFamily {
case DualStack:
Expand All @@ -54,7 +56,8 @@ var _ = g.Describe("[sig-network] external gateway address", func() {
// Set external gateway address supporting Dual Stack and make sure
// pod ip address(es) match with desired address family.
setNamespaceExternalGateway(f, "10.10.10.1,fd00:10:244:2::6")
podIPs, err = createPod(f.ClientSet, f.Namespace.Name, "test-dual-stack-pod")
p, err = createPod(f.ClientSet, f.Namespace.Name, "test-dual-stack-pod")
podIPs = p.Status.PodIPs
o.Expect(err).NotTo(o.HaveOccurred())
e2e.Logf("pod IPs are %v after setting external gw with Dual Stack address", podIPs)
o.Expect(getIPFamily(podIPs)).To(o.Equal(podIPFamily))
Expand Down

0 comments on commit 8f2cb8c

Please sign in to comment.