aboutsummaryrefslogtreecommitdiff
path: root/scripts/testing/tests/test_users.py
blob: 92ce7683e408734d3b2158ba14e1503d3b4407ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"