From 9688a462e996ac5d2bebf24f7ffdfaca9dc0ff05 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Wed, 5 Jan 2022 13:10:56 -0600 Subject: netavark e2e tests enabled e2e tests for netavark Signed-off-by: Brent Baude --- test/e2e/create_staticip_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test/e2e/create_staticip_test.go') 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)) + } }) }) -- cgit v1.2.3-54-g00ecf