diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-10-05 16:08:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 16:08:37 +0200 |
commit | ab2f3cf54db1944257dce8a38c26757e5a3d79a4 (patch) | |
tree | b06f657e5418897107143d02a0ebdabdd86e67c1 /test | |
parent | 84c85f4d9457fb35849fa93ba04814df681b9093 (diff) | |
parent | f250560a8043f25771f8ba41b2faf585829b0c9b (diff) | |
download | podman-ab2f3cf54db1944257dce8a38c26757e5a3d79a4.tar.gz podman-ab2f3cf54db1944257dce8a38c26757e5a3d79a4.tar.bz2 podman-ab2f3cf54db1944257dce8a38c26757e5a3d79a4.zip |
Merge pull request #16029 from andrei-n-cosma/kube-default-network
Add pods created by play kube to a default network
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/play_kube_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go index 651cb1074..8b9e43f65 100644 --- a/test/e2e/play_kube_test.go +++ b/test/e2e/play_kube_test.go @@ -3000,6 +3000,21 @@ MemoryReservation: {{ .HostConfig.MemoryReservation }}`}) Expect(logs.OutputToString()).To(Equal(netns)) }) + It("podman play kube test with kube default network", func() { + pod := getPod() + err := generateKubeYaml("pod", pod, kubeYaml) + Expect(err).To(BeNil()) + + kube := podmanTest.Podman([]string{"play", "kube", kubeYaml}) + kube.WaitWithDefaultTimeout() + Expect(kube).Should(Exit(0)) + + inspect := podmanTest.Podman([]string{"inspect", pod.Name, "--format", "{{ .InfraConfig.Networks }}"}) + inspect.WaitWithDefaultTimeout() + Expect(inspect).Should(Exit(0)) + Expect(inspect.OutputToString()).To(Equal("[podman-default-kube-network]")) + }) + It("podman play kube persistentVolumeClaim", func() { volName := "myvol" volDevice := "tmpfs" |