aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/tests/test_users.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/testing/tests/test_users.py')
-rw-r--r--scripts/testing/tests/test_users.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/testing/tests/test_users.py b/scripts/testing/tests/test_users.py
new file mode 100644
index 0000000..92ce768
--- /dev/null
+++ b/scripts/testing/tests/test_users.py
@@ -0,0 +1,18 @@
+# SPDX-License-Identifier: GPL-3.0-or-later
+"""Post-install checks: the user account archsetup creates.
+
+Parity port of validate_user_created / validate_user_shell from validation.sh.
+"""
+
+import pytest
+
+
+@pytest.mark.smoke
+@pytest.mark.attribution("archsetup")
+def test_user_exists(host, target_user):
+ assert host.user(target_user).exists
+
+
+@pytest.mark.attribution("archsetup")
+def test_user_shell_is_zsh(host, target_user):
+ assert host.user(target_user).shell == "/usr/bin/zsh"