test: enable some run_test.go tests that pass now

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano
2020-04-24 11:52:11 +02:00
parent a3acc4f977
commit 9f8d002e1f

View File

@ -29,7 +29,6 @@ var _ = Describe("Podman run", func() {
)
BeforeEach(func() {
Skip(v2fail)
tempdir, err = CreateTempDirInTempDir()
if err != nil {
os.Exit(1)
@ -252,6 +251,7 @@ var _ = Describe("Podman run", func() {
})
It("podman run --host-env environment test", func() {
Skip(v2fail)
os.Setenv("FOO", "BAR")
session := podmanTest.Podman([]string{"run", "--rm", "--env-host", ALPINE, "printenv", "FOO"})
session.WaitWithDefaultTimeout()
@ -469,6 +469,7 @@ var _ = Describe("Podman run", func() {
})
It("podman run log-opt", func() {
Skip(v2fail)
log := filepath.Join(podmanTest.TempDir, "/container.log")
session := podmanTest.Podman([]string{"run", "--rm", "--log-opt", fmt.Sprintf("path=%s", log), ALPINE, "ls"})
session.WaitWithDefaultTimeout()
@ -565,6 +566,7 @@ var _ = Describe("Podman run", func() {
})
It("podman run with group-add", func() {
Skip(v2fail)
SkipIfRootless()
session := podmanTest.Podman([]string{"run", "--rm", "--group-add=audio", "--group-add=nogroup", "--group-add=777", ALPINE, "id"})
session.WaitWithDefaultTimeout()
@ -708,6 +710,7 @@ USER mail`
})
It("podman run --volumes-from flag with built-in volumes", func() {
Skip(v2fail)
session := podmanTest.Podman([]string{"create", redis, "sh"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
@ -802,6 +805,7 @@ USER mail`
})
It("podman run --pod automatically", func() {
Skip(v2fail)
session := podmanTest.Podman([]string{"run", "--pod", "new:foobar", ALPINE, "ls"})
session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0))
@ -874,6 +878,7 @@ USER mail`
})
It("podman run --http-proxy test", func() {
Skip(v2fail)
os.Setenv("http_proxy", "1.2.3.4")
session := podmanTest.Podman([]string{"run", "--rm", ALPINE, "printenv", "http_proxy"})
session.WaitWithDefaultTimeout()
@ -932,6 +937,7 @@ USER mail`
})
It("podman run with cgroups=disabled runs without cgroups", func() {
Skip(v2fail)
SkipIfRemote()
SkipIfRootless()
// Only works on crun