Smoketest dns-remove -h
This commit is contained in:
1 parent
9da5511484
commit
66de361fd6
3 files changed
+34
-2
No files matched your search
@@ -143,6 +143,16 @@ assert_no_dns_record() {
|
||||
assert_raises "exec_on $host $container getent hosts $name" 2
|
||||
}
|
||||
|
||||
# assert_dns_a_record <host> <container> <name> <ip>
|
||||
assert_dns_a_record() {
|
||||
assert "exec_on $1 $2 getent hosts $3 | tr -s ' '" "$4 $3"
|
||||
}
|
||||
|
||||
# assert_dns_ptr_record <host> <container> <name> <ip>
|
||||
assert_dns_ptr_record() {
|
||||
assert "exec_on $1 $2 getent hosts $4 | tr -s ' '" "$4 $3"
|
||||
}
|
||||
|
||||
start_suite() {
|
||||
for host in $HOST1 $HOST2; do
|
||||
echo "Cleaning up on $host: removing all containers and resetting weave"
|
||||
|
||||
Reference in new issue
Block a user