mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Merge pull request #6454 from rhatdan/remote
Remove skipifremote checks in images_test.go
This commit is contained in:
@ -151,7 +151,6 @@ var _ = Describe("Podman images", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images filter reference", func() {
|
It("podman images filter reference", func() {
|
||||||
SkipIfRemote()
|
|
||||||
podmanTest.RestoreAllArtifacts()
|
podmanTest.RestoreAllArtifacts()
|
||||||
result := podmanTest.PodmanNoCache([]string{"images", "-q", "-f", "reference=docker.io*"})
|
result := podmanTest.PodmanNoCache([]string{"images", "-q", "-f", "reference=docker.io*"})
|
||||||
result.WaitWithDefaultTimeout()
|
result.WaitWithDefaultTimeout()
|
||||||
@ -177,7 +176,6 @@ var _ = Describe("Podman images", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images filter before image", func() {
|
It("podman images filter before image", func() {
|
||||||
SkipIfRemote()
|
|
||||||
dockerfile := `FROM docker.io/library/alpine:latest
|
dockerfile := `FROM docker.io/library/alpine:latest
|
||||||
RUN apk update && apk add strace
|
RUN apk update && apk add strace
|
||||||
`
|
`
|
||||||
@ -189,7 +187,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images filter after image", func() {
|
It("podman images filter after image", func() {
|
||||||
SkipIfRemote()
|
|
||||||
podmanTest.RestoreAllArtifacts()
|
podmanTest.RestoreAllArtifacts()
|
||||||
rmi := podmanTest.PodmanNoCache([]string{"rmi", "busybox"})
|
rmi := podmanTest.PodmanNoCache([]string{"rmi", "busybox"})
|
||||||
rmi.WaitWithDefaultTimeout()
|
rmi.WaitWithDefaultTimeout()
|
||||||
@ -205,7 +202,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman image list filter after image", func() {
|
It("podman image list filter after image", func() {
|
||||||
SkipIfRemote()
|
|
||||||
podmanTest.RestoreAllArtifacts()
|
podmanTest.RestoreAllArtifacts()
|
||||||
rmi := podmanTest.PodmanNoCache([]string{"image", "rm", "busybox"})
|
rmi := podmanTest.PodmanNoCache([]string{"image", "rm", "busybox"})
|
||||||
rmi.WaitWithDefaultTimeout()
|
rmi.WaitWithDefaultTimeout()
|
||||||
@ -221,7 +217,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images filter dangling", func() {
|
It("podman images filter dangling", func() {
|
||||||
SkipIfRemote()
|
|
||||||
dockerfile := `FROM docker.io/library/alpine:latest
|
dockerfile := `FROM docker.io/library/alpine:latest
|
||||||
`
|
`
|
||||||
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
|
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
|
||||||
@ -233,9 +228,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman check for image with sha256: prefix", func() {
|
It("podman check for image with sha256: prefix", func() {
|
||||||
if podmanTest.RemoteTest {
|
|
||||||
Skip("Does not work on remote client")
|
|
||||||
}
|
|
||||||
session := podmanTest.Podman([]string{"inspect", "--format=json", ALPINE})
|
session := podmanTest.Podman([]string{"inspect", "--format=json", ALPINE})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
@ -248,9 +240,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman check for image with sha256: prefix", func() {
|
It("podman check for image with sha256: prefix", func() {
|
||||||
if podmanTest.RemoteTest {
|
|
||||||
Skip("Does not work on remote client")
|
|
||||||
}
|
|
||||||
session := podmanTest.Podman([]string{"image", "inspect", "--format=json", ALPINE})
|
session := podmanTest.Podman([]string{"image", "inspect", "--format=json", ALPINE})
|
||||||
session.WaitWithDefaultTimeout()
|
session.WaitWithDefaultTimeout()
|
||||||
Expect(session).Should(Exit(0))
|
Expect(session).Should(Exit(0))
|
||||||
@ -297,7 +286,6 @@ RUN apk update && apk add strace
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images --all flag", func() {
|
It("podman images --all flag", func() {
|
||||||
SkipIfRemote()
|
|
||||||
podmanTest.RestoreAllArtifacts()
|
podmanTest.RestoreAllArtifacts()
|
||||||
dockerfile := `FROM docker.io/library/alpine:latest
|
dockerfile := `FROM docker.io/library/alpine:latest
|
||||||
RUN mkdir hello
|
RUN mkdir hello
|
||||||
@ -317,7 +305,6 @@ ENV foo=bar
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images filter by label", func() {
|
It("podman images filter by label", func() {
|
||||||
SkipIfRemote()
|
|
||||||
dockerfile := `FROM docker.io/library/alpine:latest
|
dockerfile := `FROM docker.io/library/alpine:latest
|
||||||
LABEL version="1.0"
|
LABEL version="1.0"
|
||||||
LABEL "com.example.vendor"="Example Vendor"
|
LABEL "com.example.vendor"="Example Vendor"
|
||||||
@ -330,7 +317,6 @@ LABEL "com.example.vendor"="Example Vendor"
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman with images with no layers", func() {
|
It("podman with images with no layers", func() {
|
||||||
SkipIfRemote()
|
|
||||||
dockerfile := strings.Join([]string{
|
dockerfile := strings.Join([]string{
|
||||||
`FROM scratch`,
|
`FROM scratch`,
|
||||||
`LABEL org.opencontainers.image.authors="<somefolks@example.org>"`,
|
`LABEL org.opencontainers.image.authors="<somefolks@example.org>"`,
|
||||||
@ -395,7 +381,6 @@ LABEL "com.example.vendor"="Example Vendor"
|
|||||||
})
|
})
|
||||||
|
|
||||||
It("podman images --filter readonly", func() {
|
It("podman images --filter readonly", func() {
|
||||||
SkipIfRemote()
|
|
||||||
dockerfile := `FROM docker.io/library/alpine:latest
|
dockerfile := `FROM docker.io/library/alpine:latest
|
||||||
`
|
`
|
||||||
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
|
podmanTest.BuildImage(dockerfile, "foobar.com/before:latest", "false")
|
||||||
|
Reference in New Issue
Block a user