1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
webvirtcloud/computes
catborise ee6b8d3e10 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
..
api fix(gstfsd): only the panel, with the host's key, can change a VM's disk 2026-10-31 01:53:43 +03:00
migrations fix(computes): a VM migrates to its host's panel address when it has no migration address 2026-11-01 18:41:07 +03:00
templates refactor(templates): the host pages' scripts load from static files 2026-11-02 09:45:26 +03:00
tests test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
__init__.py Initial commit 2015-02-27 10:53:51 +02:00
apps.py fix: track migrations; installs apply them instead of generating them 2026-10-04 01:08:11 +03:00
forms.py feat(computes): the host form names its connection and folds the advanced fields 2026-10-31 18:10:05 +03:00
models.py fix(computes): a VM migrates to its host's panel address when it has no migration address 2026-11-01 18:41:07 +03:00
urls.py fix(storages): a refused new volume comes back in its dialog 2026-10-31 18:35:09 +03:00
utils.py perf(computes): a VM list load writes nothing while the hosts match the database 2026-11-04 20:54:07 +03:00
validators.py chore: remove code nothing uses 2026-11-06 10:53:37 +03:00
views.py fix: the views that take a password or a key keep it out of error reports 2026-11-05 18:17:00 +03:00