diff options
author | Scott Moser <smoser@ubuntu.com> | 2018-01-23 15:05:35 -0700 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2018-01-23 15:05:35 -0700 |
commit | c02a4d4c88cc2c6ec9f03ddf86703f5b67e04348 (patch) | |
tree | 8027ad934d74d9e4beacdbf1fe8bc29cabf40cfe /tests | |
parent | eb70975eaf37cf9549949f72e7647addb81a52ac (diff) | |
download | vyos-cloud-init-c02a4d4c88cc2c6ec9f03ddf86703f5b67e04348.tar.gz vyos-cloud-init-c02a4d4c88cc2c6ec9f03ddf86703f5b67e04348.zip |
tests: when querying ntp server, do not do dns resolution.
Tests run on EC2 would successfully resolve the ipv4 dns address
and that caused false positives on failure reports.
Basically, dns lookup of 172.16.15.14 would return
ip-172-16-15-14.us-east-2.compute.internal.
which then shows up in the ntpq output unless you provide -n.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cloud_tests/testcases/modules/ntp_pools.yaml | 2 | ||||
-rw-r--r-- | tests/cloud_tests/testcases/modules/ntp_servers.yaml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/cloud_tests/testcases/modules/ntp_pools.yaml b/tests/cloud_tests/testcases/modules/ntp_pools.yaml index 3a93faa2..d490b228 100644 --- a/tests/cloud_tests/testcases/modules/ntp_pools.yaml +++ b/tests/cloud_tests/testcases/modules/ntp_pools.yaml @@ -26,6 +26,6 @@ collect_scripts: grep '^pool' /etc/ntp.conf ntpq_servers: | #!/bin/sh - ntpq -p -w + ntpq -p -w -n # vi: ts=4 expandtab diff --git a/tests/cloud_tests/testcases/modules/ntp_servers.yaml b/tests/cloud_tests/testcases/modules/ntp_servers.yaml index d59d45a8..6b13b70e 100644 --- a/tests/cloud_tests/testcases/modules/ntp_servers.yaml +++ b/tests/cloud_tests/testcases/modules/ntp_servers.yaml @@ -22,6 +22,6 @@ collect_scripts: grep '^server' /etc/ntp.conf ntpq_servers: | #!/bin/sh - ntpq -p -w + ntpq -p -w -n # vi: ts=4 expandtab |