summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-05-19 18:48:55 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2022-05-19 19:26:54 +0000
commit9a6aa242d38e5c35ba258b371ce287f40e86572d (patch)
treed0871ab4d4d1d8d729f51a59653fc7fd4597d6c7 /tests
parentbe11c93d018a07afd1b166a642f5efa2630474f7 (diff)
downloadalpine-conf-9a6aa242d38e5c35ba258b371ce287f40e86572d.zip
setup-user: prompt user for ssh key
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_user_test3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/setup_user_test b/tests/setup_user_test
index c2c7ce0..c67f495 100755
--- a/tests/setup_user_test
+++ b/tests/setup_user_test
@@ -33,6 +33,7 @@ setup_user_interactive_body() {
(
echo "Joe User"
echo "testuser"
+ echo "none"
) | atf_check -s exit:0 \
-o match:"Enter full name" \
-o match:"Enter username" \
@@ -52,6 +53,6 @@ setup_user_interactive_fullname_body() {
-o not-match:"adduser.* -D .*testuser" \
-o match:"adduser.* -g Joe User .*testuser" \
-e empty \
- setup-user -f "Joe User"
+ setup-user -f "Joe User" -k none
}