1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/console/tests
catborise 8eb619114c fix(console): a session that a password change ended opens no console
session_user_id read the user id out of the session row as it was, so a
session cookie that Django no longer accepts (the user's password changed,
or the user was deactivated) still matched a console token of its user in
novncd and socketiod. It now asks django.contrib.auth.get_user, which checks
the session's password hash and that the user may sign in.

The serial console tests built sessions by hand with only the user id;
they now sign in with force_login, as the panel does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-08 20:47:27 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
daemons.py test: each test is in the tests package of the code it tests 2026-11-06 13:48:04 +03:00
test_consolecallback.py fix(console): a serial console whose VM was deleted meanwhile says so 2026-11-05 18:58:13 +03:00
test_layouts.py feat(console): typed text follows the VM's keyboard layout 2026-10-27 12:23:32 +03:00
test_live_serial.py fix(console): socketiod refuses a request without a signed-in session 2026-11-06 20:00:43 +03:00
test_novncd.py fix(console): a session that a password change ended opens no console 2026-11-08 20:47:27 +03:00
test_socketiod.py fix(console): a session that a password change ended opens no console 2026-11-08 20:47:27 +03:00
test_socketiod_child.py fix(console): socketiod refuses a request without a signed-in session 2026-11-06 20:00:43 +03:00
test_sshtunnels.py fix(console): a VNC console stays open while its screen does not change 2026-11-01 16:18:34 +03:00
test_views.py fix(console,computes): an unreachable host is named as the cause, not an empty list 2026-11-06 23:08:11 +03:00