mirror of
https://github.com/containers/podman.git
synced 2025-12-18 14:29:21 +08:00
Merge pull request #6057 from baude/v2networking
v2networking enable commands
This commit is contained in:
@@ -76,7 +76,6 @@ var _ = Describe("Podman network create", func() {
|
||||
)
|
||||
|
||||
BeforeEach(func() {
|
||||
Skip(v2fail)
|
||||
SkipIfRootless()
|
||||
tempdir, err = CreateTempDirInTempDir()
|
||||
if err != nil {
|
||||
|
||||
@@ -34,7 +34,7 @@ var _ = Describe("Podman network", func() {
|
||||
)
|
||||
|
||||
BeforeEach(func() {
|
||||
Skip(v2fail)
|
||||
SkipIfRootless()
|
||||
tempdir, err = CreateTempDirInTempDir()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
@@ -80,7 +80,6 @@ var _ = Describe("Podman network", func() {
|
||||
)
|
||||
|
||||
It("podman network list", func() {
|
||||
SkipIfRootless()
|
||||
// Setup, use uuid to prevent conflict with other tests
|
||||
uuid := stringid.GenerateNonCryptoID()
|
||||
secondPath := filepath.Join(cniPath, fmt.Sprintf("%s.conflist", uuid))
|
||||
@@ -94,7 +93,6 @@ var _ = Describe("Podman network", func() {
|
||||
})
|
||||
|
||||
It("podman network list -q", func() {
|
||||
SkipIfRootless()
|
||||
// Setup, use uuid to prevent conflict with other tests
|
||||
uuid := stringid.GenerateNonCryptoID()
|
||||
secondPath := filepath.Join(cniPath, fmt.Sprintf("%s.conflist", uuid))
|
||||
@@ -108,14 +106,12 @@ var _ = Describe("Podman network", func() {
|
||||
})
|
||||
|
||||
It("podman network rm no args", func() {
|
||||
SkipIfRootless()
|
||||
session := podmanTest.Podman([]string{"network", "rm"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).ToNot(BeZero())
|
||||
})
|
||||
|
||||
It("podman network rm", func() {
|
||||
SkipIfRootless()
|
||||
// Setup, use uuid to prevent conflict with other tests
|
||||
uuid := stringid.GenerateNonCryptoID()
|
||||
secondPath := filepath.Join(cniPath, fmt.Sprintf("%s.conflist", uuid))
|
||||
@@ -138,14 +134,12 @@ var _ = Describe("Podman network", func() {
|
||||
})
|
||||
|
||||
It("podman network inspect no args", func() {
|
||||
SkipIfRootless()
|
||||
session := podmanTest.Podman([]string{"network", "inspect"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).ToNot(BeZero())
|
||||
})
|
||||
|
||||
It("podman network inspect", func() {
|
||||
SkipIfRootless()
|
||||
// Setup, use uuid to prevent conflict with other tests
|
||||
uuid := stringid.GenerateNonCryptoID()
|
||||
secondPath := filepath.Join(cniPath, fmt.Sprintf("%s.conflist", uuid))
|
||||
@@ -159,7 +153,6 @@ var _ = Describe("Podman network", func() {
|
||||
})
|
||||
|
||||
It("podman inspect container single CNI network", func() {
|
||||
SkipIfRootless()
|
||||
netName := "testNetSingleCNI"
|
||||
network := podmanTest.Podman([]string{"network", "create", "--subnet", "10.50.50.0/24", netName})
|
||||
network.WaitWithDefaultTimeout()
|
||||
@@ -190,7 +183,6 @@ var _ = Describe("Podman network", func() {
|
||||
})
|
||||
|
||||
It("podman inspect container two CNI networks", func() {
|
||||
SkipIfRootless()
|
||||
netName1 := "testNetTwoCNI1"
|
||||
network1 := podmanTest.Podman([]string{"network", "create", "--subnet", "10.50.51.0/25", netName1})
|
||||
network1.WaitWithDefaultTimeout()
|
||||
|
||||
Reference in New Issue
Block a user