1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-09 11:46:49 +00:00
webvirtcloud/accounts/tests
catborise 0610c23a34 fix(api): an error's status says what it is, and its body is always {"detail"}
- libvirt errors all answered 400. A VM, pool or volume the host does not
  have now answers 404, a volume in use 409 (vrtManager.util.InUse) and a
  host that cannot be reached 503, which a client may retry.
- A template's power on or cycle and a stopped pool answered
  {"status": ...} with 409; they answer {"detail": ...}, as every other
  refusal. The schema documents these 409s (ErrorSerializer).
- The volume list and a volume of a stopped pool answered 200 with an
  empty list or a made-up volume; they answer 409.
- An API URL that names nothing answered the HTML error page; it answers
  a JSON 404 after the API's authentication.
- A session that must change its password was redirected to the HTML
  form; an API request of it gets the JSON 403 a token gets.
2026-11-07 13:29:46 +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 feat(templates): the shared form and delete pages in a centred column 2026-10-31 18:10:05 +03:00
test_admin_email_otp.py fix(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +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(accounts): mailing an OTP QR code waits at most 10 seconds for the SMTP server 2026-11-05 11:04:08 +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 test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_email_otp.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +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_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 test: test files named by their topic, one file per topic 2026-11-06 13:48:04 +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): the admin's Email OTP sent twice at once makes one device 2026-11-05 18:58:13 +03:00
test_views.py test: test files named by their topic, one file per topic 2026-11-06 13:48:04 +03:00