From 75740be39541296d379e34902e11ba49e96a1867 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Tue, 13 Sep 2022 15:13:09 -0700 Subject: 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 --- test/e2e/volume_plugin_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/e2e/volume_plugin_test.go') diff --git a/test/e2e/volume_plugin_test.go b/test/e2e/volume_plugin_test.go index a44e75a54..33cdcce5b 100644 --- a/test/e2e/volume_plugin_test.go +++ b/test/e2e/volume_plugin_test.go @@ -212,19 +212,19 @@ testvol5 = "/run/docker/plugins/testvol5.sock"`), 0o644) plugin.WaitWithDefaultTimeout() Expect(plugin).Should(Exit(0)) - localvol := "local-" + stringid.GenerateNonCryptoID() + localvol := "local-" + stringid.GenerateRandomID() // create local volume session := podmanTest.Podman([]string{"volume", "create", localvol}) session.WaitWithDefaultTimeout() Expect(session).To(Exit(0)) - vol1 := "vol1-" + stringid.GenerateNonCryptoID() + vol1 := "vol1-" + stringid.GenerateRandomID() session = podmanTest.Podman([]string{"volume", "create", "--driver", pluginName, vol1}) session.WaitWithDefaultTimeout() Expect(session).To(Exit(0)) // now create volume in plugin without podman - vol2 := "vol2-" + stringid.GenerateNonCryptoID() + vol2 := "vol2-" + stringid.GenerateRandomID() plugin = podmanTest.Podman([]string{"exec", ctrName, "/usr/local/bin/testvol", "--sock-name", pluginName, "create", vol2}) plugin.WaitWithDefaultTimeout() Expect(plugin).Should(Exit(0)) -- cgit v1.2.3-54-g00ecf