0s autopkgtest [14:41:36]: starting date and time: 2025-06-19 14:41:36+0000 0s autopkgtest [14:41:36]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [14:41:36]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ziur1gi5/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:requests --apt-upgrade django-cas-server --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=requests/2.32.3+dfsg-5ubuntu2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-ppc64el-5.secgroup --name adt-questing-ppc64el-django-cas-server-20250619-144136-juju-7f2275-prod-proposed-migration-environment-2-00a7c723-454f-4c9a-b9a2-91cf3f3c6d6a --image adt/ubuntu-questing-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 104s autopkgtest [14:43:20]: testbed dpkg architecture: ppc64el 104s autopkgtest [14:43:20]: testbed apt version: 3.1.2 105s autopkgtest [14:43:21]: @@@@@@@@@@@@@@@@@@@@ test bed setup 105s autopkgtest [14:43:21]: testbed release detected to be: None 105s autopkgtest [14:43:21]: updating testbed package index (apt update) 106s Get:1 http://ftpmaster.internal/ubuntu questing-proposed InRelease [249 kB] 106s Hit:2 http://ftpmaster.internal/ubuntu questing InRelease 106s Hit:3 http://ftpmaster.internal/ubuntu questing-updates InRelease 106s Hit:4 http://ftpmaster.internal/ubuntu questing-security InRelease 106s Get:5 http://ftpmaster.internal/ubuntu questing-proposed/main Sources [38.3 kB] 106s Get:6 http://ftpmaster.internal/ubuntu questing-proposed/multiverse Sources [17.4 kB] 106s Get:7 http://ftpmaster.internal/ubuntu questing-proposed/restricted Sources [4716 B] 106s Get:8 http://ftpmaster.internal/ubuntu questing-proposed/universe Sources [426 kB] 106s Get:9 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el Packages [66.7 kB] 106s Get:10 http://ftpmaster.internal/ubuntu questing-proposed/restricted ppc64el Packages [724 B] 106s Get:11 http://ftpmaster.internal/ubuntu questing-proposed/universe ppc64el Packages [340 kB] 106s Get:12 http://ftpmaster.internal/ubuntu questing-proposed/multiverse ppc64el Packages [6448 B] 106s Fetched 1149 kB in 0s (2455 kB/s) 107s Reading package lists... 107s autopkgtest [14:43:23]: upgrading testbed (apt dist-upgrade and autopurge) 108s Reading package lists... 108s Building dependency tree... 108s Reading state information... 108s Calculating upgrade... 108s The following packages will be upgraded: 108s python3-requests 108s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 108s Need to get 53.1 kB of archives. 108s After this operation, 0 B of additional disk space will be used. 108s Get:1 http://ftpmaster.internal/ubuntu questing-proposed/main ppc64el python3-requests all 2.32.3+dfsg-5ubuntu2 [53.1 kB] 108s Fetched 53.1 kB in 0s (4980 kB/s) 110s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79652 files and directories currently installed.) 110s Preparing to unpack .../python3-requests_2.32.3+dfsg-5ubuntu2_all.deb ... 110s Unpacking python3-requests (2.32.3+dfsg-5ubuntu2) over (2.32.3+dfsg-5ubuntu1) ... 110s Setting up python3-requests (2.32.3+dfsg-5ubuntu2) ... 110s Reading package lists... 110s Building dependency tree... 110s Reading state information... 110s Solving dependencies... 110s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 112s autopkgtest [14:43:28]: testbed running kernel: Linux 6.14.0-15-generic #15-Ubuntu SMP Sun Apr 6 14:52:42 UTC 2025 113s autopkgtest [14:43:29]: @@@@@@@@@@@@@@@@@@@@ apt-source django-cas-server 114s Get:1 http://ftpmaster.internal/ubuntu questing/universe django-cas-server 2.1.0-3 (dsc) [2597 B] 114s Get:2 http://ftpmaster.internal/ubuntu questing/universe django-cas-server 2.1.0-3 (tar) [138 kB] 114s Get:3 http://ftpmaster.internal/ubuntu questing/universe django-cas-server 2.1.0-3 (diff) [10.2 kB] 114s gpgv: Signature made Sat Dec 14 20:43:18 2024 UTC 114s gpgv: using RSA key 8F6DE104377F3B11E741748731F3144544A1741A 114s gpgv: issuer "tchet@debian.org" 114s gpgv: Can't check signature: No public key 114s dpkg-source: warning: cannot verify inline signature for ./django-cas-server_2.1.0-3.dsc: no acceptable signature found 114s autopkgtest [14:43:30]: testing package django-cas-server version 2.1.0-3 114s autopkgtest [14:43:30]: build not needed 115s autopkgtest [14:43:31]: test run-test-suite.sh: preparing testbed 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Solving dependencies... 115s The following NEW packages will be installed: 115s fonts-font-awesome fonts-lato libjs-jquery libjs-sphinxdoc libjs-underscore 115s libxslt1.1 python3-all python3-asgiref python3-django 115s python3-django-cas-server python3-django-cas-server-doc python3-iniconfig 115s python3-legacy-cgi python3-lxml python3-pluggy python3-pytest 115s python3-pytest-django python3-requests-futures python3-sqlparse 115s sphinx-rtd-theme-common 115s 0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded. 115s Need to get 9992 kB of archives. 115s After this operation, 52.9 MB of additional disk space will be used. 115s Get:1 http://ftpmaster.internal/ubuntu questing/main ppc64el fonts-lato all 2.015-1 [2781 kB] 116s Get:2 http://ftpmaster.internal/ubuntu questing/main ppc64el fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 116s Get:3 http://ftpmaster.internal/ubuntu questing/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 116s Get:4 http://ftpmaster.internal/ubuntu questing/main ppc64el libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 116s Get:5 http://ftpmaster.internal/ubuntu questing/main ppc64el libjs-sphinxdoc all 8.2.3-1ubuntu2 [28.0 kB] 116s Get:6 http://ftpmaster.internal/ubuntu questing/main ppc64el libxslt1.1 ppc64el 1.1.43-0exp1 [184 kB] 116s Get:7 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-all ppc64el 3.13.4-1 [880 B] 116s Get:8 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-asgiref all 3.8.1-1 [24.8 kB] 116s Get:9 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-sqlparse all 0.5.3-1 [32.9 kB] 116s Get:10 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-django all 3:4.2.18-1ubuntu1.1 [2918 kB] 117s Get:11 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-legacy-cgi all 2.6.3-1 [16.8 kB] 117s Get:12 http://ftpmaster.internal/ubuntu questing/main ppc64el python3-lxml ppc64el 5.4.0-1build1 [1432 kB] 117s Get:13 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-requests-futures all 1.0.2-1 [12.0 kB] 117s Get:14 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-django-cas-server all 2.1.0-3 [111 kB] 117s Get:15 http://ftpmaster.internal/ubuntu questing/main ppc64el sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 117s Get:16 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-django-cas-server-doc all 2.1.0-3 [178 kB] 117s Get:17 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 117s Get:18 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 117s Get:19 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-pytest all 8.3.5-2 [252 kB] 117s Get:20 http://ftpmaster.internal/ubuntu questing/universe ppc64el python3-pytest-django all 4.5.2-3 [18.5 kB] 117s Fetched 9992 kB in 2s (6066 kB/s) 117s Selecting previously unselected package fonts-lato. 117s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 79652 files and directories currently installed.) 117s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 117s Unpacking fonts-lato (2.015-1) ... 117s Selecting previously unselected package fonts-font-awesome. 117s Preparing to unpack .../01-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 117s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 117s Selecting previously unselected package libjs-jquery. 117s Preparing to unpack .../02-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 117s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 117s Selecting previously unselected package libjs-underscore. 117s Preparing to unpack .../03-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 117s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 117s Selecting previously unselected package libjs-sphinxdoc. 117s Preparing to unpack .../04-libjs-sphinxdoc_8.2.3-1ubuntu2_all.deb ... 117s Unpacking libjs-sphinxdoc (8.2.3-1ubuntu2) ... 117s Selecting previously unselected package libxslt1.1:ppc64el. 117s Preparing to unpack .../05-libxslt1.1_1.1.43-0exp1_ppc64el.deb ... 117s Unpacking libxslt1.1:ppc64el (1.1.43-0exp1) ... 118s Selecting previously unselected package python3-all. 118s Preparing to unpack .../06-python3-all_3.13.4-1_ppc64el.deb ... 118s Unpacking python3-all (3.13.4-1) ... 118s Selecting previously unselected package python3-asgiref. 118s Preparing to unpack .../07-python3-asgiref_3.8.1-1_all.deb ... 118s Unpacking python3-asgiref (3.8.1-1) ... 118s Selecting previously unselected package python3-sqlparse. 118s Preparing to unpack .../08-python3-sqlparse_0.5.3-1_all.deb ... 118s Unpacking python3-sqlparse (0.5.3-1) ... 118s Selecting previously unselected package python3-django. 118s Preparing to unpack .../09-python3-django_3%3a4.2.18-1ubuntu1.1_all.deb ... 118s Unpacking python3-django (3:4.2.18-1ubuntu1.1) ... 118s Selecting previously unselected package python3-legacy-cgi. 118s Preparing to unpack .../10-python3-legacy-cgi_2.6.3-1_all.deb ... 118s Unpacking python3-legacy-cgi (2.6.3-1) ... 118s Selecting previously unselected package python3-lxml:ppc64el. 118s Preparing to unpack .../11-python3-lxml_5.4.0-1build1_ppc64el.deb ... 118s Unpacking python3-lxml:ppc64el (5.4.0-1build1) ... 118s Selecting previously unselected package python3-requests-futures. 118s Preparing to unpack .../12-python3-requests-futures_1.0.2-1_all.deb ... 118s Unpacking python3-requests-futures (1.0.2-1) ... 118s Selecting previously unselected package python3-django-cas-server. 118s Preparing to unpack .../13-python3-django-cas-server_2.1.0-3_all.deb ... 118s Unpacking python3-django-cas-server (2.1.0-3) ... 118s Selecting previously unselected package sphinx-rtd-theme-common. 118s Preparing to unpack .../14-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 118s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 118s Selecting previously unselected package python3-django-cas-server-doc. 118s Preparing to unpack .../15-python3-django-cas-server-doc_2.1.0-3_all.deb ... 118s Unpacking python3-django-cas-server-doc (2.1.0-3) ... 118s Selecting previously unselected package python3-iniconfig. 118s Preparing to unpack .../16-python3-iniconfig_1.1.1-2_all.deb ... 118s Unpacking python3-iniconfig (1.1.1-2) ... 118s Selecting previously unselected package python3-pluggy. 118s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 118s Unpacking python3-pluggy (1.5.0-1) ... 118s Selecting previously unselected package python3-pytest. 118s Preparing to unpack .../18-python3-pytest_8.3.5-2_all.deb ... 118s Unpacking python3-pytest (8.3.5-2) ... 118s Selecting previously unselected package python3-pytest-django. 118s Preparing to unpack .../19-python3-pytest-django_4.5.2-3_all.deb ... 118s Unpacking python3-pytest-django (4.5.2-3) ... 119s Setting up python3-iniconfig (1.1.1-2) ... 119s Setting up fonts-lato (2.015-1) ... 119s Setting up python3-all (3.13.4-1) ... 119s Setting up python3-sqlparse (0.5.3-1) ... 119s Setting up python3-pluggy (1.5.0-1) ... 119s Setting up python3-legacy-cgi (2.6.3-1) ... 119s Setting up libxslt1.1:ppc64el (1.1.43-0exp1) ... 119s Setting up python3-requests-futures (1.0.2-1) ... 119s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 119s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 119s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 119s Setting up python3-asgiref (3.8.1-1) ... 119s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 119s Setting up python3-django (3:4.2.18-1ubuntu1.1) ... 120s Setting up python3-pytest (8.3.5-2) ... 121s Setting up python3-pytest-django (4.5.2-3) ... 121s Setting up libjs-sphinxdoc (8.2.3-1ubuntu2) ... 121s Setting up python3-lxml:ppc64el (5.4.0-1build1) ... 121s Setting up python3-django-cas-server (2.1.0-3) ... 121s Setting up python3-django-cas-server-doc (2.1.0-3) ... 121s Processing triggers for man-db (2.13.1-1) ... 122s Processing triggers for libc-bin (2.41-6ubuntu2) ... 123s autopkgtest [14:43:39]: test run-test-suite.sh: [----------------------- 123s ************************************************************************** 123s # A new feature in cloud-init identified possible datasources for # 123s # this system as: # 123s # [] # 123s # However, the datasource used was: OpenStack # 123s # # 123s # In the future, cloud-init will only attempt to use datasources that # 123s # are identified or specifically configured. # 123s # For more information see # 123s # https://bugs.launchpad.net/bugs/1669675 # 123s # # 123s # If you are seeing this message, please file a bug against # 123s # cloud-init at # 123s # https://github.com/canonical/cloud-init/issues # 123s # Make sure to include the cloud provider your instance is # 123s # running on. # 123s # # 123s # After you have filed a bug, you can disable this warning by launching # 123s # your instance with the cloud-config below, or putting that content # 123s # into /etc/cloud/cloud.cfg.d/99-warnings.cfg # 123s # # 123s # #cloud-config # 123s # warnings: # 123s # dsid_missing_source: off # 123s ************************************************************************** 123s 123s Disable the warnings above by: 123s touch /home/ubuntu/.cloud-warnings.skip 123s or 123s touch /var/lib/cloud/instance/warnings/.skip 123s 123s *************************** 123s *** Testing with python3.13 123s *************************** 123s 123s Content of current working folder: 123s 123s total 20 123s drwxr-xr-x 3 ubuntu ubuntu 4096 Jun 19 14:43 . 123s drwxrwxrwt 5 root root 4096 Jun 19 14:43 .. 123s drwxrwxr-x 9 ubuntu ubuntu 4096 Jun 19 14:43 cas_server 123s -rw-rw-r-- 1 ubuntu ubuntu 140 Aug 18 2024 pytest.ini 123s -rw-rw-r-- 1 ubuntu ubuntu 152 Aug 18 2024 setup.cfg 123s Running tests... 123s 124s ============================= test session starts ============================== 124s platform linux -- Python 3.13.5, pytest-8.3.5, pluggy-1.5.0 -- /usr/bin/python3.13 124s cachedir: .pytest_cache 124s django: settings: cas_server.tests.settings (from ini) 124s rootdir: /tmp/autopkgtest.AfgFuO/autopkgtest_tmp 124s configfile: pytest.ini 124s testpaths: cas_server/tests/ 124s plugins: typeguard-4.4.2, django-4.5.2 124s collecting ... collected 128 items 124s 124s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_auth_federate_errors Creating test database for alias 'default'... 124s 2025-06-19 14:43:40,058 WARNING Identity provider suffix exemple.fr not found 124s 2025-06-19 14:43:40,086 INFO Got an invalid ticket ST-GBJ7TLepXSlJswY1ADQnZkVulXTSVcQiXTZv0uTElBcyKDTsJ2eeguLkcHa5b from http://127.0.0.1:8080 for service http://testserver/federate/example.com. Retrying authentication 124s 2025-06-19 14:43:40,093 INFO Got an invalid ticket ST-t5X2V9664DFwrR3ryXmbogY6ZkXQD6qXzZ2NZoITsc1pueks8cZJgN4Y1iQ28 from http://127.0.0.1:8080 for service http://testserver/federate/example.com. Retrying authentication 124s 2025-06-19 14:43:40,104 INFO Got an invalid ticket ST-2OcBg9tntJHINUfkkpTpLHEA4bY4kMZ9uDbwvWA4KlTbRbs7yFkffY4ZRKbcc from http://127.0.0.1:8082 for service http://testserver/federate/example.net. Retrying authentication 124s FAILED 124s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_auth_federate_false PASSED 124s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_auth_federate_slo 2025-06-19 14:43:40,151 WARNING CAS_FEDERATE is False, set it to True to use federation 124s 2025-06-19 14:43:40,151 WARNING CAS_FEDERATE is False, set it to True to use federation 124s 2025-06-19 14:43:40,184 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_default_settings PASSED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_federate_logout 2025-06-19 14:43:40,253 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_forget_provider 2025-06-19 14:43:40,310 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_bad_ticket 2025-06-19 14:43:40,368 WARNING A login attempt failed 125s PASSED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_get_provider PASSED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_post_provider 2025-06-19 14:43:40,401 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_twice 2025-06-19 14:43:40,457 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_remember_provider 2025-06-19 14:43:40,535 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_renew 2025-06-19 14:43:40,591 INFO Trying to authenticate http://127.0.0.1:8080 again 125s FAILED 125s cas_server/tests/test_models.py::FederatedUserTestCase::test_clean_old_entries PASSED 125s cas_server/tests/test_models.py::FederatedUserTestCase::test_json_attributes PASSED 125s cas_server/tests/test_models.py::FederateSLOTestCase::test_clean_deleted_sessions PASSED 125s cas_server/tests/test_models.py::UserAttributesTestCase::test_clean_old_entries 2025-06-19 14:43:40,675 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_models.py::UserTestCase::test_cached_attributs 2025-06-19 14:43:40,693 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_models.py::UserTestCase::test_clean_deleted_sessions 2025-06-19 14:43:40,707 INFO User test successfully authenticated 125s 2025-06-19 14:43:40,717 INFO User test successfully authenticated 125s 2025-06-19 14:43:40,729 INFO Sending SLO requests to service http://127.0.0.1:45678 for user test 125s 2025-06-19 14:43:40,738 WARNING Error during SLO for user test: HTTPConnectionPool(host='egress.ps7.internal', port=3128): Max retries exceeded with url: http://127.0.0.1:45678/ (Caused by ProxyError('Unable to connect to proxy', ConnectionResetError(104, 'Connection reset by peer'))) 125s PASSED 125s cas_server/tests/test_models.py::UserTestCase::test_clean_old_entries 2025-06-19 14:43:40,750 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_models.py::UserTestCase::test_clean_old_entries_tgt_expired PASSED 125s cas_server/tests/test_models.py::TicketTestCase::test_clean_old_service_ticket 2025-06-19 14:43:40,767 INFO User test successfully authenticated 125s 2025-06-19 14:43:40,788 INFO User test successfully authenticated 125s 2025-06-19 14:43:40,801 INFO Sending SLO requests to service http://127.0.0.1:42135 for user test 125s FAILED 125s cas_server/tests/test_models.py::TicketTestCase::test_json_attributes 2025-06-19 14:43:40,825 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_models.py::NewVersionWarningTestCase::test_send_mails PASSED 125s cas_server/tests/test_models.py::NewVersionWarningTestCase::test_send_mails_disabled PASSED 125s cas_server/tests/test_models.py::NewVersionWarningTestCase::test_send_mails_no_admins PASSED 125s cas_server/tests/test_models.py::NewVersionWarningTestCase::test_send_mails_same_version PASSED 125s cas_server/tests/test_templatetags.py::TemplateTagsTestCase::test_is_checkbox PASSED 125s cas_server/tests/test_templatetags.py::TemplateTagsTestCase::test_is_hidden PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_bad_method PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_crypt PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_hex PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_ldap_password_fail PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_ldap_password_valid PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_plain PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_plain_unicode PASSED 125s cas_server/tests/test_utils.py::CheckPasswordCase::test_setup PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_crypt_salt_is_valid PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_dictfetchall PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_get_current_url PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_get_tuple PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_import_attr PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_last_version PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_regexpr_validator PASSED 125s cas_server/tests/test_utils.py::UtilsTestCase::test_update_url PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_get_ticket_fail 2025-06-19 14:43:41,001 INFO User test successfully authenticated 125s 2025-06-19 14:43:41,007 WARNING Service https://www.example.org not allowed. 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_get_ticket_success PASSED2025-06-19 14:43:41,019 INFO User test successfully authenticated 125s 2025-06-19 14:43:41,026 INFO Service ticket created for service https://www.example.com by user test. 125s 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_get_ticket_success_alt 2025-06-19 14:43:41,038 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_get_ticket_warn 2025-06-19 14:43:41,045 INFO Service ticket created for service https://www.example.com by user test. 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_logged 2025-06-19 14:43:41,057 INFO User test successfully authenticated 125s 2025-06-19 14:43:41,074 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_logged_user_deleted 2025-06-19 14:43:41,090 INFO User test successfully authenticated 125s 2025-06-19 14:43:41,096 WARNING User test seems authenticated but is not found in the database. 125s 2025-06-19 14:43:41,096 INFO Logging out user test. 125s 2025-06-19 14:43:41,097 INFO User test logged out 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_ajax_login_required PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_gateway 2025-06-19 14:43:41,115 INFO User test successfully authenticated 125s 2025-06-19 14:43:41,120 WARNING Username test not allowed on service restrict_user_fail 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_login_post_missing_params 2025-06-19 14:43:41,133 WARNING A login attempt failed 125s 2025-06-19 14:43:41,148 WARNING A login attempt failed 125s 2025-06-19 14:43:41,161 WARNING A login attempt failed 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_login_view_post_badlt 2025-06-19 14:43:41,179 WARNING Received an invalid login ticket 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_login_view_post_badpass_good_lt 2025-06-19 14:43:41,197 WARNING A login attempt failed 125s 2025-06-19 14:43:41,216 INFO User test successfully authenticated 125s PASSED 125s cas_server/tests/test_view.py::LoginTestCase::test_login_view_post_goodpass_goodlt PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_login_view_post_goodpass_goodlt_warn PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_lt_max 2025-06-19 14:43:41,233 INFO User test successfully authenticated 126s PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_messages_info_box_bad_messages PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_messages_info_box_disabled PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_messages_info_box_enabled PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_new_version_available_badpypi PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_new_version_available_disabled PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_new_version_available_ok PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_renew 2025-06-19 14:43:42,161 INFO User test successfully authenticated 126s 2025-06-19 14:43:42,172 INFO User test successfully authenticated 126s PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_renew_message_disabled 2025-06-19 14:43:42,176 INFO Service ticket created for service https://www.example.com by user test. 126s 2025-06-19 14:43:42,188 INFO User test successfully authenticated 126s 2025-06-19 14:43:42,199 INFO User test successfully authenticated 126s PASSED 126s cas_server/tests/test_view.py::LoginTestCase::test_service_filter 2025-06-19 14:43:42,202 INFO Service ticket created for service https://www.example.com by user test. 126s 2025-06-19 14:43:42,215 INFO User test successfully authenticated 126s 2025-06-19 14:43:42,220 WARNING User constraint failed for test, service filter_fail: ^admin$ do not match right None. 126s 2025-06-19 14:43:42,223 WARNING User constraint failed for test, service filter_fail_alt: ^toto$ do not match nom Nymous. 127s 2025-06-19 14:43:42,228 INFO Service ticket created for service https://filter_success.example.com by user test. 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_service_restrict_user 2025-06-19 14:43:42,240 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,245 WARNING Username test not allowed on service restrict_user_fail 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_service_user_field 2025-06-19 14:43:42,251 INFO Service ticket created for service https://restrict_user_success.example.com by user test. 127s 2025-06-19 14:43:42,262 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,267 WARNING Cannot use uid a loggin for user test on service field_needed_fail because it is absent 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_service_user_field_evaluate_to_false 2025-06-19 14:43:42,272 INFO Service ticket created for service https://field_needed_success.example.com by user test. 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_user_logged_not_in_db PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_allowed_service PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_allowed_service_no_message 2025-06-19 14:43:42,284 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,289 WARNING Cannot use alias a loggin for user test on service field_needed_success because it is absent 127s 2025-06-19 14:43:42,301 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,307 WARNING User test seems authenticated but is not found in the database. 127s 2025-06-19 14:43:42,307 INFO Logging out user test. 127s 2025-06-19 14:43:42,308 INFO User test logged out 127s 2025-06-19 14:43:42,339 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_auth_allowed_service PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_auth_allowed_service_non_ascii 2025-06-19 14:43:42,346 INFO Service ticket created for service https://www.example.com/é by user test. 127s 2025-06-19 14:43:42,360 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,366 INFO Service ticket created for service https://www.example.com by user test. 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_auth_allowed_service_warn PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_auth_denied_service PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_denied_service 2025-06-19 14:43:42,379 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,389 WARNING Received a login attempt for an already-active user 127s 2025-06-19 14:43:42,392 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,405 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,410 WARNING Service https://www.example.org not allowed. 127s 2025-06-19 14:43:42,416 WARNING Service https://www.example.net not allowed. 127s PASSED 127s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_denied_service_no_message PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_ajax_logout 2025-06-19 14:43:42,427 WARNING Service https://www.example.net not allowed. 127s 2025-06-19 14:43:42,441 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_ajax_logout_all_session 2025-06-19 14:43:42,445 INFO logout requested 127s 2025-06-19 14:43:42,445 INFO Logging out user test. 127s 2025-06-19 14:43:42,449 INFO User test logged out 127s 2025-06-19 14:43:42,458 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,468 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,478 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,488 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,497 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,507 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,511 INFO logout requested 127s 2025-06-19 14:43:42,511 INFO Logging out user test from all sessions. 127s 2025-06-19 14:43:42,533 INFO User test logged out 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_ajax_redirect_after_logout PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout_from_all_session 2025-06-19 14:43:42,542 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,545 INFO logout requested 127s 2025-06-19 14:43:42,546 INFO Logging out user test. 127s 2025-06-19 14:43:42,550 INFO User test logged out 127s 2025-06-19 14:43:42,552 INFO logout requested 127s 2025-06-19 14:43:42,563 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,573 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,577 INFO logout requested 127s 2025-06-19 14:43:42,577 INFO Logging out user test from all sessions. 127s 2025-06-19 14:43:42,585 INFO User test logged out 127s 2025-06-19 14:43:42,598 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout_slo 2025-06-19 14:43:42,605 INFO Service ticket created for service http://127.0.0.1:44911 by user test. 127s 2025-06-19 14:43:42,609 INFO Validate: Service ticket ST-zb0oibwe5z3m0x9ioqYVDPrCJ3jkDhJsUmQJcLLeatPeK6dDTNvAzRn1OZ0Rj validated, user test authenticated on service http://127.0.0.1:44911 127s 2025-06-19 14:43:42,610 INFO logout requested 127s 2025-06-19 14:43:42,611 INFO Logging out user test. 127s 2025-06-19 14:43:42,613 INFO Sending SLO requests to service http://127.0.0.1:44911 for user test 127s 2025-06-19 14:43:42,624 INFO User test logged out 127s FAILED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout_view 2025-06-19 14:43:42,658 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,668 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,675 INFO logout requested 127s 2025-06-19 14:43:42,675 INFO Logging out user test. 127s 2025-06-19 14:43:42,680 INFO User test logged out 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout_view_service 2025-06-19 14:43:42,696 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,699 INFO logout requested 127s 2025-06-19 14:43:42,700 INFO Logging out user test. 127s 2025-06-19 14:43:42,704 INFO User test logged out 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_logout_view_url 2025-06-19 14:43:42,718 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,721 INFO logout requested 127s 2025-06-19 14:43:42,722 INFO Logging out user test. 127s 2025-06-19 14:43:42,726 INFO User test logged out 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_redirect_after_logout 2025-06-19 14:43:42,741 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,744 INFO logout requested 127s 2025-06-19 14:43:42,744 INFO Logging out user test. 127s 2025-06-19 14:43:42,748 INFO User test logged out 127s PASSED 127s cas_server/tests/test_view.py::LogoutTestCase::test_redirect_after_logout_to_service 2025-06-19 14:43:42,758 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,761 INFO logout requested 127s 2025-06-19 14:43:42,762 INFO Logging out user test. 127s 2025-06-19 14:43:42,766 INFO User test logged out 127s 2025-06-19 14:43:42,772 INFO logout requested 127s PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_badpass PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_badsecret PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_badservice PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_badsettings PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_goodpass 2025-06-19 14:43:42,789 WARNING Service https://www.example.org not allowed. 127s PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_goodpass_logged 2025-06-19 14:43:42,806 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::AuthTestCase::test_auth_view_missing_parameter PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_missing_parameter 2025-06-19 14:43:42,825 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_service_renew 2025-06-19 14:43:42,832 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,834 WARNING Validate: service or ticket missing 127s 2025-06-19 14:43:42,834 WARNING Validate: service or ticket missing 127s 2025-06-19 14:43:42,845 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,848 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,852 INFO Validate: Service ticket ST-caMIVvOCGTktwF5BRH82E20IQFuRzKy2ZYRQYwRQueh5xJ0jJF4CjSNYpuu2p validated, user test authenticated on service https://www.example.com 127s 2025-06-19 14:43:42,859 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,863 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,866 INFO Validate: Service ticket ST-nzPiVVQrNoGLoRNG1TJn80H0TVTGOHDPXe9xX37mbTz69cXDSRmChJpm2vmWr validated, user test authenticated on service https://www.example.com 127s 2025-06-19 14:43:42,870 INFO Service ticket created for service https://www.example.com by user test. 127s PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_user_field_ok 2025-06-19 14:43:42,872 WARNING Validate: Service ticket ST-L8MrTrCsQLSYotaJts54Lwr6TRdHSpbGtlSMNQYtWBnXkNczGBQDMsThpRBA3 not found or already validated, auth to https://www.example.com failed 127s 2025-06-19 14:43:42,881 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,888 INFO Service ticket created for service https://user_field.example.com by user test. 127s 2025-06-19 14:43:42,891 INFO Validate: Service ticket ST-qDhNlBy16SejWIRCPrldvIfOdaC9JeHLHRNFDYoqSFMkowdm7kluV5fPbLBuJ validated, user test authenticated on service https://user_field.example.com 127s 2025-06-19 14:43:42,899 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_view_badservice 2025-06-19 14:43:42,906 INFO Service ticket created for service https://user_field_alt.example.com by user test. 127s 2025-06-19 14:43:42,909 INFO Validate: Service ticket ST-ftuVoBsinkiHddnEuggw2wX9oiIzAtPda1U4KVBEcr0msOFYO40kJ2JSH1f4i validated, user test authenticated on service https://user_field_alt.example.com 127s 2025-06-19 14:43:42,919 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,925 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,928 WARNING Validate: Service ticket ST-Ldn103LKBovn77opC83HyaZ4lc3Y1nekbFT0f8z47YnF6he6eT8GhEMgCqwME not found or already validated, auth to https://www.example.org failed 127s PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_view_badticket 2025-06-19 14:43:42,937 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::ValidateTestCase::test_validate_view_ok PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_missing_parameter 2025-06-19 14:43:42,944 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,946 WARNING Validate: Service ticket ST-RANDOM not found or already validated, auth to https://www.example.com failed 127s 2025-06-19 14:43:42,955 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,962 INFO Service ticket created for service https://www.example.com by user test. 127s 2025-06-19 14:43:42,965 INFO Validate: Service ticket ST-YkY6O2spTBvkKJTkzCaNHXL2aLCpPkrOfy7evnsHYz8RKREJ0KkBosxaK1KmQ validated, user test authenticated on service https://www.example.com 127s 2025-06-19 14:43:42,977 INFO User test successfully authenticated 127s 2025-06-19 14:43:42,984 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 127s 2025-06-19 14:43:42,986 WARNING ValidateService: missing ticket or service 127s PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_proxy 2025-06-19 14:43:42,989 WARNING ValidateService: missing ticket or service 127s 2025-06-19 14:43:43,003 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,010 INFO Service ticket created for service http://127.0.0.1:34803 by user test. 127s 2025-06-19 14:43:43,023 INFO ValidateService: ticket ST-rQs2ry9VA7rgzkTro0QXnAxXqnJ7hjKgHKbQrklf6vkrllxsx7VkBhCcbYbIh validated for user test on service http://127.0.0.1:34803. Proxy Granting Ticket transmited to http://127.0.0.1:34803. 127s FAILED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_replace_attributes 2025-06-19 14:43:43,068 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_pgturl_404 2025-06-19 14:43:43,075 INFO Service ticket created for service https://replace_attribute.example.com by user test. 127s 2025-06-19 14:43:43,079 INFO ValidateService: ticket ST-vzTsd48G6fr7ig6YWPpCPyEbNZU9GCW9sUV56bC6edc7xM5er0ImWsyB276Eg validated for user test on service https://replace_attribute.example.com. 127s 2025-06-19 14:43:43,087 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,094 INFO Service ticket created for service https://replace_attribute_list.example.com by user test. 127s 2025-06-19 14:43:43,098 INFO ValidateService: ticket ST-mUk7V0Jvtt8ilGkSNfBx1ysMCwsd41hrPUA4Yh0TCKIFX6Ckrw0vbmUQ1WROn validated for user test on service https://replace_attribute_list.example.com. 127s 2025-06-19 14:43:43,114 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,120 INFO Service ticket created for service http://127.0.0.1:36355 by user test. 127s PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_pgturl_bad_proxy_callback 2025-06-19 14:43:43,135 INFO ValidateService: ticket ST-8KT88ptpgMHgzo5HklWIhR3mlE0pH9SmvX4ZpMDopkTe6AZBb4iIEIE5dIobg validated for user test on service http://127.0.0.1:36355. Proxy Granting Ticket transmited to http://127.0.0.1:36355. 127s 2025-06-19 14:43:43,147 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,153 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 127s 2025-06-19 14:43:43,157 WARNING ValidateService: validation error: INVALID_PROXY_CALLBACK callback url not allowed by configuration 127s 2025-06-19 14:43:43,164 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,171 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 127s 2025-06-19 14:43:43,175 WARNING Service https://www.example.org not allowed. 127s 2025-06-19 14:43:43,175 WARNING ValidateService: validation error: INVALID_PROXY_CALLBACK callback url not allowed by configuration 127s PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_pgturl_sslerror 2025-06-19 14:43:43,189 INFO User test successfully authenticated 127s PASSED 127s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_renew 2025-06-19 14:43:43,195 INFO Service ticket created for service https://127.0.0.1:33437 by user test. 127s 2025-06-19 14:43:43,206 WARNING ValidateService: validation error: INVALID_PROXY_CALLBACK : HTTPSConnectionPool(host='127.0.0.1', port=33437): Max retries exceeded with url: /?pgtId=PGT-f7E4JzoQd1i2CNvCxCc07fYnzjZGbnJnF2zfQoCotooYCYMBG6x2Me2hZetR&pgtIou=PGTIOU-eRznEt2R9ZMYc9muhz7acFzAi9dYDTkFalL5csSFd2srEab6x6YkiaHdw (Caused by ProxyError('Unable to connect to proxy', OSError('Tunnel connection failed: 403 Forbidden'))) 127s 2025-06-19 14:43:43,217 INFO User test successfully authenticated 127s 2025-06-19 14:43:43,221 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 127s 2025-06-19 14:43:43,225 INFO ValidateService: ticket ST-YGjpZV4ObnBCVdpasvlosAymUFk9smktP86rJKhEjLbHAR7Cqbwjz43YWngZo validated for user test on service http://127.0.0.1:45678. 127s 2025-06-19 14:43:43,232 INFO User test successfully authenticated 128s PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_badservice 2025-06-19 14:43:43,236 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,240 INFO ValidateService: ticket ST-9fC2UR4vQumiGXYTrPJPfVdqiWc4gpe1uVqT9Q3ozoWaRgpS0gqJdrugQCUjE validated for user test on service http://127.0.0.1:45678. 128s 2025-06-19 14:43:43,244 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,246 WARNING ValidateService: validation error: INVALID_TICKET ticket not found 128s 2025-06-19 14:43:43,256 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,264 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,266 WARNING ValidateService: validation error: INVALID_SERVICE https://www.example.org 128s 2025-06-19 14:43:43,277 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,284 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,286 WARNING ValidateService: validation error: INVALID_TICKET RANDOM 128s 2025-06-19 14:43:43,297 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,304 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,307 WARNING ValidateService: validation error: INVALID_TICKET ticket not found 128s 2025-06-19 14:43:43,317 INFO User test successfully authenticated 128s PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_badticket_badprefix PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_badticket_goodprefix PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_ok PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_ok_one_attribute 2025-06-19 14:43:43,324 INFO Service ticket created for service http://127.0.0.1:45678 by user test. 128s 2025-06-19 14:43:43,327 INFO ValidateService: ticket ST-03crmzs47osWsnR16IOxL38WKEIflBRYSakyLI9NgKlgXAAAFhTAuxrGCuaX9 validated for user test on service http://127.0.0.1:45678. 128s 2025-06-19 14:43:43,339 INFO User test successfully authenticated 128s PASSED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_ok_pgturl 2025-06-19 14:43:43,346 INFO Service ticket created for service https://one_attribute.example.com by user test. 128s 2025-06-19 14:43:43,349 INFO ValidateService: ticket ST-iMcm7pGTLpRnTpvmOiR818BFl9S8ADoqJKUnENoicFVisAEI2lWczt39IS22x validated for user test on service https://one_attribute.example.com. 128s 2025-06-19 14:43:43,362 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,369 INFO Service ticket created for service http://127.0.0.1:33491 by user test. 128s 2025-06-19 14:43:43,381 INFO ValidateService: ticket ST-MBleKWAvGxlBDmPbHOhaVjWDajnavD8LWTkS9dW4zsAArhGeIbcU893Hz0PnJ validated for user test on service http://127.0.0.1:33491. Proxy Granting Ticket transmited to http://127.0.0.1:33491. 128s FAILED 128s cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_user_field_ok 2025-06-19 14:43:43,417 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,424 INFO Service ticket created for service https://user_field.example.com by user test. 128s 2025-06-19 14:43:43,427 INFO ValidateService: ticket ST-aqnDJmbIA9OdAr8k1bcORFbBv49ZicSUYJb2pARglC8MVhXbXSgLDIn676PT5 validated for user test on service https://user_field.example.com. 128s 2025-06-19 14:43:43,435 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,442 INFO Service ticket created for service https://user_field_alt.example.com by user test. 128s 2025-06-19 14:43:43,445 INFO ValidateService: ticket ST-hpFTxZF9eT0GAwkWAiy9n6f51KuZjnudQPjoFZqWay9WGfgTpou0cSdPk42RP validated for user test on service https://user_field_alt.example.com. 128s PASSED 128s cas_server/tests/test_view.py::ProxyTestCase::test_proxy_missing_parameter 2025-06-19 14:43:43,460 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,467 INFO Service ticket created for service http://127.0.0.1:46143 by user test. 128s 2025-06-19 14:43:43,479 INFO ValidateService: ticket ST-5r8J8C2PfD2s4onMIVFKI2ZMlRTQ5Jnzfypay0rX5VZmvTWl7px83Idr41CRA validated for user test on service http://127.0.0.1:46143. Proxy Granting Ticket transmited to http://127.0.0.1:46143. 128s FAILED 128s cas_server/tests/test_view.py::ProxyTestCase::test_proxy_unauthorized_user 2025-06-19 14:43:43,523 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,530 INFO Service ticket created for service http://127.0.0.1:34837 by user test. 128s 2025-06-19 14:43:43,546 INFO ValidateService: ticket ST-i7HJJvEr4TfUVrPHeNzzsvP4OZfZIez7NSwbNWydQxkwd6LQMq0H5MxGqbGjl validated for user test on service http://127.0.0.1:34837. Proxy Granting Ticket transmited to http://127.0.0.1:34837. 128s FAILED 128s cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_bad_pgt 2025-06-19 14:43:43,590 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,597 INFO Service ticket created for service http://127.0.0.1:38671 by user test. 128s 2025-06-19 14:43:43,608 INFO ValidateService: ticket ST-1f92nfEnMbL1V73JOcZ33U4FhMYEhrXLb8MNQnanjCwztWju4svhMeBo7UkzP validated for user test on service http://127.0.0.1:38671. Proxy Granting Ticket transmited to http://127.0.0.1:38671. 128s FAILED 128s cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_bad_service 2025-06-19 14:43:43,652 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,659 INFO Service ticket created for service http://127.0.0.1:38881 by user test. 128s 2025-06-19 14:43:43,672 INFO ValidateService: ticket ST-zyD4L06FzbdxlVdqanabnBha0eX5BuzD7RSc2HLjTleErBq5FBnhI3FzgYpfs validated for user test on service http://127.0.0.1:38881. Proxy Granting Ticket transmited to http://127.0.0.1:38881. 128s FAILED 128s cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_ok 2025-06-19 14:43:43,718 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,724 INFO Service ticket created for service http://127.0.0.1:44431 by user test. 128s 2025-06-19 14:43:43,737 INFO ValidateService: ticket ST-kKJCRjOFxQ0I87QslP8RI7hJX7IFRWSC1fus67sbWiMPkRzAbGPHbohJHjP3K validated for user test on service http://127.0.0.1:44431. Proxy Granting Ticket transmited to http://127.0.0.1:44431. 128s FAILED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_bad_target 2025-06-19 14:43:43,781 INFO User test successfully authenticated 128s PASSED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_bad_ticket PASSED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_bad_ticket_prefix 2025-06-19 14:43:43,787 INFO Service ticket created for service https://www.example.com by user test. 128s 2025-06-19 14:43:43,790 WARNING SamlValidate: validation error: AuthnFailed TARGET https://www.example.org does not match ticket service 128s 2025-06-19 14:43:43,797 WARNING SamlValidate: validation error: AuthnFailed ticket ST-GvPklO5tCe0rIUrWHVDowlopXkq8oitIRDnW6L0nZHXOUXhIEoTpnIsypCfsV not found 128s 2025-06-19 14:43:43,798 WARNING SamlValidate: validation error: AuthnFailed ticket PT-TN6iN62hM2VjqNaruFmFHPLrYZY0Sx0wIAkgJ8FrPCQy4gD7TXE5SeTEuvg1U not found 128s PASSED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_bad_xml PASSED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_ok 2025-06-19 14:43:43,804 WARNING SamlValidate: validation error: AuthnFailed ticket RANDOM-NOT-BEGINING-WITH-ST-OR-ST should begin with PT- or ST- 128s 2025-06-19 14:43:43,809 WARNING SamlValidate: validation error: VersionMismatch 128s 2025-06-19 14:43:43,821 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,827 INFO Service ticket created for service https://www.example.com by user test. 128s 2025-06-19 14:43:43,838 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,845 INFO Service ticket created for service http://127.0.0.1:36393 by user test. 128s 2025-06-19 14:43:43,860 INFO ValidateService: ticket ST-wAof9sePbSwC25sNWD6C8qkZkwQNYbJu89VsIspyMT4tcU4wYE92cKcLgkT2s validated for user test on service http://127.0.0.1:36393. Proxy Granting Ticket transmited to http://127.0.0.1:36393. 128s FAILED 128s cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_ok_user_field 2025-06-19 14:43:43,905 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,911 INFO Service ticket created for service https://field_needed_success.example.com by user test. 128s 2025-06-19 14:43:43,915 INFO SamlValidate: ticket ST-APiRA8IaJt9NIVcx7PYqr3tDgJwM0HvzaEYp1ru4syHUwjd8eCbzaVnbYCWbH validated for user test on service https://field_needed_success.example.com. 128s 2025-06-19 14:43:43,924 INFO User test successfully authenticated 128s 2025-06-19 14:43:43,930 INFO Service ticket created for service https://field_needed_success_alt.example.com by user test. 128s 2025-06-19 14:43:43,934 INFO SamlValidate: ticket ST-CV7MFPowpQZWO5XozqidL2a1WRrUpAGVpNxoWaFptBRmQXIvHAD6I7aI4w74n validated for user test on service https://field_needed_success_alt.example.com. 128s PASSED 128s 128s =================================== FAILURES =================================== 128s __________ FederateAuthLoginLogoutTestCase.test_auth_federate_errors ___________ 128s 128s self = 128s 128s def test_auth_federate_errors(self): 128s """ 128s The federated view should redirect to /login if the provider is unknown or not provided, 128s try to fetch a new ticket if the provided ticket validation fail 128s (network error or bad ticket), redirect to /login with a error message if identity 128s provider CAS return a bad response (invalid XML document) 128s """ 128s good_provider = "example.com" 128s bad_provider = "exemple.fr" 128s client = Client() 128s response = client.get("/federate/%s" % bad_provider) 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual(response["Location"], "%s/login" % ( 128s 'http://testserver' if django.VERSION < (1, 9) else "" 128s )) 128s 128s # test CAS not avaible 128s response = client.get("/federate/%s" % good_provider, {'ticket': utils.gen_st()}) 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual( 128s response["Location"], 128s "%s/login?service=http%%3A%%2F%%2Ftestserver%%2Ffederate%%2F%s" % ( 128s models.FederatedIendityProvider.objects.get(suffix=good_provider).server_url, 128s good_provider 128s ) 128s ) 128s 128s # test CAS avaible but bad ticket 128s tests_utils.DummyCAS.run( 128s ("http://testserver/federate/%s" % good_provider).encode("ascii"), 128s utils.gen_st().encode("ascii"), 128s settings.CAS_TEST_USER.encode("utf-8"), 128s [], 128s 8080 128s ) 128s response = client.get("/federate/%s" % good_provider, {'ticket': utils.gen_st()}) 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual( 128s response["Location"], 128s "%s/login?service=http%%3A%%2F%%2Ftestserver%%2Ffederate%%2F%s" % ( 128s models.FederatedIendityProvider.objects.get(suffix=good_provider).server_url, 128s good_provider 128s ) 128s ) 128s 128s response = client.post("/federate") 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual(response["Location"], "%s/login" % ( 128s 'http://testserver' if django.VERSION < (1, 9) else "" 128s )) 128s 128s # test CAS avaible but return a bad XML doc, should redirect to /login with a error message 128s # use "example.net" as it is CASv3 128s tests_utils.HttpParamsHandler.run(8082) 128s response = client.get("/federate/%s" % "example.net", {'ticket': utils.gen_st()}) 128s self.assertEqual(response.status_code, 302) 128s > self.assertEqual(response["Location"], "%s/login" % ( 128s 'http://testserver' if django.VERSION < (1, 9) else "" 128s )) 128s E AssertionError: 'http://127.0.0.1:8082/login?service=http%[39 chars].net' != '/login' 128s E - http://127.0.0.1:8082/login?service=http%3A%2F%2Ftestserver%2Ffederate%2Fexample.net 128s E + /login 128s 128s cas_server/tests/test_federate.py:249: AssertionError 128s ------------------------------ Captured log call ------------------------------- 128s WARNING cas_server.views:views.py:408 Identity provider suffix exemple.fr not found 128s INFO cas_server.views:views.py:383 Got an invalid ticket ST-GBJ7TLepXSlJswY1ADQnZkVulXTSVcQiXTZv0uTElBcyKDTsJ2eeguLkcHa5b from http://127.0.0.1:8080 for service http://testserver/federate/example.com. Retrying authentication 128s INFO cas_server.views:views.py:383 Got an invalid ticket ST-t5X2V9664DFwrR3ryXmbogY6ZkXQD6qXzZ2NZoITsc1pueks8cZJgN4Y1iQ28 from http://127.0.0.1:8080 for service http://testserver/federate/example.com. Retrying authentication 128s INFO cas_server.views:views.py:383 Got an invalid ticket ST-2OcBg9tntJHINUfkkpTpLHEA4bY4kMZ9uDbwvWA4KlTbRbs7yFkffY4ZRKbcc from http://127.0.0.1:8082 for service http://testserver/federate/example.net. Retrying authentication 128s ____________ FederateAuthLoginLogoutTestCase.test_auth_federate_slo ____________ 128s 128s self = 128s 128s def test_auth_federate_slo(self): 128s """test that SLO receive from backend CAS log out the users""" 128s # get tickets and connected clients 128s > tickets = self.test_login_post_provider() 128s 128s cas_server/tests/test_federate.py:259: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s _____________ FederateAuthLoginLogoutTestCase.test_federate_logout _____________ 128s 128s self = 128s 128s def test_federate_logout(self): 128s """ 128s test the logout function: the user should be log out 128s and redirected to his CAS logout page 128s """ 128s # get tickets and connected clients, then follow normal logout 128s > tickets = self.test_login_post_provider() 128s 128s cas_server/tests/test_federate.py:310: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s _____________ FederateAuthLoginLogoutTestCase.test_forget_provider _____________ 128s 128s self = 128s 128s def test_forget_provider(self): 128s """Test the logout option to forget remembered provider""" 128s > tickets = self.test_login_post_provider(remember=True) 128s 128s cas_server/tests/test_federate.py:360: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s ___________ FederateAuthLoginLogoutTestCase.test_login_post_provider ___________ 128s 128s self = 128s remember = False 128s 128s def test_login_post_provider(self, remember=False): 128s """test a successful login wrokflow""" 128s tickets = [] 128s # choose the example.com provider 128s for (suffix, cas_port) in [ 128s ("example.com", 8080), ("example.org", 8081), 128s ("example.net", 8082), ("example.test", 8083) 128s ]: 128s provider = models.FederatedIendityProvider.objects.get(suffix=suffix) 128s # get a bare client 128s client = Client() 128s # fetch the login page 128s response = client.get("/login") 128s # in federated mode, we shoudl POST do /federate on the login page 128s self.assertEqual(response.context['post_url'], '/federate') 128s # get current form parameter 128s params = tests_utils.copy_form(response.context["form"]) 128s params['provider'] = provider.suffix 128s if remember: 128s params['remember'] = 'on' 128s # just try for one suffix 128s if suffix == "example.com": 128s # if renew=False is posted it should be ignored 128s params["renew"] = False 128s # post the choosed provider 128s response = client.post('/federate', params) 128s # we are redirected to the provider CAS client url 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual(response["Location"], '%s/federate/%s%s' % ( 128s 'http://testserver' if django.VERSION < (1, 9) else "", 128s provider.suffix, 128s "?remember=on" if remember else "" 128s )) 128s # let's follow the redirect 128s response = client.get( 128s '/federate/%s%s' % (provider.suffix, "?remember=on" if remember else "") 128s ) 128s # we are redirected to the provider CAS for authentication 128s self.assertEqual(response.status_code, 302) 128s self.assertEqual( 128s response["Location"], 128s "%s/login?service=http%%3A%%2F%%2Ftestserver%%2Ffederate%%2F%s%s" % ( 128s provider.server_url, 128s provider.suffix, 128s "%3Fremember%3Don" if remember else "" 128s ) 128s ) 128s # let's generate a ticket 128s ticket = utils.gen_st() 128s # we lauch a dummy CAS server that only validate once for the service 128s # http://testserver/federate/example.com with `ticket` 128s > tests_utils.DummyCAS.run( 128s ("http://testserver/federate/%s%s" % ( 128s provider.suffix, 128s "?remember=on" if remember else "" 128s )).encode("ascii"), 128s ticket.encode("ascii"), 128s settings.CAS_TEST_USER.encode("utf8"), 128s [], 128s cas_port 128s ) 128s 128s cas_server/tests/test_federate.py:118: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s _______________ FederateAuthLoginLogoutTestCase.test_login_twice _______________ 128s 128s self = 128s 128s def test_login_twice(self): 128s """Test that user id db is used for the second login (cf coverage)""" 128s > self.test_login_post_provider() 128s 128s cas_server/tests/test_federate.py:164: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s ____________ FederateAuthLoginLogoutTestCase.test_remember_provider ____________ 128s 128s self = 128s 128s def test_remember_provider(self): 128s """ 128s If the user check remember, next login should not offer the chose of the backend CAS 128s and use the one store in the cookie 128s """ 128s > tickets = self.test_login_post_provider(remember=True) 128s 128s cas_server/tests/test_federate.py:348: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s __________________ FederateAuthLoginLogoutTestCase.test_renew __________________ 128s 128s self = 128s 128s def test_renew(self): 128s """ 128s Test authentication renewal with federation mode 128s """ 128s > tickets = self.test_login_post_provider() 128s 128s cas_server/tests/test_federate.py:372: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/test_federate.py:118: in test_login_post_provider 128s tests_utils.DummyCAS.run( 128s cas_server/tests/utils.py:334: in run 128s httpd = server_class(("127.0.0.1", port), cls) 128s /usr/lib/python3.13/socketserver.py:457: in __init__ 128s self.server_bind() 128s /usr/lib/python3.13/http/server.py:136: in server_bind 128s socketserver.TCPServer.server_bind(self) 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s self = 128s 128s def server_bind(self): 128s """Called by constructor to bind the socket. 128s 128s May be overridden. 128s 128s """ 128s if self.allow_reuse_address and hasattr(socket, "SO_REUSEADDR"): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) 128s # Since Linux 6.12.9, SO_REUSEPORT is not allowed 128s # on other address families than AF_INET/AF_INET6. 128s if ( 128s self.allow_reuse_port and hasattr(socket, "SO_REUSEPORT") 128s and self.address_family in (socket.AF_INET, socket.AF_INET6) 128s ): 128s self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) 128s > self.socket.bind(self.server_address) 128s E OSError: [Errno 98] Address already in use 128s 128s /usr/lib/python3.13/socketserver.py:478: OSError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:345 Trying to authenticate http://127.0.0.1:8080 again 128s _________________ TicketTestCase.test_clean_old_service_ticket _________________ 128s 128s self = 128s 128s def test_clean_old_service_ticket(self): 128s """test tickets clean_old_entries""" 128s # ge an authenticated client 128s client = get_auth_client() 128s # get the user associated to the client 128s user = self.get_user(client) 128s # generate a ticket for that client, waiting for validation 128s self.get_ticket(user, models.ServiceTicket, self.service, self.service_pattern) 128s # generate another ticket for those validation time has expired 128s self.get_ticket( 128s user, models.ServiceTicket, 128s self.service, self.service_pattern, validity_expired=True 128s ) 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s # generate a ticket with SLO having timeout reach 128s self.get_ticket( 128s user, models.ServiceTicket, 128s service, self.service_pattern, timeout_expired=True, 128s validate=True, single_log_out=True 128s ) 128s # there should be 3 tickets in the db 128s self.assertEqual(len(models.ServiceTicket.objects.all()), 3) 128s # we call the clean_old_entries method that should delete validated non SLO ticket and 128s # expired non validated ticket and send SLO for SLO expired ticket before deleting then 128s models.ServiceTicket.clean_old_entries() 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/test_models.py:304: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:877 Sending SLO requests to service http://127.0.0.1:42135 for user test 128s ________________________ LogoutTestCase.test_logout_slo ________________________ 128s 128s self = 128s 128s def test_logout_slo(self): 128s """test logout from a service with SLO support""" 128s parameters = [] 128s 128s # test normal SLO 128s # setup a simple one request http server 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s # build a service url depending on which port the http server has binded 128s service = "http://%s:%s" % (host, port) 128s # get a ticket requested by client and being validated by the service 128s (client, ticket) = get_validated_ticket(service)[:2] 128s # the client logout triggering the send of the SLO requests 128s client.get('/logout') 128s # we store the POST parameters send for this ticket for furthur analisys 128s > parameters.append((httpd.PARAMS, ticket)) 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/test_view.py:855: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:44911 by user test. 128s INFO cas_server.views:views.py:1054 Validate: Service ticket ST-zb0oibwe5z3m0x9ioqYVDPrCJ3jkDhJsUmQJcLLeatPeK6dDTNvAzRn1OZ0Rj validated, user test authenticated on service http://127.0.0.1:44911 128s INFO cas_server.views:views.py:171 logout requested 128s INFO cas_server.views:views.py:77 Logging out user test. 128s INFO cas_server.models:models.py:877 Sending SLO requests to service http://127.0.0.1:44911 for user test 128s INFO cas_server.views:views.py:114 User test logged out 128s _________________ ValidateServiceTestCase.test_validate_proxy __________________ 128s 128s self = 128s 128s def test_validate_proxy(self): 128s """test ProxyTicket validation on /proxyValidate and /serviceValidate""" 128s > ticket = get_proxy_ticket(self.service) 128s 128s cas_server/tests/test_view.py:1371: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/utils.py:143: in get_proxy_ticket 128s params = get_pgt() 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:34803 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-rQs2ry9VA7rgzkTro0QXnAxXqnJ7hjKgHKbQrklf6vkrllxsx7VkBhCcbYbIh validated for user test on service http://127.0.0.1:34803. Proxy Granting Ticket transmited to http://127.0.0.1:34803. 128s _________ ValidateServiceTestCase.test_validate_service_view_ok_pgturl _________ 128s 128s self = 128s 128s def test_validate_service_view_ok_pgturl(self): 128s """test the retrieval of a ProxyGrantingTicket""" 128s # start a simple on request http server 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s # construct the service from it 128s service = "http://%s:%s" % (host, port) 128s 128s # get a ticket to be validated 128s ticket = get_user_ticket_request(service)[1] 128s 128s client = Client() 128s # request a PGT ticket then validating the ticket by setting the pgtUrl parameter 128s response = client.get( 128s '/serviceValidate', 128s {'ticket': ticket.value, 'service': service, 'pgtUrl': service} 128s ) 128s # We should have recieved the PGT via a GET request parameter on the simple http server 128s > pgt_params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/test_view.py:1554: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:33491 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-MBleKWAvGxlBDmPbHOhaVjWDajnavD8LWTkS9dW4zsAArhGeIbcU893Hz0PnJ validated for user test on service http://127.0.0.1:33491. Proxy Granting Ticket transmited to http://127.0.0.1:33491. 128s __________________ ProxyTestCase.test_proxy_missing_parameter __________________ 128s 128s self = 128s 128s def test_proxy_missing_parameter(self): 128s """Try to get a PGT with some missing GET parameters. The PT should not be emited""" 128s > params = get_pgt() 128s 128s cas_server/tests/test_view.py:1846: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:46143 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-5r8J8C2PfD2s4onMIVFKI2ZMlRTQ5Jnzfypay0rX5VZmvTWl7px83Idr41CRA validated for user test on service http://127.0.0.1:46143. Proxy Granting Ticket transmited to http://127.0.0.1:46143. 128s __________________ ProxyTestCase.test_proxy_unauthorized_user __________________ 128s 128s self = 128s 128s def test_proxy_unauthorized_user(self): 128s """ 128s Try to get a PT for services that do not allow the current user: 128s * first with a service that restrict allowed username 128s * second with a service requiring somes conditions on the user attributes 128s * third with a service using a particular user attribute as username 128s All this tests should fail 128s """ 128s # we directrly get a ProxyGrantingTicket 128s > params = get_pgt() 128s 128s cas_server/tests/test_view.py:1822: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:34837 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-i7HJJvEr4TfUVrPHeNzzsvP4OZfZIez7NSwbNWydQxkwd6LQMq0H5MxGqbGjl validated for user test on service http://127.0.0.1:34837. Proxy Granting Ticket transmited to http://127.0.0.1:34837. 128s __________________ ProxyTestCase.test_validate_proxy_bad_pgt ___________________ 128s 128s self = 128s 128s def test_validate_proxy_bad_pgt(self): 128s """Try to get a ProxyTicket with a bad PGT. The PT generation should fail""" 128s # we directrly get a ProxyGrantingTicket 128s > params = get_pgt() 128s 128s cas_server/tests/test_view.py:1759: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:38671 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-1f92nfEnMbL1V73JOcZ33U4FhMYEhrXLb8MNQnanjCwztWju4svhMeBo7UkzP validated for user test on service http://127.0.0.1:38671. Proxy Granting Ticket transmited to http://127.0.0.1:38671. 128s ________________ ProxyTestCase.test_validate_proxy_bad_service _________________ 128s 128s self = 128s 128s def test_validate_proxy_bad_service(self): 128s """ 128s Try to get a ProxyTicket for a denied service and 128s a service that do not allow PT. The PT generation should fail. 128s """ 128s # we directrly get a ProxyGrantingTicket 128s > params = get_pgt() 128s 128s cas_server/tests/test_view.pyDestroying test database for alias 'default'... 128s :1780: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:38881 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-zyD4L06FzbdxlVdqanabnBha0eX5BuzD7RSc2HLjTleErBq5FBnhI3FzgYpfs validated for user test on service http://127.0.0.1:38881. Proxy Granting Ticket transmited to http://127.0.0.1:38881. 128s _____________________ ProxyTestCase.test_validate_proxy_ok _____________________ 128s 128s self = 128s 128s def test_validate_proxy_ok(self): 128s """ 128s Get a PGT, get a proxy ticket, validate it. Validation should succeed and 128s show the proxy service URL. 128s """ 128s # we directrly get a ProxyGrantingTicket 128s > params = get_pgt() 128s 128s cas_server/tests/test_view.py:1711: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:44431 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-kKJCRjOFxQ0I87QslP8RI7hJX7IFRWSC1fus67sbWiMPkRzAbGPHbohJHjP3K validated for user test on service http://127.0.0.1:44431. Proxy Granting Ticket transmited to http://127.0.0.1:44431. 128s ______________________ SamlValidateTestCase.test_saml_ok _______________________ 128s 128s self = 128s 128s def test_saml_ok(self): 128s """ 128s test with a valid (ticket, service), with a ST and a PT, 128s the username and all attributes are transmited""" 128s tickets = [ 128s # return a ServiceTicket (standard ticket) waiting for validation 128s get_user_ticket_request(self.service)[1], 128s # return a PT waiting for validation 128s > get_proxy_ticket(self.service) 128s ] 128s 128s cas_server/tests/test_view.py:1961: 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s cas_server/tests/utils.py:143: in get_proxy_ticket 128s params = get_pgt() 128s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 128s 128s def get_pgt(): 128s """return a dict contening a service, user and PGT ticket for this service""" 128s (httpd, host, port) = HttpParamsHandler.run()[0:3] 128s service = "http://%s:%s" % (host, port) 128s 128s (user, ticket) = get_user_ticket_request(service)[:2] 128s 128s client = Client() 128s client.get('/serviceValidate', {'ticket': ticket.value, 'service': service, 'pgtUrl': service}) 128s > params = httpd.PARAMS 128s E AttributeError: 'HTTPServer' object has no attribute 'PARAMS' 128s 128s cas_server/tests/utils.py:133: AttributeError 128s ------------------------------ Captured log call ------------------------------- 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service https://www.example.com by user test. 128s INFO cas_server.views:views.py:592 User test successfully authenticated 128s INFO cas_server.models:models.py:443 Service ticket created for service http://127.0.0.1:36393 by user test. 128s INFO cas_server.views:views.py:1265 ValidateService: ticket ST-wAof9sePbSwC25sNWD6C8qkZkwQNYbJu89VsIspyMT4tcU4wYE92cKcLgkT2s validated for user test on service http://127.0.0.1:36393. Proxy Granting Ticket transmited to http://127.0.0.1:36393. 128s =============================== warnings summary =============================== 128s cas_server/tests/test_view.py::LoginTestCase::test_ajax_get_ticket_warn 128s cas_server/tests/test_view.py::LoginTestCase::test_login_view_post_goodpass_goodlt_warn 128s cas_server/tests/test_view.py::LoginTestCase::test_view_login_get_auth_allowed_service_warn 128s /tmp/autopkgtest.AfgFuO/autopkgtest_tmp/cas_server/utils.py:211: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC). 128s datetime.utcnow() + timedelta(seconds=max_age), 128s 128s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 128s =========================== short test summary info ============================ 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_auth_federate_errors 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_auth_federate_slo 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_federate_logout 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_forget_provider 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_post_provider 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_login_twice 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_remember_provider 128s FAILED cas_server/tests/test_federate.py::FederateAuthLoginLogoutTestCase::test_renew 128s FAILED cas_server/tests/test_models.py::TicketTestCase::test_clean_old_service_ticket 128s FAILED cas_server/tests/test_view.py::LogoutTestCase::test_logout_slo - Attri... 128s FAILED cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_proxy 128s FAILED cas_server/tests/test_view.py::ValidateServiceTestCase::test_validate_service_view_ok_pgturl 128s FAILED cas_server/tests/test_view.py::ProxyTestCase::test_proxy_missing_parameter 128s FAILED cas_server/tests/test_view.py::ProxyTestCase::test_proxy_unauthorized_user 128s FAILED cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_bad_pgt 128s FAILED cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_bad_service 128s FAILED cas_server/tests/test_view.py::ProxyTestCase::test_validate_proxy_ok 128s FAILED cas_server/tests/test_view.py::SamlValidateTestCase::test_saml_ok - At... 128s ================== 18 failed, 110 passed, 3 warnings in 4.61s ================== 129s autopkgtest [14:43:45]: test run-test-suite.sh: -----------------------] 129s run-test-suite.sh FAIL non-zero exit status 1 129s autopkgtest [14:43:45]: test run-test-suite.sh: - - - - - - - - - - results - - - - - - - - - - 129s autopkgtest [14:43:45]: @@@@@@@@@@@@@@@@@@@@ summary 129s run-test-suite.sh FAIL non-zero exit status 1 136s nova [W] Using flock in prodstack7-ppc64el 136s Creating nova instance adt-questing-ppc64el-django-cas-server-20250619-144136-juju-7f2275-prod-proposed-migration-environment-2-00a7c723-454f-4c9a-b9a2-91cf3f3c6d6a from image adt/ubuntu-questing-ppc64el-server-20250619.img (UUID 1c97422d-c646-492e-9581-3c98f213de4b)... 136s nova [W] Timed out waiting for 610d81f6-53af-49e0-9e53-bd0937107fd3 to get deleted.