summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-03 09:37:20 -0500
committerGitHub <noreply@github.com>2022-02-03 09:37:20 -0500
commit08930b24b98b31ea4f1ce882a45166b469b28ced (patch)
treeb76b51e25d16a1a36bf57a3647fe7216da1e6c84 /test
parent51cc0edfee817d3cd6498b2251ee7debe3647912 (diff)
parent25e073492f266062f47c65bb20e590b023422746 (diff)
downloadpodman-08930b24b98b31ea4f1ce882a45166b469b28ced.tar.gz
podman-08930b24b98b31ea4f1ce882a45166b469b28ced.tar.bz2
podman-08930b24b98b31ea4f1ce882a45166b469b28ced.zip
Merge pull request #13117 from Luap99/resolv
Revert "Move each search dns to its own line"
Diffstat (limited to 'test')
-rw-r--r--test/system/500-networking.bats7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/system/500-networking.bats b/test/system/500-networking.bats
index e54b8d26a..9f70c1c6c 100644
--- a/test/system/500-networking.bats
+++ b/test/system/500-networking.bats
@@ -597,7 +597,7 @@ load helpers
searchIP="100.100.100.100"
cat >$containersconf <<EOF
[containers]
- dns_searches = [ "example.com", "test1.com"]
+ dns_searches = [ "example.com"]
dns_servers = [
"1.1.1.1",
"$searchIP",
@@ -605,14 +605,9 @@ load helpers
"8.8.8.8",
]
EOF
-export searchDNS="search example.com
-search test1.com
-search a.b"
CONTAINERS_CONF=$containersconf run_podman run --rm $IMAGE grep "example.com" /etc/resolv.conf
CONTAINERS_CONF=$containersconf run_podman run --rm $IMAGE grep $searchIP /etc/resolv.conf
is "$output" "nameserver $searchIP" "Should only be one $searchIP not multiple"
- CONTAINERS_CONF=$containersconf run_podman run --dns-search a.b --rm $IMAGE grep search /etc/resolv.conf
- is "$output" "$searchDNS" "Searches should be on different lines"
}
# vim: filetype=sh