0s autopkgtest [09:19:27]: starting date and time: 2025-03-13 09:19:27+0000 0s autopkgtest [09:19:27]: git checkout: 325255d2 Merge branch 'pin-any-arch' into 'ubuntu/production' 0s autopkgtest [09:19:27]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.1sgto34y/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 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-arm64-20.secgroup --name adt-plucky-arm64-pydiscovergy-20250313-091927-juju-7f2275-prod-proposed-migration-environment-2-8b33b0aa-eccf-433c-9ebf-aae54c6a63aa --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -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/ 87s autopkgtest [09:20:54]: testbed dpkg architecture: arm64 87s autopkgtest [09:20:54]: testbed apt version: 2.9.32ubuntu1 87s autopkgtest [09:20:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 88s autopkgtest [09:20:55]: testbed release detected to be: None 88s autopkgtest [09:20:55]: updating testbed package index (apt update) 89s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [110 kB] 89s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 89s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 89s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 89s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [44.2 kB] 89s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [429 kB] 89s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [11.5 kB] 89s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [55.9 kB] 89s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [370 kB] 89s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [3244 B] 90s Fetched 1024 kB in 1s (1146 kB/s) 90s Reading package lists... 91s Reading package lists... 91s Building dependency tree... 91s Reading state information... 92s Calculating upgrade... 92s Calculating upgrade... 92s The following packages will be upgraded: 92s gir1.2-glib-2.0 htop libglib2.0-0t64 libglib2.0-data 93s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 93s Need to get 1982 kB of archives. 93s After this operation, 0 B of additional disk space will be used. 93s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 gir1.2-glib-2.0 arm64 2.84.0-1 [185 kB] 93s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libglib2.0-0t64 arm64 2.84.0-1 [1571 kB] 93s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 libglib2.0-data all 2.84.0-1 [53.0 kB] 93s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 htop arm64 3.4.0-2 [173 kB] 94s Fetched 1982 kB in 1s (3131 kB/s) 94s (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 ... 117763 files and directories currently installed.) 94s Preparing to unpack .../gir1.2-glib-2.0_2.84.0-1_arm64.deb ... 94s Unpacking gir1.2-glib-2.0:arm64 (2.84.0-1) over (2.83.5-1) ... 94s Preparing to unpack .../libglib2.0-0t64_2.84.0-1_arm64.deb ... 94s Unpacking libglib2.0-0t64:arm64 (2.84.0-1) over (2.83.5-1) ... 94s Preparing to unpack .../libglib2.0-data_2.84.0-1_all.deb ... 94s Unpacking libglib2.0-data (2.84.0-1) over (2.83.5-1) ... 94s Preparing to unpack .../htop_3.4.0-2_arm64.deb ... 94s Unpacking htop (3.4.0-2) over (3.4.0-1) ... 94s Setting up htop (3.4.0-2) ... 94s Setting up libglib2.0-0t64:arm64 (2.84.0-1) ... 94s No schema files found: doing nothing. 94s Setting up libglib2.0-data (2.84.0-1) ... 94s Setting up gir1.2-glib-2.0:arm64 (2.84.0-1) ... 94s Processing triggers for man-db (2.13.0-1) ... 95s Processing triggers for libc-bin (2.41-1ubuntu1) ... 95s Reading package lists... 96s Building dependency tree... 96s Reading state information... 96s Solving dependencies... 97s 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 97s autopkgtest [09:21:04]: upgrading testbed (apt dist-upgrade and autopurge) 97s Reading package lists... 98s Building dependency tree... 98s Reading state information... 99s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 99s Starting 2 pkgProblemResolver with broken count: 0 99s Done 101s Entering ResolveByKeep 101s 101s Calculating upgrade... 102s The following packages will be upgraded: 102s python3-urllib3 102s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 102s Need to get 94.1 kB of archives. 102s After this operation, 0 B of additional disk space will be used. 102s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-urllib3 all 2.3.0-2 [94.1 kB] 103s Fetched 94.1 kB in 0s (332 kB/s) 103s (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 ... 117763 files and directories currently installed.) 103s Preparing to unpack .../python3-urllib3_2.3.0-2_all.deb ... 103s Unpacking python3-urllib3 (2.3.0-2) over (2.3.0-1) ... 103s Setting up python3-urllib3 (2.3.0-2) ... 104s Reading package lists... 104s Building dependency tree... 104s Reading state information... 105s Starting pkgProblemResolver with broken count: 0 105s Starting 2 pkgProblemResolver with broken count: 0 105s Done 105s Solving dependencies... 106s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 109s autopkgtest [09:21:16]: testbed running kernel: Linux 6.14.0-7-generic #7-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 28 11:47:29 UTC 2025 109s autopkgtest [09:21:16]: @@@@@@@@@@@@@@@@@@@@ apt-source pydiscovergy 111s Get:1 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (dsc) [2460 B] 111s Get:2 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (tar) [46.6 kB] 111s Get:3 http://ftpmaster.internal/ubuntu plucky/universe pydiscovergy 3.1.0-1 (diff) [2548 B] 111s gpgv: Signature made Thu Feb 13 15:28:46 2025 UTC 111s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 111s gpgv: Can't check signature: No public key 111s dpkg-source: warning: cannot verify inline signature for ./pydiscovergy_3.1.0-1.dsc: no acceptable signature found 111s autopkgtest [09:21:18]: testing package pydiscovergy version 3.1.0-1 111s autopkgtest [09:21:18]: build not needed 112s autopkgtest [09:21:19]: test run-tests: preparing testbed 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 112s Starting pkgProblemResolver with broken count: 0 112s Starting 2 pkgProblemResolver with broken count: 0 113s Done 113s The following NEW packages will be installed: 113s python3-all python3-anyio python3-async-generator python3-authlib 113s python3-click python3-h11 python3-httpcore python3-httpx python3-iniconfig 113s python3-mashumaro python3-msgpack python3-orjson python3-packaging 113s python3-pluggy python3-pycryptodome python3-pydiscovergy python3-pytest 113s python3-pytest-asyncio python3-pytest-httpx python3-respx python3-sniffio 113s python3-tomli python3-tomli-w 113s 0 upgraded, 23 newly installed, 0 to remove and 0 not upgraded. 113s Need to get 2500 kB of archives. 113s After this operation, 12.7 MB of additional disk space will be used. 113s Get:1 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-all arm64 3.13.2-2 [886 B] 113s Get:2 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-sniffio all 1.3.1-1 [7262 B] 113s Get:3 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-anyio all 4.8.0-2 [63.4 kB] 114s Get:4 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-async-generator all 1.10-4 [17.5 kB] 114s Get:5 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pycryptodome arm64 3.20.0+dfsg-3build1 [1093 kB] 114s Get:6 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-authlib all 1.5.1-1 [116 kB] 114s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-click all 8.2.0+0.really.8.1.8-1 [80.0 kB] 114s Get:8 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-h11 all 0.14.0-1 [51.1 kB] 114s Get:9 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-httpcore all 1.0.7-1 [38.8 kB] 114s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 python3-httpx all 0.28.1-1 [59.4 kB] 114s Get:11 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 114s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-msgpack arm64 1.0.3-3build4 [82.7 kB] 114s Get:13 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-orjson arm64 3.10.7-2build1 [267 kB] 114s Get:14 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-tomli arm64 2.2.1-2build1 [121 kB] 114s Get:15 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-tomli-w all 1.0.0-3 [7342 B] 114s Get:16 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-mashumaro all 3.15-1 [89.4 kB] 114s Get:17 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.2-1 [51.5 kB] 114s Get:18 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 114s Get:19 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pydiscovergy all 3.1.0-1 [12.6 kB] 114s Get:20 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.4-1 [252 kB] 114s Get:21 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest-asyncio all 0.25.1-1 [17.0 kB] 114s Get:22 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 python3-pytest-httpx all 0.35.0-1 [24.0 kB] 114s Get:23 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-respx all 0.21.1-2 [21.0 kB] 114s Fetched 2500 kB in 1s (3087 kB/s) 114s Selecting previously unselected package python3-all. 115s (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 ... 117763 files and directories currently installed.) 115s Preparing to unpack .../00-python3-all_3.13.2-2_arm64.deb ... 115s Unpacking python3-all (3.13.2-2) ... 115s Selecting previously unselected package python3-sniffio. 115s Preparing to unpack .../01-python3-sniffio_1.3.1-1_all.deb ... 115s Unpacking python3-sniffio (1.3.1-1) ... 115s Selecting previously unselected package python3-anyio. 115s Preparing to unpack .../02-python3-anyio_4.8.0-2_all.deb ... 115s Unpacking python3-anyio (4.8.0-2) ... 115s Selecting previously unselected package python3-async-generator. 115s Preparing to unpack .../03-python3-async-generator_1.10-4_all.deb ... 115s Unpacking python3-async-generator (1.10-4) ... 115s Selecting previously unselected package python3-pycryptodome. 115s Preparing to unpack .../04-python3-pycryptodome_3.20.0+dfsg-3build1_arm64.deb ... 115s Unpacking python3-pycryptodome (3.20.0+dfsg-3build1) ... 115s Selecting previously unselected package python3-authlib. 115s Preparing to unpack .../05-python3-authlib_1.5.1-1_all.deb ... 115s Unpacking python3-authlib (1.5.1-1) ... 115s Selecting previously unselected package python3-click. 115s Preparing to unpack .../06-python3-click_8.2.0+0.really.8.1.8-1_all.deb ... 115s Unpacking python3-click (8.2.0+0.really.8.1.8-1) ... 115s Selecting previously unselected package python3-h11. 115s Preparing to unpack .../07-python3-h11_0.14.0-1_all.deb ... 115s Unpacking python3-h11 (0.14.0-1) ... 115s Selecting previously unselected package python3-httpcore. 115s Preparing to unpack .../08-python3-httpcore_1.0.7-1_all.deb ... 115s Unpacking python3-httpcore (1.0.7-1) ... 115s Selecting previously unselected package python3-httpx. 115s Preparing to unpack .../09-python3-httpx_0.28.1-1_all.deb ... 115s Unpacking python3-httpx (0.28.1-1) ... 115s Selecting previously unselected package python3-iniconfig. 115s Preparing to unpack .../10-python3-iniconfig_1.1.1-2_all.deb ... 115s Unpacking python3-iniconfig (1.1.1-2) ... 115s Selecting previously unselected package python3-msgpack. 115s Preparing to unpack .../11-python3-msgpack_1.0.3-3build4_arm64.deb ... 115s Unpacking python3-msgpack (1.0.3-3build4) ... 115s Selecting previously unselected package python3-orjson. 115s Preparing to unpack .../12-python3-orjson_3.10.7-2build1_arm64.deb ... 115s Unpacking python3-orjson (3.10.7-2build1) ... 115s Selecting previously unselected package python3-tomli. 115s Preparing to unpack .../13-python3-tomli_2.2.1-2build1_arm64.deb ... 115s Unpacking python3-tomli (2.2.1-2build1) ... 115s Selecting previously unselected package python3-tomli-w. 115s Preparing to unpack .../14-python3-tomli-w_1.0.0-3_all.deb ... 115s Unpacking python3-tomli-w (1.0.0-3) ... 115s Selecting previously unselected package python3-mashumaro. 115s Preparing to unpack .../15-python3-mashumaro_3.15-1_all.deb ... 115s Unpacking python3-mashumaro (3.15-1) ... 115s Selecting previously unselected package python3-packaging. 115s Preparing to unpack .../16-python3-packaging_24.2-1_all.deb ... 115s Unpacking python3-packaging (24.2-1) ... 115s Selecting previously unselected package python3-pluggy. 115s Preparing to unpack .../17-python3-pluggy_1.5.0-1_all.deb ... 115s Unpacking python3-pluggy (1.5.0-1) ... 115s Selecting previously unselected package python3-pydiscovergy. 115s Preparing to unpack .../18-python3-pydiscovergy_3.1.0-1_all.deb ... 115s Unpacking python3-pydiscovergy (3.1.0-1) ... 115s Selecting previously unselected package python3-pytest. 115s Preparing to unpack .../19-python3-pytest_8.3.4-1_all.deb ... 115s Unpacking python3-pytest (8.3.4-1) ... 116s Selecting previously unselected package python3-pytest-asyncio. 116s Preparing to unpack .../20-python3-pytest-asyncio_0.25.1-1_all.deb ... 116s Unpacking python3-pytest-asyncio (0.25.1-1) ... 116s Selecting previously unselected package python3-pytest-httpx. 116s Preparing to unpack .../21-python3-pytest-httpx_0.35.0-1_all.deb ... 116s Unpacking python3-pytest-httpx (0.35.0-1) ... 116s Selecting previously unselected package python3-respx. 116s Preparing to unpack .../22-python3-respx_0.21.1-2_all.deb ... 116s Unpacking python3-respx (0.21.1-2) ... 116s Setting up python3-iniconfig (1.1.1-2) ... 116s Setting up python3-sniffio (1.3.1-1) ... 116s Setting up python3-orjson (3.10.7-2build1) ... 116s Setting up python3-async-generator (1.10-4) ... 116s Setting up python3-tomli (2.2.1-2build1) ... 117s Setting up python3-anyio (4.8.0-2) ... 117s Setting up python3-pycryptodome (3.20.0+dfsg-3build1) ... 118s Setting up python3-all (3.13.2-2) ... 118s Setting up python3-click (8.2.0+0.really.8.1.8-1) ... 118s Setting up python3-packaging (24.2-1) ... 118s Setting up python3-h11 (0.14.0-1) ... 118s Setting up python3-pluggy (1.5.0-1) ... 118s Setting up python3-msgpack (1.0.3-3build4) ... 119s Setting up python3-tomli-w (1.0.0-3) ... 119s Setting up python3-authlib (1.5.1-1) ... 119s Setting up python3-httpcore (1.0.7-1) ... 119s Setting up python3-mashumaro (3.15-1) ... 120s Setting up python3-pytest (8.3.4-1) ... 120s Setting up python3-httpx (0.28.1-1) ... 120s Setting up python3-pytest-asyncio (0.25.1-1) ... 120s Setting up python3-pytest-httpx (0.35.0-1) ... 121s Setting up python3-pydiscovergy (3.1.0-1) ... 121s Setting up python3-respx (0.21.1-2) ... 121s Processing triggers for man-db (2.13.0-1) ... 122s autopkgtest [09:21:29]: test run-tests: [----------------------- 123s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. 123s 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" 123s 123s warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) 123s ============================= test session starts ============================== 123s platform linux -- Python 3.13.2, pytest-8.3.4, pluggy-1.5.0 -- /usr/bin/python3.13 123s cachedir: .pytest_cache 123s rootdir: /tmp/autopkgtest.cbo7qP/autopkgtest_tmp 123s plugins: httpx-0.35.0, anyio-4.8.0, typeguard-4.4.2, respx-0.21.1, asyncio-0.25.1 123s asyncio: mode=Mode.AUTO, asyncio_default_fixture_loop_scope=None 124s collecting ... collected 17 items / 1 deselected / 16 selected 124s 124s tests/test_discovergy.py::test_get_timeout PASSED [ 6%] 124s tests/test_discovergy.py::test_token_auth_expired FAILED [ 12%] 124s tests/test_discovergy.py::test_token_auth_expired ERROR [ 12%] 124s 124s ==================================== ERRORS ==================================== 124s _________________ ERROR at teardown of test_token_auth_expired _________________ 124s 124s request = > 124s 124s @pytest.fixture() 124s def respx_mock(request): 124s respx_marker = request.node.get_closest_marker("respx") 124s 124s mock_router: MockRouter = ( 124s respx.mock 124s if respx_marker is None 124s else cast(MockRouter, respx.mock(**respx_marker.kwargs)) 124s ) 124s 124s > with mock_router: 124s 124s /usr/lib/python3/dist-packages/respx/plugin.py:29: 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s /usr/lib/python3/dist-packages/respx/router.py:437: in __exit__ 124s self.stop(quiet=bool(exc_type is not None)) 124s /usr/lib/python3/dist-packages/respx/router.py:479: in stop 124s self.assert_all_called() 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s 124s self = 124s 124s def assert_all_called(self) -> None: 124s not_called_routes = [route for route in self.routes if not route.called] 124s > assert not_called_routes == [], "RESPX: some routes were not called!" 124s E AssertionError: RESPX: some routes were not called! 124s 124s /usr/lib/python3/dist-packages/respx/router.py:102: AssertionError 124s =================================== FAILURES =================================== 124s ___________________________ test_token_auth_expired ____________________________ 124s 124s respx_mock = 124s 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')) 124s 124s @pytest.mark.respx(base_url=API_BASE) 124s async def test_token_auth_expired( 124s respx_mock: MockRouter, 124s discovergy_token_mock: Discovergy, 124s ) -> None: 124s """Test if a error is raised when the access token is expired.""" 124s respx_mock.get("/test").respond(json={"key": "value"}) 124s 124s # check if AccessTokenExpired is raised when there was an HTTP status 401 124s with pytest.raises(AccessTokenExpired): 124s respx_mock.get("/test").respond(status_code=401) 124s > await discovergy_token_mock._get("/test") 124s 124s tests/test_discovergy.py:47: 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s /usr/lib/python3/dist-packages/pydiscovergy/discovergy.py:47: in _get 124s response = await client.get(url=API_BASE + path, params=params) 124s /usr/lib/python3/dist-packages/httpx/_client.py:1768: in get 124s return await self.request( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1540: in request 124s return await self.send(request, auth=auth, follow_redirects=follow_redirects) 124s /usr/lib/python3/dist-packages/httpx/_client.py:1629: in send 124s response = await self._send_handling_auth( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1657: in _send_handling_auth 124s response = await self._send_handling_redirects( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1694: in _send_handling_redirects 124s response = await self._send_single_request(request) 124s /usr/lib/python3/dist-packages/httpx/_client.py:1730: in _send_single_request 124s response = await transport.handle_async_request(request) 124s /usr/lib/python3/dist-packages/httpx/_transports/default.py:394: in handle_async_request 124s resp = await self._pool.handle_async_request(req) 124s /usr/lib/python3/dist-packages/respx/mocks.py:190: in amock 124s response = await cls._send_async_request( 124s /usr/lib/python3/dist-packages/respx/mocks.py:224: in _send_async_request 124s httpx_response = await cls.async_handler(httpx_request) 124s /usr/lib/python3/dist-packages/respx/mocks.py:136: in async_handler 124s raise assertion_error 124s /usr/lib/python3/dist-packages/respx/mocks.py:129: in async_handler 124s httpx_response = await router.async_handler(httpx_request) 124s /usr/lib/python3/dist-packages/respx/router.py:318: in async_handler 124s resolved = await self.aresolve(request) 124s /usr/lib/python3/dist-packages/respx/router.py:291: in aresolve 124s with self.resolver(request) as resolved: 124s /usr/lib/python3.13/contextlib.py:148: in __exit__ 124s next(self.gen) 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s 124s self = 124s request = 124s 124s @contextmanager 124s def resolver(self, request: httpx.Request) -> Generator[ResolvedRoute, None, None]: 124s resolved = ResolvedRoute() 124s 124s try: 124s yield resolved 124s 124s if resolved.route is None: 124s # Assert we always get a route match, if check is enabled 124s if self._assert_all_mocked: 124s > raise AllMockedAssertionError(f"RESPX: {request!r} not mocked!") 124s E respx.models.AllMockedAssertionError: RESPX: not mocked! 124s 124s /usr/lib/python3/dist-packages/respx/router.py:250: AllMockedAssertionError 124s =========================== short test summary info ============================ 124s FAILED tests/test_discovergy.py::test_token_auth_expired - respx.models.AllMo... 124s ERROR tests/test_discovergy.py::test_token_auth_expired - AssertionError: RES... 124s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 2 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 124s ============== 1 failed, 1 passed, 1 deselected, 1 error in 0.26s ============== 124s autopkgtest [09:21:31]: test run-tests: -----------------------] 125s run-tests FAIL non-zero exit status 1 125s autopkgtest [09:21:32]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 125s autopkgtest [09:21:32]: @@@@@@@@@@@@@@@@@@@@ summary 125s run-tests FAIL non-zero exit status 1 131s nova [W] Using flock in prodstack6-arm64 131s Creating nova instance adt-plucky-arm64-pydiscovergy-20250313-091927-juju-7f2275-prod-proposed-migration-environment-2-8b33b0aa-eccf-433c-9ebf-aae54c6a63aa from image adt/ubuntu-plucky-arm64-server-20250313.img (UUID 1e0d5b46-827c-482e-8813-f0c13efee277)... 131s nova [W] Timed out waiting for 9364aff7-bffe-46a0-997a-84cb9e6bf83b to get deleted.