From 6b1c5553596cfabeb5826d96ae9664b50eb9aea6 Mon Sep 17 00:00:00 2001 From: Henry Zhang Date: Sun, 23 Oct 2016 14:34:36 +0800 Subject: [PATCH] test caese --- .../1-02-DB-user-log-in-log-out.md | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/testcases/Group1-user-management/1-02-DB-user-log-in-log-out.md diff --git a/tests/testcases/Group1-user-management/1-02-DB-user-log-in-log-out.md b/tests/testcases/Group1-user-management/1-02-DB-user-log-in-log-out.md new file mode 100644 index 000000000..01f58e131 --- /dev/null +++ b/tests/testcases/Group1-user-management/1-02-DB-user-log-in-log-out.md @@ -0,0 +1,36 @@ +Test 1-02 - User Log In and Log Out (DB Mode) +======= + +# Purpose: + +To verify that a user can log in and log out when users are managed locally by Harbor (DB mode). + +# References: +User guide + +# Environment: +* This test requires that a Harbor instance is running and available. +* Harbor is set to authenticate against a local database. ( auth_mode is set to **db_auth** .) The user data is stored in a local database. +* A linux host with Docker CLI installed (Docker client). + +# Test Steps: +USE a non-admin user for this test case. Admin user has other test cases. + +1. Use the username of a user to log in to the UI. +2. Log out from the UI. +3. Use the email of the user to log in to the UI. +4. Log out from the UI. +5. Use the incorrect password and username/email of the user to log in to the UI and check the error message. +6. On a Docker client host, use `docker login ` command to verify the user can log in by either the **username** or **email** . (check both) +7. Use `docker login ` command to log in with incorrect password by either the **username** or **email** . + + +# Expected Outcome: +* The user can log in via UI in Step 1 & 3, verify the dashboard and navigation bar are for a non-admin user. +* After the user logged out in Step 2 & 4, the login page will be displayed again. +* The error message in Step 5 should not show which input value is in correct. It should only display the username(email) and password combination is incorrect. +* Docker client can log in in Step 6. +* Docker client fails to log in in Step 7. + +# Possible Problems: +None \ No newline at end of file