summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/ntp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/modules/ntp.py')
-rw-r--r--tests/cloud_tests/testcases/modules/ntp.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/cloud_tests/testcases/modules/ntp.py b/tests/cloud_tests/testcases/modules/ntp.py
index a4b8c3d8..b50e52fe 100644
--- a/tests/cloud_tests/testcases/modules/ntp.py
+++ b/tests/cloud_tests/testcases/modules/ntp.py
@@ -9,8 +9,8 @@ class TestNtp(base.CloudTestCase):
def test_ntp_installed(self):
"""Test ntp installed"""
- out = self.get_data_file('ntp_installed_empty')
- self.assertEqual(1, int(out))
+ out = self.get_data_file('ntp_installed')
+ self.assertEqual(0, int(out))
def test_ntp_dist_entries(self):
"""Test dist config file is empty"""
@@ -19,10 +19,7 @@ class TestNtp(base.CloudTestCase):
def test_ntp_entires(self):
"""Test config entries"""
- out = self.get_data_file('ntp_conf_empty')
- self.assertIn('pool 0.ubuntu.pool.ntp.org iburst', out)
- self.assertIn('pool 1.ubuntu.pool.ntp.org iburst', out)
- self.assertIn('pool 2.ubuntu.pool.ntp.org iburst', out)
- self.assertIn('pool 3.ubuntu.pool.ntp.org iburst', out)
+ out = self.get_data_file('ntp_conf_pool_list')
+ self.assertIn('pool.ntp.org iburst', out)
# vi: ts=4 expandtab