mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
- create_admin had a branch for `"test" in sys.argv` that gave the admin the password "admin"; 17 places signed in with it, and failed silently with ADMIN_PASSWORD set in the environment. The tests now make their own superuser and force_login it, and the shipped code has no test branch: the test runner gives migrate a password (also when ADMIN_PASSWORD is set but empty), so no data/admin_password is written into the checkout. - AccountsTestCase builds its rows in setUpTestData instead of setUpClass and deleting them by hand. - accounts tests set OTP_ENABLED with override_settings instead of assigning settings (one assignment was never undone, so later tests in the process ran with OTP on), and undo their app_settings change. The OTP login class reloads the URLs again only after the setting is off. - computes/tests/test_views.py reached the machine's own libvirt (localhost over the socket) when TEST_LIBVIRT_HOST was unset; its live tests now run only with TEST_LIBVIRT_HOST, like the other live tests, as the README says. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api_security.py | ||
| test_audit_rows.py | ||
| test_capacity.py | ||
| test_compute_password.py | ||
| test_cpu_graph.py | ||
| test_gstfsd_key.py | ||
| test_host_nav.py | ||
| test_migration_address.py | ||
| test_operation_locks.py | ||
| test_overview.py | ||
| test_overview_status.py | ||
| test_ownership.py | ||
| test_ownership_race.py | ||
| test_quota_down_host.py | ||
| test_reconciliation.py | ||
| test_validators.py | ||
| test_views.py | ||