Merge ~powersj/cloud-init:fix-integration-ntp into cloud-init:master

Proposed by Joshua Powers
Status: Merged
Merged at revision: 9fa17d4bc1ef2564e30ab655bf6de462296aecad
Proposed branch: ~powersj/cloud-init:fix-integration-ntp
Merge into: cloud-init:master
Diff against target: 17 lines (+3/-3)
1 file modified
tests/cloud_tests/testcases/modules/ntp_servers.py (+3/-3)
Reviewer Review Type Date Requested Status
Server Team CI bot continuous-integration Approve
Scott Moser Needs Fixing
Ryan Harper Approve
Review via email: mp+324429@code.launchpad.net

Commit message

tests: Fix ntp integration test regression

LP: #1692686

To post a comment you must log in.
Revision history for this message
Ryan Harper (raharper) wrote :

Thank you for finding/fixing my merge error.

review: Approve
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Scott Moser (smoser) wrote :

I am pretty sure that you should change the docstring for 'test_ntp_entires'. Ie, you're changing 'ntp_conf_pools' to 'ntp_conf_servers' inside a function with a doc string "Test config pools entries".

And while you're there, you might as well spell entries right in the function name.

review: Needs Fixing
Revision history for this message
Server Team CI bot (server-team-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/tests/cloud_tests/testcases/modules/ntp_servers.py b/tests/cloud_tests/testcases/modules/ntp_servers.py
index 9ef270e..4010cf8 100644
--- a/tests/cloud_tests/testcases/modules/ntp_servers.py
+++ b/tests/cloud_tests/testcases/modules/ntp_servers.py
@@ -17,9 +17,9 @@ class TestNtpServers(base.CloudTestCase):
17 out = self.get_data_file('ntp_conf_dist_servers')17 out = self.get_data_file('ntp_conf_dist_servers')
18 self.assertEqual(0, int(out))18 self.assertEqual(0, int(out))
1919
20 def test_ntp_entires(self):20 def test_ntp_entries(self):
21 """Test config pools entries"""21 """Test config server entries"""
22 out = self.get_data_file('ntp_conf_pools')22 out = self.get_data_file('ntp_conf_servers')
23 servers = self.cloud_config.get('ntp').get('servers')23 servers = self.cloud_config.get('ntp').get('servers')
24 for server in servers:24 for server in servers:
25 self.assertIn('server %s iburst' % server, out)25 self.assertIn('server %s iburst' % server, out)

Subscribers

People subscribed via source and target branches