Turn on a bunch more remote tests

We need to be more specific about the remote tests we turn off.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh
2020-07-22 10:03:45 -04:00
parent 80add2902c
commit a75f96ae90
33 changed files with 55 additions and 81 deletions

View File

@ -618,3 +618,9 @@ func SkipIfCgroupV2() {
Skip("Skip on systems with cgroup V2 systems") Skip("Skip on systems with cgroup V2 systems")
} }
} }
// PodmanAsUser is the exec call to podman on the filesystem with the specified uid/gid and environment
func (p *PodmanTestIntegration) PodmanAsUser(args []string, uid, gid uint32, cwd string, env []string) *PodmanSessionIntegration {
podmanSession := p.PodmanAsUserBase(args, uid, gid, cwd, env, false, false, nil)
return &PodmanSessionIntegration{podmanSession}
}

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -46,12 +46,6 @@ func (p *PodmanTestIntegration) PodmanNoEvents(args []string) *PodmanSessionInte
return &PodmanSessionIntegration{podmanSession} return &PodmanSessionIntegration{podmanSession}
} }
// PodmanAsUser is the exec call to podman on the filesystem with the specified uid/gid and environment
func (p *PodmanTestIntegration) PodmanAsUser(args []string, uid, gid uint32, cwd string, env []string) *PodmanSessionIntegration {
podmanSession := p.PodmanAsUserBase(args, uid, gid, cwd, env, false, false, nil)
return &PodmanSessionIntegration{podmanSession}
}
func (p *PodmanTestIntegration) setDefaultRegistriesConfigEnv() { func (p *PodmanTestIntegration) setDefaultRegistriesConfigEnv() {
defaultFile := filepath.Join(INTEGRATION_ROOT, "test/registries.conf") defaultFile := filepath.Join(INTEGRATION_ROOT, "test/registries.conf")
os.Setenv("REGISTRIES_CONFIG_PATH", defaultFile) os.Setenv("REGISTRIES_CONFIG_PATH", defaultFile)

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -35,6 +33,7 @@ var _ = Describe("Podman namespaces", func() {
}) })
It("podman namespace test", func() { It("podman namespace test", func() {
SkipIfRemote()
podman1 := podmanTest.Podman([]string{"--namespace", "test1", "run", "-d", ALPINE, "echo", "hello"}) podman1 := podmanTest.Podman([]string{"--namespace", "test1", "run", "-d", ALPINE, "echo", "hello"})
podman1.WaitWithDefaultTimeout() podman1.WaitWithDefaultTimeout()
Expect(podman1.ExitCode()).To(Equal(0)) Expect(podman1.ExitCode()).To(Equal(0))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -140,6 +138,7 @@ var _ = Describe("Podman network create", func() {
}) })
It("podman network create with name and subnet", func() { It("podman network create with name and subnet", func() {
SkipIfRemote()
var ( var (
results []network.NcList results []network.NcList
) )

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -447,6 +445,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman play kube test correct command", func() { It("podman play kube test correct command", func() {
SkipIfRemote()
pod := getPod() pod := getPod()
err := generatePodKubeYaml(pod, kubeYaml) err := generatePodKubeYaml(pod, kubeYaml)
Expect(err).To(BeNil()) Expect(err).To(BeNil())
@ -464,6 +463,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman play kube test correct command with only set command in yaml file", func() { It("podman play kube test correct command with only set command in yaml file", func() {
SkipIfRemote()
pod := getPod(withCtr(getCtr(withCmd([]string{"echo", "hello"}), withArg(nil)))) pod := getPod(withCtr(getCtr(withCmd([]string{"echo", "hello"}), withArg(nil))))
err := generatePodKubeYaml(pod, kubeYaml) err := generatePodKubeYaml(pod, kubeYaml)
Expect(err).To(BeNil()) Expect(err).To(BeNil())
@ -498,6 +498,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman play kube test correct output", func() { It("podman play kube test correct output", func() {
SkipIfRemote()
p := getPod(withCtr(getCtr(withCmd([]string{"echo", "hello"}), withArg([]string{"world"})))) p := getPod(withCtr(getCtr(withCmd([]string{"echo", "hello"}), withArg([]string{"world"}))))
err := generatePodKubeYaml(p, kubeYaml) err := generatePodKubeYaml(p, kubeYaml)
@ -601,6 +602,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman play kube seccomp container level", func() { It("podman play kube seccomp container level", func() {
SkipIfRemote()
// expect play kube is expected to set a seccomp label if it's applied as an annotation // expect play kube is expected to set a seccomp label if it's applied as an annotation
jsonFile, err := podmanTest.CreateSeccompJson(seccompPwdEPERM) jsonFile, err := podmanTest.CreateSeccompJson(seccompPwdEPERM)
if err != nil { if err != nil {
@ -627,6 +629,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman play kube seccomp pod level", func() { It("podman play kube seccomp pod level", func() {
SkipIfRemote()
// expect play kube is expected to set a seccomp label if it's applied as an annotation // expect play kube is expected to set a seccomp label if it's applied as an annotation
jsonFile, err := podmanTest.CreateSeccompJson(seccompPwdEPERM) jsonFile, err := podmanTest.CreateSeccompJson(seccompPwdEPERM)
if err != nil { if err != nil {
@ -778,6 +781,7 @@ spec:
// Deployment related tests // Deployment related tests
It("podman play kube deployment 1 replica test correct command", func() { It("podman play kube deployment 1 replica test correct command", func() {
SkipIfRemote()
deployment := getDeployment() deployment := getDeployment()
err := generateDeploymentKubeYaml(deployment, kubeYaml) err := generateDeploymentKubeYaml(deployment, kubeYaml)
Expect(err).To(BeNil()) Expect(err).To(BeNil())
@ -796,6 +800,7 @@ spec:
}) })
It("podman play kube deployment more than 1 replica test correct command", func() { It("podman play kube deployment more than 1 replica test correct command", func() {
SkipIfRemote()
var i, numReplicas int32 var i, numReplicas int32
numReplicas = 5 numReplicas = 5
deployment := getDeployment(withReplicas(numReplicas)) deployment := getDeployment(withReplicas(numReplicas))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -227,6 +225,7 @@ var _ = Describe("Podman pod create", func() {
}) })
It("podman pod container can override pod pid NS", func() { It("podman pod container can override pod pid NS", func() {
SkipIfRemote()
session := podmanTest.Podman([]string{"pod", "create", "--share", "pid"}) session := podmanTest.Podman([]string{"pod", "create", "--share", "pid"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -258,6 +257,7 @@ var _ = Describe("Podman pod create", func() {
}) })
It("podman pod container can override pod not sharing pid", func() { It("podman pod container can override pod not sharing pid", func() {
SkipIfRemote()
session := podmanTest.Podman([]string{"pod", "create", "--share", "net"}) session := podmanTest.Podman([]string{"pod", "create", "--share", "net"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -283,6 +283,7 @@ var _ = Describe("Podman pod create", func() {
}) })
It("podman pod container can override pod ipc NS", func() { It("podman pod container can override pod ipc NS", func() {
SkipIfRemote()
session := podmanTest.Podman([]string{"pod", "create", "--share", "ipc"}) session := podmanTest.Podman([]string{"pod", "create", "--share", "ipc"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -63,6 +61,7 @@ var _ = Describe("Podman pod create", func() {
}) })
It("podman pod container dontshare PIDNS", func() { It("podman pod container dontshare PIDNS", func() {
SkipIfRemote()
session := podmanTest.Podman([]string{"pod", "create"}) session := podmanTest.Podman([]string{"pod", "create"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -58,6 +56,7 @@ var _ = Describe("Podman top", func() {
}) })
It("podman pod top on pod", func() { It("podman pod top on pod", func() {
SkipIfRemote()
_, ec, podid := podmanTest.CreatePod("") _, ec, podid := podmanTest.CreatePod("")
Expect(ec).To(Equal(0)) Expect(ec).To(Equal(0))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -49,6 +47,7 @@ var _ = Describe("Podman port", func() {
}) })
It("podman port -l nginx", func() { It("podman port -l nginx", func() {
SkipIfRemote()
session, cid := podmanTest.RunNginxWithHealthCheck("") session, cid := podmanTest.RunNginxWithHealthCheck("")
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -64,6 +63,7 @@ var _ = Describe("Podman port", func() {
}) })
It("podman container port -l nginx", func() { It("podman container port -l nginx", func() {
SkipIfRemote()
session, cid := podmanTest.RunNginxWithHealthCheck("") session, cid := podmanTest.RunNginxWithHealthCheck("")
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -79,6 +79,7 @@ var _ = Describe("Podman port", func() {
}) })
It("podman port -l port nginx", func() { It("podman port -l port nginx", func() {
SkipIfRemote()
session, cid := podmanTest.RunNginxWithHealthCheck("") session, cid := podmanTest.RunNginxWithHealthCheck("")
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
@ -127,18 +128,18 @@ var _ = Describe("Podman port", func() {
lock2 := GetPortLock("5001") lock2 := GetPortLock("5001")
defer lock2.Unlock() defer lock2.Unlock()
setup := podmanTest.Podman([]string{"run", "-dt", "-p", "5000:5000", "-p", "5001:5001", ALPINE, "top"}) setup := podmanTest.Podman([]string{"run", "--name", "test", "-dt", "-p", "5000:5000", "-p", "5001:5001", ALPINE, "top"})
setup.WaitWithDefaultTimeout() setup.WaitWithDefaultTimeout()
Expect(setup.ExitCode()).To(BeZero()) Expect(setup.ExitCode()).To(BeZero())
// Check that the first port was honored // Check that the first port was honored
result1 := podmanTest.Podman([]string{"port", "-l", "5000"}) result1 := podmanTest.Podman([]string{"port", "test", "5000"})
result1.WaitWithDefaultTimeout() result1.WaitWithDefaultTimeout()
Expect(result1.ExitCode()).To(BeZero()) Expect(result1.ExitCode()).To(BeZero())
Expect(result1.LineInOuputStartsWith("0.0.0.0:5000")).To(BeTrue()) Expect(result1.LineInOuputStartsWith("0.0.0.0:5000")).To(BeTrue())
// Check that the second port was honored // Check that the second port was honored
result2 := podmanTest.Podman([]string{"port", "-l", "5001"}) result2 := podmanTest.Podman([]string{"port", "test", "5001"})
result2.WaitWithDefaultTimeout() result2.WaitWithDefaultTimeout()
Expect(result2.ExitCode()).To(BeZero()) Expect(result2.ExitCode()).To(BeZero())
Expect(result2.LineInOuputStartsWith("0.0.0.0:5001")).To(BeTrue()) Expect(result2.LineInOuputStartsWith("0.0.0.0:5001")).To(BeTrue())

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -35,6 +33,7 @@ var _ = Describe("Podman run exit", func() {
}) })
It("podman run -d mount cleanup test", func() { It("podman run -d mount cleanup test", func() {
SkipIfRemote()
SkipIfRootless() SkipIfRootless()
result := podmanTest.Podman([]string{"run", "-dt", ALPINE, "top"}) result := podmanTest.Podman([]string{"run", "-dt", ALPINE, "top"})

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -46,6 +44,7 @@ CMD []
}) })
It("podman run entrypoint", func() { It("podman run entrypoint", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
` `
@ -57,6 +56,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
}) })
It("podman run entrypoint with cmd", func() { It("podman run entrypoint with cmd", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
CMD [ "-v"] CMD [ "-v"]
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
@ -69,6 +69,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
}) })
It("podman run entrypoint with user cmd overrides image cmd", func() { It("podman run entrypoint with user cmd overrides image cmd", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
CMD [ "-v"] CMD [ "-v"]
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
@ -81,6 +82,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
}) })
It("podman run entrypoint with user cmd no image cmd", func() { It("podman run entrypoint with user cmd no image cmd", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
` `
@ -92,6 +94,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
}) })
It("podman run user entrypoint overrides image entrypoint and image cmd", func() { It("podman run user entrypoint overrides image entrypoint and image cmd", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
CMD ["-i"] CMD ["-i"]
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
@ -109,6 +112,7 @@ ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]
}) })
It("podman run user entrypoint with command overrides image entrypoint and image cmd", func() { It("podman run user entrypoint with command overrides image entrypoint and image cmd", func() {
SkipIfRemote()
dockerfile := `FROM docker.io/library/alpine:latest dockerfile := `FROM docker.io/library/alpine:latest
CMD ["-i"] CMD ["-i"]
ENTRYPOINT ["grep", "Alpine", "/etc/os-release"] ENTRYPOINT ["grep", "Alpine", "/etc/os-release"]

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -265,10 +263,10 @@ var _ = Describe("Podman run networking", func() {
}) })
It("podman run network expose ports in image metadata", func() { It("podman run network expose ports in image metadata", func() {
session := podmanTest.Podman([]string{"create", "-dt", "-P", nginx}) session := podmanTest.Podman([]string{"create", "--name", "test", "-dt", "-P", nginx})
session.Wait(90) session.Wait(90)
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
results := podmanTest.Podman([]string{"inspect", "-l"}) results := podmanTest.Podman([]string{"inspect", "test"})
results.Wait(30) results.Wait(30)
Expect(results.ExitCode()).To(Equal(0)) Expect(results.ExitCode()).To(Equal(0))
Expect(results.OutputToString()).To(ContainSubstring(`"80/tcp":`)) Expect(results.OutputToString()).To(ContainSubstring(`"80/tcp":`))
@ -277,11 +275,11 @@ var _ = Describe("Podman run networking", func() {
It("podman run network expose duplicate host port results in error", func() { It("podman run network expose duplicate host port results in error", func() {
SkipIfRootless() SkipIfRootless()
session := podmanTest.Podman([]string{"run", "-dt", "-p", "80", ALPINE, "/bin/sh"}) session := podmanTest.Podman([]string{"run", "--name", "test", "-dt", "-p", "80", ALPINE, "/bin/sh"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
inspect := podmanTest.Podman([]string{"inspect", "-l"}) inspect := podmanTest.Podman([]string{"inspect", "test"})
inspect.WaitWithDefaultTimeout() inspect.WaitWithDefaultTimeout()
Expect(inspect.ExitCode()).To(Equal(0)) Expect(inspect.ExitCode()).To(Equal(0))
@ -436,6 +434,7 @@ var _ = Describe("Podman run networking", func() {
}) })
It("podman run in custom CNI network with --static-ip", func() { It("podman run in custom CNI network with --static-ip", func() {
SkipIfRemote()
SkipIfRootless() SkipIfRootless()
netName := "podmantestnetwork" netName := "podmantestnetwork"
ipAddr := "10.20.30.128" ipAddr := "10.20.30.128"

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -35,11 +33,12 @@ var _ = Describe("Podman run restart containers", func() {
}) })
It("Podman start after successful run", func() { It("Podman start after successful run", func() {
session := podmanTest.Podman([]string{"run", ALPINE, "ls"}) SkipIfRemote()
session := podmanTest.Podman([]string{"run", "--name", "test", ALPINE, "ls"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
session2 := podmanTest.Podman([]string{"start", "--attach", "--latest"}) session2 := podmanTest.Podman([]string{"start", "--attach", "test"})
session2.WaitWithDefaultTimeout() session2.WaitWithDefaultTimeout()
Expect(session2.ExitCode()).To(Equal(0)) Expect(session2.ExitCode()).To(Equal(0))
}) })

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -129,6 +127,7 @@ var _ = Describe("Podman generate kube", func() {
}) })
It("podman container runlabel (podman --version)", func() { It("podman container runlabel (podman --version)", func() {
SkipIfRemote()
PodmanDockerfile := ` PodmanDockerfile := `
FROM alpine:latest FROM alpine:latest
LABEL io.containers.capabilities=chown,mknod` LABEL io.containers.capabilities=chown,mknod`

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -199,6 +197,7 @@ var _ = Describe("Podman run with volumes", func() {
}) })
It("podman run with volumes and suid/dev/exec options", func() { It("podman run with volumes and suid/dev/exec options", func() {
SkipIfRemote()
mountPath := filepath.Join(podmanTest.TempDir, "secrets") mountPath := filepath.Join(podmanTest.TempDir, "secrets")
os.Mkdir(mountPath, 0755) os.Mkdir(mountPath, 0755)
@ -228,6 +227,7 @@ var _ = Describe("Podman run with volumes", func() {
}) })
It("podman run with tmpfs named volume mounts and unmounts", func() { It("podman run with tmpfs named volume mounts and unmounts", func() {
SkipIfRemote()
SkipIfRootless() SkipIfRootless()
volName := "testvol" volName := "testvol"
mkVolume := podmanTest.Podman([]string{"volume", "create", "--opt", "type=tmpfs", "--opt", "device=tmpfs", "--opt", "o=nodev", "testvol"}) mkVolume := podmanTest.Podman([]string{"volume", "create", "--opt", "type=tmpfs", "--opt", "device=tmpfs", "--opt", "o=nodev", "testvol"})
@ -315,6 +315,7 @@ var _ = Describe("Podman run with volumes", func() {
}) })
It("podman run with anonymous volume", func() { It("podman run with anonymous volume", func() {
SkipIfRemote()
list1 := podmanTest.Podman([]string{"volume", "list", "--quiet"}) list1 := podmanTest.Podman([]string{"volume", "list", "--quiet"})
list1.WaitWithDefaultTimeout() list1.WaitWithDefaultTimeout()
Expect(list1.ExitCode()).To(Equal(0)) Expect(list1.ExitCode()).To(Equal(0))
@ -333,6 +334,7 @@ var _ = Describe("Podman run with volumes", func() {
}) })
It("podman rm -v removes anonymous volume", func() { It("podman rm -v removes anonymous volume", func() {
SkipIfRemote()
list1 := podmanTest.Podman([]string{"volume", "list", "--quiet"}) list1 := podmanTest.Podman([]string{"volume", "list", "--quiet"})
list1.WaitWithDefaultTimeout() list1.WaitWithDefaultTimeout()
Expect(list1.ExitCode()).To(Equal(0)) Expect(list1.ExitCode()).To(Equal(0))
@ -434,6 +436,7 @@ var _ = Describe("Podman run with volumes", func() {
}) })
It("Podman mount over image volume with trailing /", func() { It("Podman mount over image volume with trailing /", func() {
SkipIfRemote()
image := "podman-volume-test:trailing" image := "podman-volume-test:trailing"
dockerfile := ` dockerfile := `
FROM alpine:latest FROM alpine:latest
@ -453,6 +456,7 @@ VOLUME /test/`
}) })
It("podman run with overlay volume flag", func() { It("podman run with overlay volume flag", func() {
SkipIfRemote()
if os.Getenv("container") != "" { if os.Getenv("container") != "" {
Skip("Overlay mounts not supported when running in a container") Skip("Overlay mounts not supported when running in a container")
} }

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -48,6 +46,7 @@ var _ = Describe("podman container runlabel", func() {
}) })
It("podman container runlabel (podman --version)", func() { It("podman container runlabel (podman --version)", func() {
SkipIfRemote()
image := "podman-runlabel-test:podman" image := "podman-runlabel-test:podman"
podmanTest.BuildImage(PodmanDockerfile, image, "false") podmanTest.BuildImage(PodmanDockerfile, image, "false")
@ -61,6 +60,7 @@ var _ = Describe("podman container runlabel", func() {
}) })
It("podman container runlabel (ls -la)", func() { It("podman container runlabel (ls -la)", func() {
SkipIfRemote()
image := "podman-runlabel-test:ls" image := "podman-runlabel-test:ls"
podmanTest.BuildImage(LsDockerfile, image, "false") podmanTest.BuildImage(LsDockerfile, image, "false")

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -37,6 +35,7 @@ var _ = Describe("podman system df", func() {
}) })
It("podman system df", func() { It("podman system df", func() {
SkipIfRemote()
session := podmanTest.Podman([]string{"create", ALPINE}) session := podmanTest.Podman([]string{"create", ALPINE})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (
@ -55,22 +53,22 @@ var _ = Describe("Podman top", func() {
}) })
It("podman top on container", func() { It("podman top on container", func() {
session := podmanTest.Podman([]string{"run", "-d", ALPINE, "top", "-d", "2"}) session := podmanTest.Podman([]string{"run", "--name", "test", "-d", ALPINE, "top", "-d", "2"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
result := podmanTest.Podman([]string{"top", "-l"}) result := podmanTest.Podman([]string{"top", "test"})
result.WaitWithDefaultTimeout() result.WaitWithDefaultTimeout()
Expect(result.ExitCode()).To(Equal(0)) Expect(result.ExitCode()).To(Equal(0))
Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1)) Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1))
}) })
It("podman container top on container", func() { It("podman container top on container", func() {
session := podmanTest.Podman([]string{"container", "run", "-d", ALPINE, "top", "-d", "2"}) session := podmanTest.Podman([]string{"container", "run", "--name", "test", "-d", ALPINE, "top", "-d", "2"})
session.WaitWithDefaultTimeout() session.WaitWithDefaultTimeout()
Expect(session.ExitCode()).To(Equal(0)) Expect(session.ExitCode()).To(Equal(0))
result := podmanTest.Podman([]string{"container", "top", "-l"}) result := podmanTest.Podman([]string{"container", "top", "test"})
result.WaitWithDefaultTimeout() result.WaitWithDefaultTimeout()
Expect(result.ExitCode()).To(Equal(0)) Expect(result.ExitCode()).To(Equal(0))
Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1)) Expect(len(result.OutputToStringArray())).To(BeNumerically(">", 1))

View File

@ -1,5 +1,3 @@
// +build !remote
package integration package integration
import ( import (