summaryrefslogtreecommitdiff
path: root/tests/cloud_tests/testcases/modules/set_password.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cloud_tests/testcases/modules/set_password.yaml')
-rw-r--r--tests/cloud_tests/testcases/modules/set_password.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/cloud_tests/testcases/modules/set_password.yaml b/tests/cloud_tests/testcases/modules/set_password.yaml
new file mode 100644
index 00000000..04d7c58a
--- /dev/null
+++ b/tests/cloud_tests/testcases/modules/set_password.yaml
@@ -0,0 +1,19 @@
+#
+# Set password of default user
+#
+required_features:
+ - ubuntu_user
+cloud_config: |
+ #cloud-config
+ password: password
+ chpasswd: { expire: False }
+ ssh_pwauth: True
+collect_scripts:
+ shadow: |
+ #!/bin/bash
+ cat /etc/shadow
+ sshd_config: |
+ #!/bin/bash
+ grep '^PasswordAuth' /etc/ssh/sshd_config
+
+# vi: ts=4 expandtab