mirror of
https://github.com/containers/podman.git
synced 2025-08-01 07:40:22 +08:00
test: use stringid.GenerateNonCryptoID() in more tests
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -622,7 +622,7 @@ var _ = Describe("Podman run networking", func() {
|
|||||||
|
|
||||||
It("podman run in custom CNI network with --static-ip", func() {
|
It("podman run in custom CNI network with --static-ip", func() {
|
||||||
SkipIfRootless("Rootless mode does not support --ip")
|
SkipIfRootless("Rootless mode does not support --ip")
|
||||||
netName := "podmantestnetwork"
|
netName := stringid.GenerateNonCryptoID()
|
||||||
ipAddr := "10.25.30.128"
|
ipAddr := "10.25.30.128"
|
||||||
create := podmanTest.Podman([]string{"network", "create", "--subnet", "10.25.30.0/24", netName})
|
create := podmanTest.Podman([]string{"network", "create", "--subnet", "10.25.30.0/24", netName})
|
||||||
create.WaitWithDefaultTimeout()
|
create.WaitWithDefaultTimeout()
|
||||||
@ -659,7 +659,7 @@ var _ = Describe("Podman run networking", func() {
|
|||||||
|
|
||||||
It("podman run with new:pod and static-ip", func() {
|
It("podman run with new:pod and static-ip", func() {
|
||||||
SkipIfRootless("Rootless does not support --ip")
|
SkipIfRootless("Rootless does not support --ip")
|
||||||
netName := "podmantestnetwork2"
|
netName := stringid.GenerateNonCryptoID()
|
||||||
ipAddr := "10.25.40.128"
|
ipAddr := "10.25.40.128"
|
||||||
podname := "testpod"
|
podname := "testpod"
|
||||||
create := podmanTest.Podman([]string{"network", "create", "--subnet", "10.25.40.0/24", netName})
|
create := podmanTest.Podman([]string{"network", "create", "--subnet", "10.25.40.0/24", netName})
|
||||||
|
Reference in New Issue
Block a user