mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
rename oneshot initcontainers to once
after the init containers pr merged, it was suggested to use `once` instead of `oneshot` containers as it is more aligned with other terminiology used similarily. [NO TESTS NEEDED] Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@ -98,10 +98,10 @@ var _ = Describe("Podman init containers", func() {
|
||||
Expect(checkLog.OutputToString()).To(Equal(content))
|
||||
})
|
||||
|
||||
It("podman make sure oneshot container is removed", func() {
|
||||
It("podman make sure once container is removed", func() {
|
||||
filename := filepath.Join("/dev/shm", RandomString(12))
|
||||
content := RandomString(16)
|
||||
session := podmanTest.Podman([]string{"create", "--init-ctr", "oneshot", "--pod", "new:foobar", ALPINE, "bin/sh", "-c", fmt.Sprintf("echo %s > %s", content, filename)})
|
||||
session := podmanTest.Podman([]string{"create", "--init-ctr", "once", "--pod", "new:foobar", ALPINE, "bin/sh", "-c", fmt.Sprintf("echo %s > %s", content, filename)})
|
||||
session.WaitWithDefaultTimeout()
|
||||
initContainerID := session.OutputToString()
|
||||
Expect(session).Should(Exit(0))
|
||||
|
Reference in New Issue
Block a user