summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/set_password.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/modules/set_password.py')
-rw-r--r--tests/cloud_tests/testcases/modules/set_password.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/modules/set_password.py b/tests/cloud_tests/testcases/modules/set_password.py
new file mode 100644
index 00000000..1411a296
--- /dev/null
+++ b/tests/cloud_tests/testcases/modules/set_password.py
@@ -0,0 +1,22 @@
+# This file is part of cloud-init. See LICENSE file for license information.
+
+"""cloud-init Integration Test Verify Script"""
+from tests.cloud_tests.testcases import base
+
+
+class TestPassword(base.CloudTestCase):
+ """Test password module"""
+
+ # TODO add test to make sure password is actually "password"
+
+ def test_shadow(self):
+ """Test ubuntu user in shadow"""
+ out = self.get_data_file('shadow')
+ self.assertIn('ubuntu:', out)
+
+ def test_sshd_config(self):
+ """Test sshd config allows passwords"""
+ out = self.get_data_file('sshd_config')
+ self.assertIn('PasswordAuthentication yes', out)
+
+# vi: ts=4 expandtab