mirror of
https://github.com/containers/podman.git
synced 2025-06-28 06:18:57 +08:00
test/e2e/run_volume_test.go: mv dockerfile decl
Move declaration of a dockerfile closer to its use. Since it is used only once, there's no sense in having it declared globally. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -15,10 +15,6 @@ import (
|
|||||||
"github.com/onsi/gomega/gexec"
|
"github.com/onsi/gomega/gexec"
|
||||||
)
|
)
|
||||||
|
|
||||||
var VolumeTrailingSlashDockerfile = `
|
|
||||||
FROM alpine:latest
|
|
||||||
VOLUME /test/`
|
|
||||||
|
|
||||||
var _ = Describe("Podman run with volumes", func() {
|
var _ = Describe("Podman run with volumes", func() {
|
||||||
var (
|
var (
|
||||||
tempdir string
|
tempdir string
|
||||||
@ -426,7 +422,10 @@ 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() {
|
||||||
image := "podman-volume-test:trailing"
|
image := "podman-volume-test:trailing"
|
||||||
podmanTest.BuildImage(VolumeTrailingSlashDockerfile, image, "false")
|
dockerfile := `
|
||||||
|
FROM alpine:latest
|
||||||
|
VOLUME /test/`
|
||||||
|
podmanTest.BuildImage(dockerfile, image, "false")
|
||||||
|
|
||||||
ctrName := "testCtr"
|
ctrName := "testCtr"
|
||||||
create := podmanTest.Podman([]string{"create", "-v", "/tmp:/test", "--name", ctrName, image, "ls"})
|
create := podmanTest.Podman([]string{"create", "-v", "/tmp:/test", "--name", ctrName, image, "ls"})
|
||||||
|
Reference in New Issue
Block a user