mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-04-29 15:51:27 +00:00
This allows us to have more complex test files where an action is taken, then we test something, then another action is taken, etc. Changes to test files are required so that URL is defined after all the required settings are set. Changes to the result files are either whitespace changes due to above logic changes, or printing out a SQL Result header before each result. I figured it was useful.
110 lines
3.0 KiB
Plaintext
110 lines
3.0 KiB
Plaintext
1..43
|
|
# Subtest: Login
|
|
1..4
|
|
ok 1 - Fetch first page
|
|
ok 2 - Not logged in
|
|
ok 3 - Login to site
|
|
ok 4 - Logged in
|
|
ok 1 - Login
|
|
ok 2 - Username field correct
|
|
ok 3 - princial_id hidden field correct
|
|
ok 4 - New password field 1 correct
|
|
ok 5 - New password field 2 correct
|
|
ok 6 - Fullname field correct
|
|
ok 7 - Email field correct
|
|
ok 8 - Locale field correct
|
|
ok 9 - Date format type field correct
|
|
ok 10 - Type field correct
|
|
ok 11 - Is Admin field missing
|
|
ok 12 - User Active field missing
|
|
ok 13 - Submit mismatching passwords
|
|
ok 14 - Password change error displayed
|
|
# Subtest: Login with old password
|
|
1..4
|
|
ok 1 - Fetch first page
|
|
ok 2 - Not logged in
|
|
ok 3 - Login to site
|
|
ok 4 - Logged in
|
|
ok 15 - Login with old password
|
|
ok 16 - Submit matching passwords
|
|
ok 17 - Password change error displayed
|
|
# Subtest: Login with old password
|
|
1..4
|
|
ok 1 - Fetch first page
|
|
ok 2 - Not logged in
|
|
ok 3 - Login to site
|
|
ok 4 - Failed to login
|
|
ok 18 - Login with old password
|
|
# Subtest: Login with new password
|
|
1..4
|
|
ok 1 - Fetch first page
|
|
ok 2 - Not logged in
|
|
ok 3 - Login to site
|
|
ok 4 - Logged in
|
|
ok 19 - Login with new password
|
|
ok 20 - Submit updated fields
|
|
# Subtest: Login with new username
|
|
1..4
|
|
ok 1 - Fetch first page
|
|
ok 2 - Not logged in
|
|
ok 3 - Login to site
|
|
ok 4 - Logged in
|
|
ok 21 - Login with new username
|
|
ok 22 - Username field correct
|
|
ok 23 - princial_id hidden field correct
|
|
ok 24 - Fullname field correct
|
|
ok 25 - Email field correct
|
|
ok 26 - Locale field correct
|
|
ok 27 - Date format type field correct
|
|
ok 28 - Type field correct
|
|
ok 29 - Submit updated fields on a user we have no access to
|
|
ok 30 - Error message denying access displayed
|
|
ok 31 - Fetch details page for principal ID 1003
|
|
ok 32 - Looking at principal ID 1003
|
|
ok 33 - Change Password missing
|
|
ok 34 - Confirm Password missing
|
|
ok 35 - Group Memberships missing
|
|
ok 36 - Principal Grants missing
|
|
ok 37 - Access Tickets missing
|
|
ok 38 - Principal Collections missing
|
|
ok 39 - Bindings to other collections missing
|
|
ok 40 - Bindings to this Principal's Collections missing
|
|
ok 41 - Submit form with bogus CSRF fields
|
|
ok 42 - Error message rejecting CSRF displayed
|
|
ok 43 - Email field back to previous value
|
|
SQL Query 1 Result:
|
|
date_format_type: >I<
|
|
dav_name: >/user99/<
|
|
displayname: >User 99<
|
|
email: >user99@example.net<
|
|
fullname: >User 99<
|
|
locale: >en<
|
|
password_changed: >1<
|
|
type_id: >2<
|
|
user_active: >1<
|
|
username: >user99<
|
|
|
|
SQL Query 2 Result:
|
|
date_format_type: >E<
|
|
dav_name: >/user1/<
|
|
displayname: >User 1<
|
|
email: >user1@example.net<
|
|
fullname: >User 1<
|
|
locale: >NULL<
|
|
password_same: >1<
|
|
type_id: >1<
|
|
user_active: >1<
|
|
username: >user1<
|
|
|
|
date_format_type: >E<
|
|
dav_name: >/user2/<
|
|
displayname: >User 2<
|
|
email: >user2@example.net<
|
|
fullname: >User 2<
|
|
locale: >NULL<
|
|
password_same: >0<
|
|
type_id: >1<
|
|
user_active: >1<
|
|
username: >user2<
|
|
|