diff options
author | Andrew Aylett <andrew@aylett.co.uk> | 2022-04-02 20:35:12 +0100 |
---|---|---|
committer | Andrew Aylett <andrew@aylett.co.uk> | 2022-04-02 21:10:40 +0100 |
commit | bf4318e60697c0d38b520ff79fd85f45e18b1309 (patch) | |
tree | a7805ca7b53458d71c85411709d6f62217d60c0f /test/e2e | |
parent | d4394ea3688ad1942b8457f6df869f7c440d49e7 (diff) | |
download | podman-bf4318e60697c0d38b520ff79fd85f45e18b1309.tar.gz podman-bf4318e60697c0d38b520ff79fd85f45e18b1309.tar.bz2 podman-bf4318e60697c0d38b520ff79fd85f45e18b1309.zip |
Allow creating anonymous volumes with --mount
This fixes #13756.
All the mechanics to create anonymous volumes is already present, but
there's still a validation preventing that path from being taken. We
remove the validation, which allows the volume to be created
successfully.
Signed-off-by: Andrew Aylett <andrew@aylett.co.uk>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_volume_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index d23c5dc14..471b3a342 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -778,6 +778,13 @@ VOLUME /test/`, ALPINE) Expect(session).Should(Exit(0)) Expect(session.OutputToString()).Should(Equal("888:888")) + // anonymous volume mount + vol = "type=volume," + "dst=" + dest + session = podmanTest.Podman([]string{"run", "--rm", "--user", "888:888", "--mount", vol, ALPINE, "stat", "-c", "%u:%g", dest}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).Should(Equal("888:888")) + // named volume mount namedVolume := podmanTest.Podman([]string{"volume", "create", "foo"}) namedVolume.WaitWithDefaultTimeout() |