summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/configs/modules/ntp_pools.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/configs/modules/ntp_pools.yaml')
-rw-r--r--tests/cloud_tests/configs/modules/ntp_pools.yaml8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/cloud_tests/configs/modules/ntp_pools.yaml b/tests/cloud_tests/configs/modules/ntp_pools.yaml
index 7561c7f3..3a93faa2 100644
--- a/tests/cloud_tests/configs/modules/ntp_pools.yaml
+++ b/tests/cloud_tests/configs/modules/ntp_pools.yaml
@@ -1,15 +1,10 @@
#
# NTP config using specific pools
#
-# NOTE: this should not require apt feature, use 'which' rather than 'dpkg -l'
-# NOTE: this should not require no_ntpdate feature, use 'which' to check for
-# installation rather than 'dpkg -l', as 'grep ntp' matches 'ntpdate'
# NOTE: lsb_release listed here because with recent cloud-init deb with
# (LP: 1628337) resolved, cloud-init will attempt to configure archives.
# this fails without lsb_release as UNAVAILABLE is used for $RELEASE
required_features:
- - apt
- - no_ntpdate
- lsb_release
cloud_config: |
#cloud-config
@@ -21,7 +16,8 @@ cloud_config: |
collect_scripts:
ntp_installed_pools: |
#!/bin/bash
- dpkg -l | grep ntp | wc -l
+ ntpd --version > /dev/null 2>&1
+ echo $?
ntp_conf_dist_pools: |
#!/bin/bash
ls /etc/ntp.conf.dist | wc -l