diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-15 07:38:01 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-08-15 07:38:08 -0400 |
commit | b9c094a5d4f2fe9bce929aac898aad94b48169c6 (patch) | |
tree | 75e4665d26f21f89410fbef4f6bcebd7724bcea4 /test | |
parent | 4136496ee713982daf3136ffe65d11a4163fabb8 (diff) | |
download | podman-b9c094a5d4f2fe9bce929aac898aad94b48169c6.tar.gz podman-b9c094a5d4f2fe9bce929aac898aad94b48169c6.tar.bz2 podman-b9c094a5d4f2fe9bce929aac898aad94b48169c6.zip |
Add Docker compatibility for --dns-option to --dns-opt
Fixes one of the issues found in https://github.com/containers/podman/issues/14917
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/system/500-networking.bats | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats index b9a173c2a..5da7523f3 100644 --- a/test/system/500-networking.bats +++ b/test/system/500-networking.bats @@ -767,4 +767,14 @@ EOF is "$output" "" "Should print no output" } +@test "podman network rm --dns-option " { + dns_opt=dns$(random_string) + run_podman run --rm --dns-opt=${dns_opt} $IMAGE cat /etc/resolv.conf + is "$output" ".*options ${dns_opt}" "--dns-opt was added" + + dns_opt=dns$(random_string) + run_podman run --rm --dns-option=${dns_opt} $IMAGE cat /etc/resolv.conf + is "$output" ".*options ${dns_opt}" "--dns-option was added" +} + # vim: filetype=sh |