summaryrefslogtreecommitdiff
path: root/tests/setup_user_test
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-19 19:11:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-19 19:26:54 +0000
commit41a5ddd15079bf0f75100335bb163ba629b70eae (patch)
tree45fd08878ed237ca350638a58327b82ec0abc491 /tests/setup_user_test
parent2425a623a2437d21bbc176e9f72cd1523bc47486 (diff)
downloadalpine-conf-41a5ddd15079bf0f75100335bb163ba629b70eae.zip
setup-user: suggest a username
use first char in first name and all last name, in lower case as suggested user name.
Diffstat (limited to 'tests/setup_user_test')
-rwxr-xr-xtests/setup_user_test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/setup_user_test b/tests/setup_user_test
index d8e6d77..03660b9 100755
--- a/tests/setup_user_test
+++ b/tests/setup_user_test
@@ -48,12 +48,12 @@ setup_user_interactive_body() {
setup_user_interactive_fullname_body() {
init_env
(
- echo "testuser"
+ echo ""
) | atf_check -s exit:0 \
-o not-match:"Enter full name" \
- -o match:"Enter username" \
- -o not-match:"adduser.* -D .*testuser" \
- -o match:"adduser.* -g Joe User .*testuser" \
+ -o match:"Enter username.*[juser]" \
+ -o not-match:"adduser.* -D .*" \
+ -o match:"adduser.* -g Joe User .*juser" \
-e empty \
setup-user -f "Joe User" -k none
}