Skip to content

Commit d63e6be

Browse files
author
sivakami
committed
set timeout to zero to run tests indefinitely. Set namespace for pods.
1 parent 318f00a commit d63e6be

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

test/integration/manifests/swiftv2/long-running-cluster/pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: Pod
33
metadata:
44
name: {{ .PodName }}
5-
namespace: default
5+
namespace: {{ .Namespace }}
66
labels:
77
kubernetes.azure.com/pod-network-instance: {{ .PNIName }}
88
kubernetes.azure.com/pod-network: {{ .PNName }}

test/integration/swiftv2/longRunningCluster/datapath.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@ func CreatePodNetworkInstance(kubeconfig string, data PNIData, templatePath stri
6363
// Pod
6464
// -------------------------
6565
type PodData struct {
66-
PodName string
67-
NodeName string
68-
OS string
69-
PNName string
70-
PNIName string
71-
Image string
66+
PodName string
67+
NodeName string
68+
OS string
69+
PNName string
70+
PNIName string
71+
Namespace string
72+
Image string
7273
}
7374

7475
func CreatePod(kubeconfig string, data PodData, templatePath string) error {

test/integration/swiftv2/longRunningCluster/datapath_test.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func TestDatapath(t *testing.T) {
1717
ginkgo.RunSpecs(t, "Datapath Suite")
1818
}
1919

20-
var _ = ginkgo.Describe("Datapath Tests", func() {
20+
var _ = ginkgo.Describe("Datapath Tests", ginkgo.NodeTimeout(0), func() {
2121
rg := os.Getenv("RG")
2222
buildId := os.Getenv("BUILD_ID")
2323

@@ -84,12 +84,13 @@ var _ = ginkgo.Describe("Datapath Tests", func() {
8484

8585
ginkgo.By(fmt.Sprintf("Creating pod %s on node %s", podName, node))
8686
err := CreatePod(kubeconfig2, PodData{
87-
PodName: podName,
88-
NodeName: node,
89-
OS: "linux",
90-
PNName: pnName,
91-
PNIName: pniName,
92-
Image: "weibeld/ubuntu-networking",
87+
PodName: podName,
88+
NodeName: node,
89+
OS: "linux",
90+
PNName: pnName,
91+
PNIName: pniName,
92+
Namespace: pnName,
93+
Image: "weibeld/ubuntu-networking",
9394
}, "../../manifests/swiftv2/long-running-cluster/pod.yaml")
9495
gomega.Expect(err).To(gomega.BeNil())
9596
}

0 commit comments

Comments
 (0)