1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-02 17:06:09 +00:00
webvirtcloud/webvirtcloud
catborise 31f7a88e57 test: no seeded admin password, settings changed only for a test, no local libvirt by default
- 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.
2026-11-06 13:48:03 +03:00
..
tests chore: remove files nothing uses 2026-11-06 10:53:43 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
bootstrap_icons.py chore(deps): the icons come from the committed cache, not django-bootstrap-icons 2026-11-05 12:37:51 +03:00
common_tags.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
gunicorn_worker.py fix(webvirtcloud): a worker past its request timeout exits even if its log blocks 2026-11-03 07:11:03 +03:00
log_context.py fix(logs): a 404 is not written to the app log 2026-11-05 18:58:13 +03:00
middleware.py feat(logs): a refused page or API call leaves a Logs row 2026-11-05 14:47:37 +03:00
serializers.py fix(api): a VM action answers with what the page would have shown after it 2026-11-05 16:28:29 +03:00
settings-dev.py chore(settings): settings-dev without obsolete keys 2026-11-06 11:01:51 +03:00
settings.py.template refactor(settings): SQLite's WAL mode is an init_command 2026-11-06 11:01:51 +03:00
test_runner.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
urls-api.py feat(operations): jobs API 2026-10-14 23:27:57 +03:00
urls.py refactor: settings are read through django.conf 2026-11-06 11:01:51 +03:00
wsgi.py fix: stop ignoring SIGCHLD process-wide 2026-10-04 13:40:53 +03:00