diff options
author | Brent Baude <bbaude@redhat.com> | 2022-01-05 13:10:56 -0600 |
---|---|---|
committer | Brent Baude <bbaude@redhat.com> | 2022-02-02 13:03:45 -0600 |
commit | 7d3ad6081f6598b8fa6385409e5109f11f29254f (patch) | |
tree | e68f74bfc0393443ee322380fee4940ca043aba3 /test/e2e/create_staticip_test.go | |
parent | c2d0011b723428c622b99cf633439f84c4bf901a (diff) | |
download | podman-7d3ad6081f6598b8fa6385409e5109f11f29254f.tar.gz podman-7d3ad6081f6598b8fa6385409e5109f11f29254f.tar.bz2 podman-7d3ad6081f6598b8fa6385409e5109f11f29254f.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.go | 6 |
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)) + } }) }) |