summaryrefslogtreecommitdiff
path: root/test/e2e/create_staticip_test.go
diff options
context:
space:
mode:
authorBrent Baude <bbaude@redhat.com>2022-01-05 13:10:56 -0600
committerChris Evich <cevich@redhat.com>2022-02-11 11:23:24 -0500
commit9688a462e996ac5d2bebf24f7ffdfaca9dc0ff05 (patch)
treef28d85664f867115153168dd3ebcc8931106e977 /test/e2e/create_staticip_test.go
parentc4a9aa7c73e120fc2e246f056fec83ff35854dba (diff)
downloadpodman-9688a462e996ac5d2bebf24f7ffdfaca9dc0ff05.tar.gz
podman-9688a462e996ac5d2bebf24f7ffdfaca9dc0ff05.tar.bz2
podman-9688a462e996ac5d2bebf24f7ffdfaca9dc0ff05.zip
netavark e2e tests
enabled e2e tests for netavark Signed-off-by: Brent Baude <bbaude@redhat.com>
Diffstat (limited to 'test/e2e/create_staticip_test.go')
-rw-r--r--test/e2e/create_staticip_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/e2e/create_staticip_test.go b/test/e2e/create_staticip_test.go
index 5d234d717..4a1d926e0 100644
--- a/test/e2e/create_staticip_test.go
+++ b/test/e2e/create_staticip_test.go
@@ -106,6 +106,10 @@ var _ = Describe("Podman create with --ip flag", func() {
result = podmanTest.Podman([]string{"start", "test2"})
result.WaitWithDefaultTimeout()
Expect(result).To(ExitWithError())
- Expect(result.ErrorToString()).To(ContainSubstring("requested IP address " + ip + " is not available"))
+ if podmanTest.NetworkBackend == CNI {
+ Expect(result.ErrorToString()).To(ContainSubstring("requested IP address " + ip + " is not available"))
+ } else if podmanTest.NetworkBackend == Netavark {
+ Expect(result.ErrorToString()).To(ContainSubstring("requested ip address %s is already allocated", ip))
+ }
})
})