1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/accounts/tests
catborise 7359fbb147 fix(accounts): a page whose session ended says so; a form sent then is not lost in a 405
A session that ended while a page was open went unnoticed: the VM list,
the VM page and the job panel kept asking, were sent to the sign-in
page, and showed what they had as if it were current. A button pressed
then sent the user to sign in and, after it, to the form's own address
by GET, where its view answered an empty 405 and the action was lost.

The panel's LoginRequiredMiddleware (webvirtcloud.middleware) answers a
page's script 401, upon which session_end.js says the user was signed
out, with a link to sign in and come back, and the page stops asking
and reloading. A form sent after the end (or with a token a sign-in
elsewhere replaced) goes back, after the sign-in, to the page it was on,
and the sign-in page says it was not done. accounts.E002 asks for this
middleware; Django's own is a warning (W002), so an update keeps a
panel whose local settings name it running.
2026-11-21 23:48:34 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_account_page.py fix: the user list, a user's VMs and the SSH keys come in name order 2026-11-19 14:31:59 +03:00
test_admin_email_otp.py feat(accounts): an administrator can reset a user's OTP 2026-11-10 08:10:48 +03:00
test_admin_password.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_api_tokens.py fix(accounts): an API token form sent twice makes one token 2026-11-05 18:58:13 +03:00
test_audit_rows.py fix(logs): a lost-OTP mail and a wrong old password leave a row 2026-11-07 14:36:44 +03:00
test_change_password_permission.py fix(settings): new passwords pass Django's password validators 2026-11-06 11:01:43 +03:00
test_checks.py fix(accounts): a page whose session ended says so; a form sent then is not lost in a 405 2026-11-21 23:48:34 +03:00
test_email_otp.py fix(logs): a lost-OTP mail and a wrong old password leave a row 2026-11-07 14:36:44 +03:00
test_first_login_password.py fix(api): an error's status says what it is, and its body is always {"detail"} 2026-11-07 13:29:46 +03:00
test_ldap_timeouts.py fix(accounts): an LDAP login waits a bounded time for the directory 2026-11-05 11:04:08 +03:00
test_login_lockout.py chore(accounts): django-axes keeps no record of successful logins 2026-11-05 10:36:34 +03:00
test_login_page.py fix(ui): pages have a main heading, a skip link and labelled search boxes 2026-11-21 15:16:49 +03:00
test_otp_login.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_ssh_keys.py fix(accounts): an SSH key is a whole key, and added once 2026-11-12 22:09:16 +03:00
test_unique_email.py fix(accounts): an email address belongs to one user, so "Lost OTP?" reaches it 2026-10-26 11:19:42 +03:00
test_utils.py fix(accounts): an SSH key is a whole key, and added once 2026-11-12 22:09:16 +03:00
test_views.py fix(ui): a block or a job's cancel asks first; every delete and save says it is done 2026-11-21 21:02:20 +03:00