mirror of
https://github.com/containers/podman.git
synced 2025-11-28 17:18:58 +08:00
add test for container name without Pod name prefix feature
Signed-off-by: Oleksandr Krutko <alexander.krutko@gmail.com>
This commit is contained in:
@@ -6420,4 +6420,13 @@ spec:
|
||||
|
||||
Expect(testfile).ToNot(BeAnExistingFile(), "file should never be created on the host")
|
||||
})
|
||||
|
||||
It("test container name without Pod name prefix", func() {
|
||||
err := writeYaml(podnameEqualsContainerNameYaml, kubeYaml)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
|
||||
podmanTest.PodmanExitCleanly("kube", "play", "--no-pod-prefix", kubeYaml)
|
||||
inspect := podmanTest.PodmanExitCleanly("inspect", "podnameEqualsContainerNameYaml")
|
||||
Expect(inspect.InspectContainerToJSON()[0].Name).Should(Equal("podnameEqualsContainerNameYaml"))
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user