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

test: Remove Services SCTP test case #16895

Merged
merged 1 commit into from
Jul 22, 2021
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
40 changes: 0 additions & 40 deletions test/k8sT/Services.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"fmt"
"net"
"os"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -1357,45 +1356,6 @@ Secondary Interface %s :: IPv4: (%s, %s), IPv6: (%s, %s)`, helpers.DualStackSupp
testNodePort(kubectl, ni, true, false, false, 0)
})

// GKE COS image does not support sctp module.
SkipContextIf(func() bool {
return helpers.DoesNotRunWithKubeProxyReplacement() || helpers.RunsOnGKE()
}, "BPF NAT engine handles unknown protocol packets", func() {
var (
iperf3Manifest string
)
BeforeAll(func() {
DeployCiliumAndDNS(kubectl, ciliumFilename)
iperf3Manifest = helpers.ManifestGet(kubectl.BasePath(), "iperf3-deployment.yaml")
brb marked this conversation as resolved.
Show resolved Hide resolved
kubectl.ApplyDefault(iperf3Manifest).ExpectSuccess("Iperf3 cannot be deployed")
})

AfterFailed(func() {
kubectl.CiliumReport("cilium endpoint list")
})

AfterAll(func() {
_ = kubectl.Delete(iperf3Manifest)
})

It("Should not drop SCTP packets", func() {
By("Defining the first pod as the client in node 1")
clientPodInNode1, clientPodInNode1JSON := fetchPodsWithOffset(kubectl, helpers.DefaultNamespace, "iperf3", "zgroup=testapp", "", true, 0)
clientPodInNode1IP, err := clientPodInNode1JSON.Filter("{.status.podIP}")
Expect(err).Should(BeNil(), "Failure to retrieve IP of pod %s", clientPodInNode1)

By("Defining the second pod as the server in node 2")
serverPodInNode2, serverPodInNode2JSON := fetchPodsWithOffset(kubectl, helpers.DefaultNamespace, "iperf3", "zgroup=testapp", clientPodInNode1IP.String(), true, 0)
serverPodInNode2IP, err := serverPodInNode2JSON.Filter("{.status.podIP}")
Expect(err).Should(BeNil(), "Failure to retrieve IP of pod %s", serverPodInNode2)

By("Running iperf3 in client pod with SCTP protocol and 10MBytes to be sent")
res := kubectl.ExecPodCmd(helpers.DefaultNamespace, clientPodInNode1, fmt.Sprintf("iperf3 -c %s --sctp -n 10M -J | jq '.end.sum_received.bytes'", serverPodInNode2IP.String()))
receivedBytes, _ := strconv.Atoi(res.GetStdOut().ByLines()[0])
Expect(receivedBytes).To(BeNumerically(">", 0))
})
})

SkipItIf(helpers.DoesNotExistNodeWithoutCilium, "Tests with XDP, direct routing, SNAT and Random", func() {
DeployCiliumOptionsAndDNS(kubectl, ciliumFilename, map[string]string{
"loadBalancer.acceleration": "testing-only",
Expand Down
21 changes: 0 additions & 21 deletions test/k8sT/manifests/iperf3-deployment.yaml

This file was deleted.