diff options
author | Paul Holzinger <paul.holzinger@web.de> | 2020-11-24 14:56:35 +0100 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2021-01-27 17:35:54 +0100 |
commit | c717b3cacad00ec8ea5415a2246994ac3adf7ae0 (patch) | |
tree | 5c033b783255244f69db20a208cb25e8dbd94cb5 /test/e2e/create_staticmac_test.go | |
parent | 2ff4da9b59df27584e436ff59a9d12b2c5e5e410 (diff) | |
download | podman-c717b3cacad00ec8ea5415a2246994ac3adf7ae0.tar.gz podman-c717b3cacad00ec8ea5415a2246994ac3adf7ae0.tar.bz2 podman-c717b3cacad00ec8ea5415a2246994ac3adf7ae0.zip |
Allow static ip and mac with rootless cni network
Make sure we pass the ip and mac address as CNI_ARGS to
the cnitool which is executed in the rootless-cni-infra
container.
Signed-off-by: Paul Holzinger <paul.holzinger@web.de>
Diffstat (limited to 'test/e2e/create_staticmac_test.go')
-rw-r--r-- | test/e2e/create_staticmac_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/e2e/create_staticmac_test.go b/test/e2e/create_staticmac_test.go index 1ac431da2..4c8f371a4 100644 --- a/test/e2e/create_staticmac_test.go +++ b/test/e2e/create_staticmac_test.go @@ -56,11 +56,7 @@ var _ = Describe("Podman run with --mac-address flag", func() { result := podmanTest.Podman([]string{"run", "--network", net, "--mac-address", "92:d0:c6:00:29:34", ALPINE, "ip", "addr"}) result.WaitWithDefaultTimeout() - if rootless.IsRootless() { - Expect(result.ExitCode()).To(Equal(125)) - } else { - Expect(result.ExitCode()).To(Equal(0)) - Expect(result.OutputToString()).To(ContainSubstring("92:d0:c6:00:29:34")) - } + Expect(result.ExitCode()).To(Equal(0)) + Expect(result.OutputToString()).To(ContainSubstring("92:d0:c6:00:29:34")) }) }) |