tests: Refactors agnhost image pod usage - network

A previous commit created a few agnhost related functions that creates agnhost
pods / containers for general purposes.

Refactors tests to use those functions.
This commit is contained in:
Claudiu Belu
2020-09-05 21:11:53 -07:00
parent 131f42d263
commit d37cbeb388
7 changed files with 74 additions and 239 deletions

View File

@@ -147,7 +147,7 @@ var _ = SIGDescribe("Firewall rule", func() {
podName := fmt.Sprintf("netexec%v", i)
framework.Logf("Creating netexec pod %q on node %v in namespace %q", podName, nodeName, ns)
pod := newAgnhostPod(podName,
pod := e2epod.NewAgnhostPod(ns, podName, nil, nil, nil,
"netexec",
fmt.Sprintf("--http-port=%d", firewallTestHTTPPort),
fmt.Sprintf("--udp-port=%d", firewallTestUDPPort))