From 67029aad12aebf776c95cc6380cc2b53385968d1 Mon Sep 17 00:00:00 2001 From: Leon Klingele Date: Fri, 18 May 2018 17:18:11 +0200 Subject: [PATCH] tests: Also test to create user with invalid name --- tests/02-user.test | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/02-user.test b/tests/02-user.test index 6c1cfaf..3898eef 100755 --- a/tests/02-user.test +++ b/tests/02-user.test @@ -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"