Skip to content

Commit

Permalink
tests: Also test to create user with invalid name
Browse files Browse the repository at this point in the history
  • Loading branch information
leonklingele committed May 18, 2018
1 parent f7cead1 commit 67029aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/02-user.test
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ user_create "test2" "ssh-ed25519"
users_list_count_must_equal "3"
user_create "invalid-ssh" "invalid-ssh" "$INVALID_SSH_KEY_ERROR_MSG"
user_create "invalid-ssh" "ssh" "$INVALID_SSH_KEY_ERROR_MSG"
user_create "invalid/user" "ssh-rsa" "$INVALID_USER_NAME_ERROR_MSG"
user_create "invalid=user" "ssh-rsa" "$INVALID_USER_NAME_ERROR_MSG"
users_list_count_must_equal "3"
user_create "test" "ssh-rsa" "Error! User 'test' already exists"
users_list_count_must_equal "3"
Expand Down

0 comments on commit 67029aa

Please sign in to comment.