diff options
author | Kir Kolyshkin <kolyshkin@gmail.com> | 2022-09-13 15:13:09 -0700 |
---|---|---|
committer | Kir Kolyshkin <kolyshkin@gmail.com> | 2022-09-13 16:26:26 -0700 |
commit | 75740be39541296d379e34902e11ba49e96a1867 (patch) | |
tree | 9b4a5a807803d399787d0466221f25dab6240064 /test/e2e/volume_exists_test.go | |
parent | c64388728f5efec2658cf9097dbe15126f30753e (diff) | |
download | podman-75740be39541296d379e34902e11ba49e96a1867.tar.gz podman-75740be39541296d379e34902e11ba49e96a1867.tar.bz2 podman-75740be39541296d379e34902e11ba49e96a1867.zip |
all: stop using deprecated GenerateNonCryptoID
In view of https://github.com/containers/storage/pull/1337, do this:
for f in $(git grep -l stringid.GenerateNonCryptoID | grep -v '^vendor/'); do
sed -i 's/stringid.GenerateNonCryptoID/stringid.GenerateRandomID/g' $f;
done
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Diffstat (limited to 'test/e2e/volume_exists_test.go')
-rw-r--r-- | test/e2e/volume_exists_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/e2e/volume_exists_test.go b/test/e2e/volume_exists_test.go index 0de574968..0a550bfcb 100644 --- a/test/e2e/volume_exists_test.go +++ b/test/e2e/volume_exists_test.go @@ -34,7 +34,7 @@ var _ = Describe("Podman volume exists", func() { }) It("podman volume exists", func() { - vol := "vol" + stringid.GenerateNonCryptoID() + vol := "vol" + stringid.GenerateRandomID() session := podmanTest.Podman([]string{"volume", "create", vol}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) @@ -43,7 +43,7 @@ var _ = Describe("Podman volume exists", func() { session.WaitWithDefaultTimeout() Expect(session).Should(Exit(0)) - session = podmanTest.Podman([]string{"volume", "exists", stringid.GenerateNonCryptoID()}) + session = podmanTest.Podman([]string{"volume", "exists", stringid.GenerateRandomID()}) session.WaitWithDefaultTimeout() Expect(session).Should(Exit(1)) }) |