0s autopkgtest [09:19:29]: starting date and time: 2025-03-13 09:19:29+0000 0s autopkgtest [09:19:29]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [09:19:29]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.va_6y1cz/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pytest-httpx,src:httpx,src:python-urllib3 --apt-upgrade pydiscovergy --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=pytest-httpx/0.35.0-1 httpx/0.28.1-1 python-urllib3/2.3.0-2' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-ppc64el-13.secgroup --name adt-plucky-ppc64el-pydiscovergy-20250313-091929-juju-7f2275-prod-proposed-migration-environment-2-70b0f358-4d40-4fe0-a280-c24a75c9673b --image adt/ubuntu-plucky-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 104s autopkgtest [09:21:13]: testbed dpkg architecture: ppc64el 104s autopkgtest [09:21:13]: testbed apt version: 2.9.32ubuntu1 105s autopkgtest [09:21:14]: @@@@@@@@@@@@@@@@@@@@ test bed setup 105s autopkgtest [09:21:14]: testbed release detected to be: None 106s autopkgtest [09:21:15]: updating testbed package index (apt update) 106s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 107s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 107s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 107s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 107s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [44.2 kB] 107s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 107s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [429 kB] 107s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el Packages [57.9 kB] 107s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el Packages [358 kB] 107s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse ppc64el Packages [3020 B] 107s Fetched 1014 kB in 1s (1169 kB/s) 108s Reading package lists... 109s Reading package lists... 109s Building dependency tree... 109s Reading state information... 109s Calculating upgrade... 109s Calculating upgrade... 109s The following NEW packages will be installed: 109s pnp.ids 109s The following packages will be upgraded: 109s gir1.2-glib-2.0 htop hwdata libglib2.0-0t64 libglib2.0-data 109s 5 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 109s Need to get 2297 kB of archives. 109s After this operation, 11.3 kB of additional disk space will be used. 109s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el gir1.2-glib-2.0 ppc64el 2.84.0-1 [184 kB] 110s Get:2 http://ftpmaster.internal/ubuntu plucky/main ppc64el libglib2.0-0t64 ppc64el 2.84.0-1 [1802 kB] 110s Get:3 http://ftpmaster.internal/ubuntu plucky/main ppc64el libglib2.0-data all 2.84.0-1 [53.0 kB] 110s Get:4 http://ftpmaster.internal/ubuntu plucky/main ppc64el htop ppc64el 3.4.0-2 [227 kB] 110s Get:5 http://ftpmaster.internal/ubuntu plucky/main ppc64el hwdata all 0.393-3 [1562 B] 110s Get:6 http://ftpmaster.internal/ubuntu plucky/main ppc64el pnp.ids all 0.393-3 [29.5 kB] 110s Fetched 2297 kB in 1s (3628 kB/s) 111s (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 ... 107190 files and directories currently installed.) 111s Preparing to unpack .../0-gir1.2-glib-2.0_2.84.0-1_ppc64el.deb ... 111s Unpacking gir1.2-glib-2.0:ppc64el (2.84.0-1) over (2.83.5-1) ... 111s Preparing to unpack .../1-libglib2.0-0t64_2.84.0-1_ppc64el.deb ... 111s Unpacking libglib2.0-0t64:ppc64el (2.84.0-1) over (2.83.5-1) ... 111s Preparing to unpack .../2-libglib2.0-data_2.84.0-1_all.deb ... 111s Unpacking libglib2.0-data (2.84.0-1) over (2.83.5-1) ... 111s Preparing to unpack .../3-htop_3.4.0-2_ppc64el.deb ... 111s Unpacking htop (3.4.0-2) over (3.4.0-1) ... 111s Preparing to unpack .../4-hwdata_0.393-3_all.deb ... 111s Unpacking hwdata (0.393-3) over (0.393-1) ... 111s Selecting previously unselected package pnp.ids. 111s Preparing to unpack .../5-pnp.ids_0.393-3_all.deb ... 111s Unpacking pnp.ids (0.393-3) ... 111s Setting up htop (3.4.0-2) ... 111s Setting up libglib2.0-0t64:ppc64el (2.84.0-1) ... 111s No schema files found: doing nothing. 111s Setting up libglib2.0-data (2.84.0-1) ... 111s Setting up gir1.2-glib-2.0:ppc64el (2.84.0-1) ... 111s Setting up pnp.ids (0.393-3) ... 111s Setting up hwdata (0.393-3) ... 111s Processing triggers for man-db (2.13.0-1) ... 111s Processing triggers for libc-bin (2.41-1ubuntu1) ... 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 112s Solving dependencies... 112s 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 112s autopkgtest [09:21:21]: upgrading testbed (apt dist-upgrade and autopurge) 112s Reading package lists... 113s Building dependency tree... 113s Reading state information... 113s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 113s Starting 2 pkgProblemResolver with broken count: 0 113s Done 113s Entering ResolveByKeep 114s 114s Calculating upgrade... 114s The following packages will be upgraded: 114s python3-urllib3 114s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 114s Need to get 94.1 kB of archives. 114s After this operation, 0 B of additional disk space will be used. 114s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main ppc64el python3-urllib3 all 2.3.0-2 [94.1 kB] 114s Fetched 94.1 kB in 0s (337 kB/s) 114s (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 ... 107193 files and directories currently installed.) 114s Preparing to unpack .../python3-urllib3_2.3.0-2_all.deb ... 114s Unpacking python3-urllib3 (2.3.0-2) over (2.3.0-1) ... 114s Setting up python3-urllib3 (2.3.0-2) ... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Starting pkgProblemResolver with broken count: 0 115s Starting 2 pkgProblemResolver with broken count: 0 115s Done 116s Solving dependencies... 116s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 118s autopkgtest [09:21:27]: testbed running kernel: Linux 6.14.0-7-generic #7-Ubuntu SMP Fri Feb 28 12:06:33 UTC 2025 119s autopkgtest [09:21:28]: @@@@@@@@@@@@@@@@@@@@ apt-source pydiscovergy 120s Get:1 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (dsc) [2460 B] 120s Get:2 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (tar) [46.6 kB] 120s Get:3 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (diff) [2548 B] 120s gpgv: Signature made Thu Feb 13 15:28:46 2025 UTC 120s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 120s gpgv: Can't check signature: No public key 120s dpkg-source: warning: cannot verify inline signature for ./pydiscovergy_3.1.0-1.dsc: no acceptable signature found 120s autopkgtest [09:21:29]: testing package pydiscovergy version 3.1.0-1 121s autopkgtest [09:21:30]: build not needed 121s autopkgtest [09:21:30]: test run-tests: preparing testbed 121s Reading package lists... 121s Building dependency tree... 121s Reading state information... 122s Starting pkgProblemResolver with broken count: 0 122s Starting 2 pkgProblemResolver with broken count: 0 122s Done 122s The following NEW packages will be installed: 122s python3-all python3-anyio python3-async-generator python3-authlib 122s python3-click python3-h11 python3-httpcore python3-httpx python3-iniconfig 122s python3-mashumaro python3-msgpack python3-orjson python3-packaging 122s python3-pluggy python3-pycryptodome python3-pydiscovergy python3-pytest 122s python3-pytest-asyncio python3-pytest-httpx python3-respx python3-sniffio 122s python3-tomli python3-tomli-w 122s 0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded. 122s Need to get 2592 kB of archives. 122s After this operation, 12.9 MB of additional disk space will be used. 122s Get:1 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-all ppc64el 3.13.2-2 [884 B] 122s Get:2 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-sniffio all 1.3.1-1 [7262 B] 122s Get:3 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-anyio all 4.8.0-2 [63.4 kB] 122s Get:4 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-async-generator all 1.10-4 [17.5 kB] 122s Get:5 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pycryptodome ppc64el 3.20.0+dfsg-3build1 [1142 kB] 123s Get:6 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-authlib all 1.5.1-1 [116 kB] 123s Get:7 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-click all 8.2.0+0.really.8.1.8-1 [80.0 kB] 123s Get:8 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-h11 all 0.14.0-1 [51.1 kB] 123s Get:9 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-httpcore all 1.0.7-1 [38.8 kB] 123s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el python3-httpx all 0.28.1-1 [59.4 kB] 123s Get:11 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-iniconfig all 1.1.1-2 [6024 B] 123s Get:12 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-msgpack ppc64el 1.0.3-3build4 [89.5 kB] 123s Get:13 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-orjson ppc64el 3.10.7-2build1 [295 kB] 123s Get:14 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-tomli ppc64el 2.2.1-2build1 [129 kB] 123s Get:15 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-tomli-w all 1.0.0-3 [7342 B] 123s Get:16 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-mashumaro all 3.15-1 [89.4 kB] 123s Get:17 http://ftpmaster.internal/ubuntu plucky/main ppc64el python3-packaging all 24.2-1 [51.5 kB] 123s Get:18 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pluggy all 1.5.0-1 [21.0 kB] 123s Get:19 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pydiscovergy all 3.1.0-1 [12.6 kB] 123s Get:20 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest all 8.3.4-1 [252 kB] 123s Get:21 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-pytest-asyncio all 0.25.1-1 [17.0 kB] 123s Get:22 http://ftpmaster.internal/ubuntu plucky-proposed/universe ppc64el python3-pytest-httpx all 0.35.0-1 [24.0 kB] 123s Get:23 http://ftpmaster.internal/ubuntu plucky/universe ppc64el python3-respx all 0.21.1-2 [21.0 kB] 123s Fetched 2592 kB in 1s (3464 kB/s) 123s Selecting previously unselected package python3-all. 123s (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 ... 107193 files and directories currently installed.) 123s Preparing to unpack .../00-python3-all_3.13.2-2_ppc64el.deb ... 123s Unpacking python3-all (3.13.2-2) ... 123s Selecting previously unselected package python3-sniffio. 123s Preparing to unpack .../01-python3-sniffio_1.3.1-1_all.deb ... 123s Unpacking python3-sniffio (1.3.1-1) ... 123s Selecting previously unselected package python3-anyio. 123s Preparing to unpack .../02-python3-anyio_4.8.0-2_all.deb ... 123s Unpacking python3-anyio (4.8.0-2) ... 123s Selecting previously unselected package python3-async-generator. 123s Preparing to unpack .../03-python3-async-generator_1.10-4_all.deb ... 123s Unpacking python3-async-generator (1.10-4) ... 123s Selecting previously unselected package python3-pycryptodome. 123s Preparing to unpack .../04-python3-pycryptodome_3.20.0+dfsg-3build1_ppc64el.deb ... 123s Unpacking python3-pycryptodome (3.20.0+dfsg-3build1) ... 123s Selecting previously unselected package python3-authlib. 123s Preparing to unpack .../05-python3-authlib_1.5.1-1_all.deb ... 123s Unpacking python3-authlib (1.5.1-1) ... 123s Selecting previously unselected package python3-click. 123s Preparing to unpack .../06-python3-click_8.2.0+0.really.8.1.8-1_all.deb ... 123s Unpacking python3-click (8.2.0+0.really.8.1.8-1) ... 123s Selecting previously unselected package python3-h11. 123s Preparing to unpack .../07-python3-h11_0.14.0-1_all.deb ... 123s Unpacking python3-h11 (0.14.0-1) ... 123s Selecting previously unselected package python3-httpcore. 123s Preparing to unpack .../08-python3-httpcore_1.0.7-1_all.deb ... 123s Unpacking python3-httpcore (1.0.7-1) ... 123s Selecting previously unselected package python3-httpx. 123s Preparing to unpack .../09-python3-httpx_0.28.1-1_all.deb ... 123s Unpacking python3-httpx (0.28.1-1) ... 123s Selecting previously unselected package python3-iniconfig. 123s Preparing to unpack .../10-python3-iniconfig_1.1.1-2_all.deb ... 123s Unpacking python3-iniconfig (1.1.1-2) ... 123s Selecting previously unselected package python3-msgpack. 123s Preparing to unpack .../11-python3-msgpack_1.0.3-3build4_ppc64el.deb ... 123s Unpacking python3-msgpack (1.0.3-3build4) ... 123s Selecting previously unselected package python3-orjson. 123s Preparing to unpack .../12-python3-orjson_3.10.7-2build1_ppc64el.deb ... 123s Unpacking python3-orjson (3.10.7-2build1) ... 123s Selecting previously unselected package python3-tomli. 123s Preparing to unpack .../13-python3-tomli_2.2.1-2build1_ppc64el.deb ... 123s Unpacking python3-tomli (2.2.1-2build1) ... 123s Selecting previously unselected package python3-tomli-w. 123s Preparing to unpack .../14-python3-tomli-w_1.0.0-3_all.deb ... 123s Unpacking python3-tomli-w (1.0.0-3) ... 123s Selecting previously unselected package python3-mashumaro. 123s Preparing to unpack .../15-python3-mashumaro_3.15-1_all.deb ... 123s Unpacking python3-mashumaro (3.15-1) ... 123s Selecting previously unselected package python3-packaging. 123s Preparing to unpack .../16-python3-packaging_24.2-1_all.deb ... 123s Unpacking python3-packaging (24.2-1) ... 123s Selecting previously unselected package python3-pluggy. 123s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 123s Unpacking python3-pluggy (1.5.0-1) ... 123s Selecting previously unselected package python3-pydiscovergy. 123s Preparing to unpack .../18-python3-pydiscovergy_3.1.0-1_all.deb ... 123s Unpacking python3-pydiscovergy (3.1.0-1) ... 124s Selecting previously unselected package python3-pytest. 124s Preparing to unpack .../19-python3-pytest_8.3.4-1_all.deb ... 124s Unpacking python3-pytest (8.3.4-1) ... 124s Selecting previously unselected package python3-pytest-asyncio. 124s Preparing to unpack .../20-python3-pytest-asyncio_0.25.1-1_all.deb ... 124s Unpacking python3-pytest-asyncio (0.25.1-1) ... 124s Selecting previously unselected package python3-pytest-httpx. 124s Preparing to unpack .../21-python3-pytest-httpx_0.35.0-1_all.deb ... 124s Unpacking python3-pytest-httpx (0.35.0-1) ... 124s Selecting previously unselected package python3-respx. 124s Preparing to unpack .../22-python3-respx_0.21.1-2_all.deb ... 124s Unpacking python3-respx (0.21.1-2) ... 124s Setting up python3-iniconfig (1.1.1-2) ... 124s Setting up python3-sniffio (1.3.1-1) ... 124s Setting up python3-orjson (3.10.7-2build1) ... 124s Setting up python3-async-generator (1.10-4) ... 124s Setting up python3-tomli (2.2.1-2build1) ... 124s Setting up python3-anyio (4.8.0-2) ... 124s Setting up python3-pycryptodome (3.20.0+dfsg-3build1) ... 125s Setting up python3-all (3.13.2-2) ... 125s Setting up python3-click (8.2.0+0.really.8.1.8-1) ... 125s Setting up python3-packaging (24.2-1) ... 125s Setting up python3-h11 (0.14.0-1) ... 125s Setting up python3-pluggy (1.5.0-1) ... 125s Setting up python3-msgpack (1.0.3-3build4) ... 125s Setting up python3-tomli-w (1.0.0-3) ... 125s Setting up python3-authlib (1.5.1-1) ... 126s Setting up python3-httpcore (1.0.7-1) ... 126s Setting up python3-mashumaro (3.15-1) ... 126s Setting up python3-pytest (8.3.4-1) ... 126s Setting up python3-httpx (0.28.1-1) ... 127s Setting up python3-pytest-asyncio (0.25.1-1) ... 127s Setting up python3-pytest-httpx (0.35.0-1) ... 127s Setting up python3-pydiscovergy (3.1.0-1) ... 127s Setting up python3-respx (0.21.1-2) ... 127s Processing triggers for man-db (2.13.0-1) ... 128s autopkgtest [09:21:37]: test run-tests: [----------------------- 129s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. 129s The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" 129s 129s warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) 129s ============================= test session starts ============================== 129s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.13 129s cachedir: .pytest_cache 129s rootdir: /tmp/autopkgtest.x9fvoc/autopkgtest_tmp 129s plugins: anyio-4.8.0, typeguard-4.4.2, respx-0.21.1, asyncio-0.25.1, httpx-0.35.0 129s asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None 129s collecting ... collected 17 items / 1 deselected / 16 selected 129s 129s tests/test_discovergy.py::test_get_timeout PASSED [ 6%] 130s tests/test_discovergy.py::test_token_auth_expired FAILED [ 12%] 130s tests/test_discovergy.py::test_token_auth_expired ERROR [ 12%] 130s 130s ==================================== ERRORS ==================================== 130s _________________ ERROR at teardown of test_token_auth_expired _________________ 130s 130s request = > 130s 130s @pytest.fixture() 130s def respx_mock(request): 130s respx_marker = request.node.get_closest_marker("respx") 130s 130s mock_router: MockRouter = ( 130s respx.mock 130s if respx_marker is None 130s else cast(MockRouter, respx.mock(**respx_marker.kwargs)) 130s ) 130s 130s > with mock_router: 130s 130s /usr/lib/python3/dist-packages/respx/plugin.py:29: 130s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 130s /usr/lib/python3/dist-packages/respx/router.py:437: in __exit__ 130s self.stop(quiet=bool(exc_type is not None)) 130s /usr/lib/python3/dist-packages/respx/router.py:479: in stop 130s self.assert_all_called() 130s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 130s 130s self = 130s 130s def assert_all_called(self) -> None: 130s not_called_routes = [route for route in self.routes if not route.called] 130s > assert not_called_routes == [], "RESPX: some routes were not called!" 130s E AssertionError: RESPX: some routes were not called! 130s 130s /usr/lib/python3/dist-packages/respx/router.py:102: AssertionError 130s =================================== FAILURES =================================== 130s ___________________________ test_token_auth_expired ____________________________ 130s 130s respx_mock = 130s discovergy_token_mock = Discovergy(email='example@example.com', password='example', timeout=10, httpx_client=None, authentication=TokenAuth(co...cret123'), access_token=AccessToken(token='access_token', token_secret='access_token_secret'), app_name='pydicovergy')) 130s 130s @pytest.mark.respx(base_url=API_BASE) 130s async def test_token_auth_expired( 130s respx_mock: MockRouter, 130s discovergy_token_mock: Discovergy, 130s ) -> None: 130s """Test if a error is raised when the access token is expired.""" 130s respx_mock.get("/test").respond(json={"key": "value"}) 130s 130s # check if AccessTokenExpired is raised when there was an HTTP status 401 130s with pytest.raises(AccessTokenExpired): 130s respx_mock.get("/test").respond(status_code=401) 130s > await discovergy_token_mock._get("/test") 130s 130s tests/test_discovergy.py:47: 130s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 130s /usr/lib/python3/dist-packages/pydiscovergy/discovergy.py:47: in _get 130s response = await client.get(url=API_BASE + path, params=params) 130s /usr/lib/python3/dist-packages/httpx/_client.py:1768: in get 130s return await self.request( 130s /usr/lib/python3/dist-packages/httpx/_client.py:1540: in request 130s return await self.send(request, auth=auth, follow_redirects=follow_redirects) 130s /usr/lib/python3/dist-packages/httpx/_client.py:1629: in send 130s response = await self._send_handling_auth( 130s /usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth 130s response = await self._send_handling_redirects( 130s /usr/lib/python3/dist-packages/httpx/_client.py:1694: in _send_handling_redirects 130s response = await self._send_single_request(request) 130s /usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request 130s response = await transport.handle_async_request(request) 130s /usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in handle_async_request 130s resp = await self._pool.handle_async_request(req) 130s /usr/lib/python3/dist-packages/respx/mocks.py:190: in amock 130s response = await cls._send_async_request( 130s /usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request 130s httpx_response = await cls.async_handler(httpx_request) 130s /usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler 130s raise assertion_error 130s /usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler 130s httpx_response = await router.async_handler(httpx_request) 130s /usr/lib/python3/dist-packages/respx/router.py:318: in async_handler 130s resolved = await self.aresolve(request) 130s /usr/lib/python3/dist-packages/respx/router.py:291: in aresolve 130s with self.resolver(request) as resolved: 130s /usr/lib/python3.13/contextlib.py:148: in __exit__ 130s next(self.gen) 130s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 130s 130s self = 130s request = 130s 130s @contextmanager 130s def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, None, None]: 130s resolved = ResolvedRoute() 130s 130s try: 130s yield resolved 130s 130s if resolved.route is None: 130s # Assert we always get a route match, if check is enabled 130s if self._assert_all_mocked: 130s > raise AllMockedAssertionError(f"RESPX: {request!r} not mocked!") 130s E respx.models.AllMockedAssertionError: RESPX: not mocked! 130s 130s /usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError 130s =========================== short test summary info ============================ 130s FAILED tests/test_discovergy.py::test_token_auth_expired - respx.models.AllMo... 130s ERROR tests/test_discovergy.py::test_token_auth_expired - AssertionError: RES... 130s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 2 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 130s ============== 1 failed, 1 passed, 1 deselected, 1 error in 0.29s ============== 130s autopkgtest [09:21:39]: test run-tests: -----------------------] 131s run-tests FAIL non-zero exit status 1 131s autopkgtest [09:21:40]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 131s autopkgtest [09:21:40]: @@@@@@@@@@@@@@@@@@@@ summary 131s run-tests FAIL non-zero exit status 1 136s nova [W] Using flock in prodstack6-ppc64el 136s Creating nova instance adt-plucky-ppc64el-pydiscovergy-20250313-091929-juju-7f2275-prod-proposed-migration-environment-2-70b0f358-4d40-4fe0-a280-c24a75c9673b from image adt/ubuntu-plucky-ppc64el-server-20250313.img (UUID 039b69e3-5f2d-4af8-9d4f-d440c2e5edc9)... 136s nova [W] Timed out waiting for cf60cabd-72a0-42d4-af2e-45d26a97fbe3 to get deleted.