refactoring proxy dns test
This commit is contained in:
1 parent
b33d4497fa
commit
af38f07d26
2 files changed
+22
-16
No files matched your search
@@ -8,14 +8,14 @@ TARGET_IP=10.2.0.78
|
||||
|
||||
assert_no_resolution() {
|
||||
container=$(weave_on $HOST1 run "$@" $IP/24 -t $DNS_IMAGE /bin/sh)
|
||||
assert_no_dns_record $HOST1 "$container" $TARGET
|
||||
docker_on $HOST1 rm -f "$container" >/dev/null
|
||||
assert_no_dns_record $HOST1 $container $TARGET
|
||||
rm_containers $HOST1 $container
|
||||
}
|
||||
|
||||
assert_resolution() {
|
||||
container=$(weave_on $HOST1 run "$@" $IP/24 -t $DNS_IMAGE /bin/sh)
|
||||
assert_dns_record $HOST1 "$container" $TARGET $TARGET_IP
|
||||
docker_on $HOST1 rm -f "$container" >/dev/null
|
||||
assert_dns_record $HOST1 $container $TARGET $TARGET_IP
|
||||
rm_containers $HOST1 $container
|
||||
}
|
||||
|
||||
start_suite "With or without DNS test"
|
||||
|
||||
Reference in new issue
Block a user