mirror of
https://github.com/containers/podman.git
synced 2025-06-21 17:38:12 +08:00
test: enable some run_test.go tests that pass now
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -29,7 +29,6 @@ var _ = Describe("Podman run", func() {
|
|||||||
)
|
)
|
||||||
|
|
||||||
BeforeEach(func() {
|
BeforeEach(func() {
|
||||||
Skip(v2fail)
|
|
||||||
tempdir, err = CreateTempDirInTempDir()
|
tempdir, err = CreateTempDirInTempDir()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
@ -252,6 +251,7 @@ var _ = Describe("Podman run", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run --host-env environment test", func() {
|
It("podman run --host-env environment test", func() {
|
||||||
|
Skip(v2fail)
|
||||||
os.Setenv("FOO", "BAR")
|
os.Setenv("FOO", "BAR")
|
||||||
session := podmanTest.Podman([]string{"run", "--rm", "--env-host", ALPINE, "printenv", "FOO"})
|
session := podmanTest.Podman([]string{"run", "--rm", "--env-host", ALPINE, "printenv", "FOO"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
@ -469,6 +469,7 @@ var _ = Describe("Podman run", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run log-opt", func() {
|
It("podman run log-opt", func() {
|
||||||
|
Skip(v2fail)
|
||||||
log := filepath.Join(podmanTest.TempDir, "/container.log")
|
log := filepath.Join(podmanTest.TempDir, "/container.log")
|
||||||
session := podmanTest.Podman([]string{"run", "--rm", "--log-opt", fmt.Sprintf("path=%s", log), ALPINE, "ls"})
|
session := podmanTest.Podman([]string{"run", "--rm", "--log-opt", fmt.Sprintf("path=%s", log), ALPINE, "ls"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
@ -565,6 +566,7 @@ var _ = Describe("Podman run", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run with group-add", func() {
|
It("podman run with group-add", func() {
|
||||||
|
Skip(v2fail)
|
||||||
SkipIfRootless()
|
SkipIfRootless()
|
||||||
session := podmanTest.Podman([]string{"run", "--rm", "--group-add=audio", "--group-add=nogroup", "--group-add=777", ALPINE, "id"})
|
session := podmanTest.Podman([]string{"run", "--rm", "--group-add=audio", "--group-add=nogroup", "--group-add=777", ALPINE, "id"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
@ -708,6 +710,7 @@ USER mail`
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run --volumes-from flag with built-in volumes", func() {
|
It("podman run --volumes-from flag with built-in volumes", func() {
|
||||||
|
Skip(v2fail)
|
||||||
session := podmanTest.Podman([]string{"create", redis, "sh"})
|
session := podmanTest.Podman([]string{"create", redis, "sh"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session.ExitCode()).To(Equal(0))
|
Expect(session.ExitCode()).To(Equal(0))
|
||||||
@ -802,6 +805,7 @@ USER mail`
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run --pod automatically", func() {
|
It("podman run --pod automatically", func() {
|
||||||
|
Skip(v2fail)
|
||||||
session := podmanTest.Podman([]string{"run", "--pod", "new:foobar", ALPINE, "ls"})
|
session := podmanTest.Podman([]string{"run", "--pod", "new:foobar", ALPINE, "ls"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session.ExitCode()).To(Equal(0))
|
Expect(session.ExitCode()).To(Equal(0))
|
||||||
@ -874,6 +878,7 @@ USER mail`
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run --http-proxy test", func() {
|
It("podman run --http-proxy test", func() {
|
||||||
|
Skip(v2fail)
|
||||||
os.Setenv("http_proxy", "1.2.3.4")
|
os.Setenv("http_proxy", "1.2.3.4")
|
||||||
session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "http_proxy"})
|
session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "http_proxy"})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
@ -932,6 +937,7 @@ USER mail`
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman run with cgroups=disabled runs without cgroups", func() {
|
It("podman run with cgroups=disabled runs without cgroups", func() {
|
||||||
|
Skip(v2fail)
|
||||||
SkipIfRemote()
|
SkipIfRemote()
|
||||||
SkipIfRootless()
|
SkipIfRootless()
|
||||||
// Only works on crun
|
// Only works on crun
|
||||||
|
Reference in New Issue
Block a user