mirror of
https://github.com/containers/podman.git
synced 2025-06-18 15:39:08 +08:00
Merge pull request #6570 from rhatdan/remote
Change buildtag for remoteclient to remote for testing
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -468,6 +468,10 @@ func (p *PodmanTestIntegration) CleanupVolume() {
|
||||
// Remove all containers
|
||||
session := p.Podman([]string{"volume", "rm", "-fa"})
|
||||
session.Wait(90)
|
||||
|
||||
// Stop remove service on volume cleanup
|
||||
p.StopRemoteService()
|
||||
|
||||
// Nuke tempdir
|
||||
if err := os.RemoveAll(p.TempDir); err != nil {
|
||||
fmt.Printf("%q\n", err)
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
@ -142,7 +142,6 @@ var _ = Describe("Podman cp", func() {
|
||||
|
||||
It("podman cp stdin/stdout", func() {
|
||||
SkipIfRemote()
|
||||
Skip("Looks like SkipIfRemote() is not working")
|
||||
session := podmanTest.Podman([]string{"create", ALPINE, "ls", "foo"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -107,6 +107,7 @@ var _ = Describe("Podman create", func() {
|
||||
})
|
||||
|
||||
It("podman create --entrypoint \"\"", func() {
|
||||
Skip(v2remotefail)
|
||||
session := podmanTest.Podman([]string{"create", "--entrypoint", "", ALPINE, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
@ -79,6 +79,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec environment test", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.RunTopContainer("test1")
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
@ -123,6 +124,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec terminal doesn't hang", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.Podman([]string{"run", "-dti", fedoraMinimal, "sleep", "+Inf"})
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
@ -157,6 +159,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec with user only in container", func() {
|
||||
Skip(v2remotefail)
|
||||
testUser := "test123"
|
||||
setup := podmanTest.Podman([]string{"run", "--name", "test1", "-d", fedoraMinimal, "sleep", "60"})
|
||||
setup.WaitWithDefaultTimeout()
|
||||
@ -173,6 +176,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec with user from run", func() {
|
||||
Skip(v2remotefail)
|
||||
testUser := "guest"
|
||||
setup := podmanTest.Podman([]string{"run", "--user", testUser, "-d", ALPINE, "top"})
|
||||
setup.WaitWithDefaultTimeout()
|
||||
@ -192,6 +196,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec simple working directory test", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.RunTopContainer("test1")
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
@ -210,6 +215,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec missing working directory test", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.RunTopContainer("test1")
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
@ -224,6 +230,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec cannot be invoked", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.RunTopContainer("test1")
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
@ -234,6 +241,7 @@ var _ = Describe("Podman exec", func() {
|
||||
})
|
||||
|
||||
It("podman exec command not found", func() {
|
||||
Skip(v2remotefail)
|
||||
setup := podmanTest.RunTopContainer("test1")
|
||||
setup.WaitWithDefaultTimeout()
|
||||
Expect(setup.ExitCode()).To(Equal(0))
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -176,6 +176,7 @@ var _ = Describe("Podman images", func() {
|
||||
})
|
||||
|
||||
It("podman images filter before image", func() {
|
||||
Skip(v2remotefail)
|
||||
dockerfile := `FROM docker.io/library/alpine:latest
|
||||
RUN apk update && apk add strace
|
||||
`
|
||||
@ -187,6 +188,7 @@ RUN apk update && apk add strace
|
||||
})
|
||||
|
||||
It("podman images workingdir from image", func() {
|
||||
Skip(v2remotefail)
|
||||
dockerfile := `FROM docker.io/library/alpine:latest
|
||||
WORKDIR /test
|
||||
`
|
||||
@ -306,6 +308,7 @@ WORKDIR /test
|
||||
})
|
||||
|
||||
It("podman images --all flag", func() {
|
||||
Skip(v2remotefail)
|
||||
podmanTest.RestoreAllArtifacts()
|
||||
dockerfile := `FROM docker.io/library/alpine:latest
|
||||
RUN mkdir hello
|
||||
@ -325,6 +328,7 @@ ENV foo=bar
|
||||
})
|
||||
|
||||
It("podman images filter by label", func() {
|
||||
Skip(v2remotefail)
|
||||
dockerfile := `FROM docker.io/library/alpine:latest
|
||||
LABEL version="1.0"
|
||||
LABEL "com.example.vendor"="Example Vendor"
|
||||
@ -337,6 +341,7 @@ LABEL "com.example.vendor"="Example Vendor"
|
||||
})
|
||||
|
||||
It("podman with images with no layers", func() {
|
||||
Skip(v2remotefail)
|
||||
dockerfile := strings.Join([]string{
|
||||
`FROM scratch`,
|
||||
`LABEL org.opencontainers.image.authors="<somefolks@example.org>"`,
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build remoteclient
|
||||
// +build remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -273,6 +273,7 @@ var _ = Describe("Podman logs", func() {
|
||||
})
|
||||
|
||||
It("streaming output", func() {
|
||||
Skip(v2remotefail)
|
||||
containerName := "logs-f-rm"
|
||||
|
||||
logc := podmanTest.Podman([]string{"run", "--rm", "--name", containerName, "-dt", ALPINE, "sh", "-c", "echo podman; sleep 1; echo podman"})
|
||||
@ -313,6 +314,7 @@ var _ = Describe("Podman logs", func() {
|
||||
})
|
||||
|
||||
It("follow output stopped container", func() {
|
||||
Skip(v2remotefail)
|
||||
containerName := "logs-f"
|
||||
|
||||
logc := podmanTest.Podman([]string{"run", "--name", containerName, "-d", ALPINE, "true"})
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -59,6 +59,7 @@ var _ = Describe("Podman pod inspect", func() {
|
||||
})
|
||||
|
||||
It("podman pod inspect (CreateCommand)", func() {
|
||||
Skip(v2remotefail)
|
||||
podName := "myTestPod"
|
||||
createCommand := []string{"pod", "create", "--name", podName, "--hostname", "rudolph", "--share", "net"}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -120,6 +120,7 @@ var _ = Describe("Podman start", func() {
|
||||
})
|
||||
|
||||
It("podman failed to start with --rm should delete the container", func() {
|
||||
Skip(v2remotefail)
|
||||
session := podmanTest.Podman([]string{"create", "--name", "test1", "-it", "--rm", ALPINE, "foo"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -198,6 +198,7 @@ var _ = Describe("Podman stop", func() {
|
||||
})
|
||||
|
||||
It("podman stop all containers with one stopped", func() {
|
||||
Skip(v2remotefail)
|
||||
session := podmanTest.RunTopContainer("test1")
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Equal(0))
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
@ -33,6 +33,7 @@ var _ = Describe("Podman untag", func() {
|
||||
})
|
||||
|
||||
It("podman untag all", func() {
|
||||
Skip(v2remotefail)
|
||||
tags := []string{ALPINE, "registry.com/foo:bar", "localhost/foo:bar"}
|
||||
|
||||
cmd := []string{"tag"}
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !remoteclient
|
||||
// +build !remote
|
||||
|
||||
package integration
|
||||
|
||||
|
Reference in New Issue
Block a user