Closed mattyplo closed 4 years ago
Test AWS Cognito user creation and management script by following the Test Consideration in task wiki.
Run script create_cognito_user.py in AWS CLI enabled environment, verify results use temp email account and Cognito console.
Create user -n with email -e with/without assigning a group -g :: expected: user created with/without group assignment, email sent to address provided.
Create user as expected.
Attempt to create user that already exists :: expected: error "User account already exists."
Error handling as expected, even when username contain capital letters.
Create and delete users in the same command :: expected: error as these commands are mutually exclusive, "argument -d/--delete: not allowed with argument -n/--new."
Behavior as expected
Create user with capitol letters :: expected: user is created with all lowercase
Behavior as expected
Create user -n with/without invalid format email -e :: expected: user is requested to enter a valid email, "Invalid email address format" is produced if 'q' to quit is pressed instead.
Behavior as expected
Update user -u by adding group -g :: expected: user is added to group
Behavior as expected
Update user -u by removing group -r :: expected: user is removed from group
Behavior as expected
Update user -u without adding -g/ removing -r group :: expected: message "No action taken, add -g {groupname} or -r {groupname} at command line."
Behavior as expected
View list -l :: expected: list of all groups and their precedencies are displayed.
Behavior as expected
Create user -n by adding invalid -g with valid email -e :: expected: error message and list of valid groups are produced.
Command line behavior as expected, a user with on assigned group is created.
Delete user -d with valid User Pool ID -p :: expected: confirmation message is sent. If 'y' or 'yes' then user deleted, otherwise not.
Behavior as expected
Create user with invalid User Pool ID -p :: expected: error "User pool {user-pool-id} does not exist." or error for incorrect format.
Behavior as expected
Delete user -d that doesn't exist :: expected: error "User does not exist."
Behavior as expected
It maybe beneficial to also add a list all user feature in the future. But overall, good job!
Test Task #252