Files
kubernetes/test
Claudiu Belu fb8d2f7ef5 tests: Fixes DNS tests false positives
If dig fails to reach the DNS, it will output errors to stdout, which
can cause the test -n to falsely pass:

ubuntu@ubuntu:~$ dig +notcp +noall +answer +search kubernetes.default A
;; connection timed out; no servers could be reached
command terminated with exit code 9

ubuntu@ubuntu:~$ test -n "$(dig +notcp +noall +answer +search kubernetes.default A)" && echo OK
OK

This patch solves this issue by making sure the dig command actually succeeds
before checking its output.
2018-10-21 14:29:15 -07:00
..
2018-10-10 10:24:09 -04:00
2018-10-09 12:32:27 -07:00
2018-08-21 13:59:08 -04:00
2018-08-22 11:49:14 +08:00