0s autopkgtest [10:26:23]: starting date and time: 2024-11-11 10:26:23+0000 0s autopkgtest [10:26:23]: git checkout: 0acbae0a WIP show VirtSubproc stderr in real-time 0s autopkgtest [10:26:23]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ehatmxzm/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pytest-httpx --apt-upgrade python-glances-api --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pytest-httpx/0.33.0-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-s390x-3.secgroup --name adt-plucky-s390x-python-glances-api-20241111-102622-juju-7f2275-prod-proposed-migration-environment-2-56c5693a-b8c1-42d8-8076-80ec4233f95e --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration-s390x -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'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 101s autopkgtest [10:28:04]: testbed dpkg architecture: s390x 101s autopkgtest [10:28:04]: testbed apt version: 2.9.8 101s autopkgtest [10:28:04]: @@@@@@@@@@@@@@@@@@@@ test bed setup 102s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 102s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 102s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [913 kB] 102s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [91.3 kB] 103s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 103s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [101 kB] 103s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [638 kB] 103s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [16.6 kB] 103s Fetched 1855 kB in 1s (2306 kB/s) 103s Reading package lists... 105s Reading package lists... 105s Building dependency tree... 105s Reading state information... 105s Calculating upgrade... 105s The following packages will be upgraded: 105s libperl5.40 libpng16-16t64 libpython3.12-minimal libpython3.12-stdlib 105s libpython3.12t64 perl perl-base perl-modules-5.40 python3.12 python3.12-gdbm 105s python3.12-minimal 105s 11 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 105s Need to get 19.1 MB of archives. 105s After this operation, 16.4 kB of additional disk space will be used. 105s Get:1 http://ftpmaster.internal/ubuntu plucky/main s390x libperl5.40 s390x 5.40.0-7 [4985 kB] 106s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x perl s390x 5.40.0-7 [263 kB] 106s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x perl-base s390x 5.40.0-7 [1971 kB] 106s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x perl-modules-5.40 all 5.40.0-7 [3214 kB] 106s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12t64 s390x 3.12.7-3 [2507 kB] 106s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12 s390x 3.12.7-3 [661 kB] 106s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-stdlib s390x 3.12.7-3 [2064 kB] 107s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12-minimal s390x 3.12.7-3 [2391 kB] 107s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.12-minimal s390x 3.12.7-3 [834 kB] 107s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libpng16-16t64 s390x 1.6.44-2 [199 kB] 107s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x python3.12-gdbm s390x 3.12.7-3 [30.2 kB] 107s Fetched 19.1 MB in 2s (11.7 MB/s) 107s (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 ... 55519 files and directories currently installed.) 107s Preparing to unpack .../libperl5.40_5.40.0-7_s390x.deb ... 107s Unpacking libperl5.40:s390x (5.40.0-7) over (5.40.0-6) ... 107s Preparing to unpack .../perl_5.40.0-7_s390x.deb ... 107s Unpacking perl (5.40.0-7) over (5.40.0-6) ... 107s Preparing to unpack .../perl-base_5.40.0-7_s390x.deb ... 107s Unpacking perl-base (5.40.0-7) over (5.40.0-6) ... 107s Setting up perl-base (5.40.0-7) ... 107s (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 ... 55521 files and directories currently installed.) 107s Preparing to unpack .../0-perl-modules-5.40_5.40.0-7_all.deb ... 107s Unpacking perl-modules-5.40 (5.40.0-7) over (5.40.0-6) ... 108s Preparing to unpack .../1-libpython3.12t64_3.12.7-3_s390x.deb ... 108s Unpacking libpython3.12t64:s390x (3.12.7-3) over (3.12.7-2) ... 108s Preparing to unpack .../2-python3.12_3.12.7-3_s390x.deb ... 108s Unpacking python3.12 (3.12.7-3) over (3.12.7-2) ... 108s Preparing to unpack .../3-libpython3.12-stdlib_3.12.7-3_s390x.deb ... 108s Unpacking libpython3.12-stdlib:s390x (3.12.7-3) over (3.12.7-2) ... 108s Preparing to unpack .../4-python3.12-minimal_3.12.7-3_s390x.deb ... 108s Unpacking python3.12-minimal (3.12.7-3) over (3.12.7-2) ... 108s Preparing to unpack .../5-libpython3.12-minimal_3.12.7-3_s390x.deb ... 108s Unpacking libpython3.12-minimal:s390x (3.12.7-3) over (3.12.7-2) ... 108s Preparing to unpack .../6-libpng16-16t64_1.6.44-2_s390x.deb ... 108s Unpacking libpng16-16t64:s390x (1.6.44-2) over (1.6.44-1) ... 108s Preparing to unpack .../7-python3.12-gdbm_3.12.7-3_s390x.deb ... 108s Unpacking python3.12-gdbm (3.12.7-3) over (3.12.7-2) ... 108s Setting up python3.12-gdbm (3.12.7-3) ... 108s Setting up libpython3.12-minimal:s390x (3.12.7-3) ... 108s Setting up libpng16-16t64:s390x (1.6.44-2) ... 108s Setting up perl-modules-5.40 (5.40.0-7) ... 108s Setting up python3.12-minimal (3.12.7-3) ... 109s Setting up libpython3.12-stdlib:s390x (3.12.7-3) ... 109s Setting up python3.12 (3.12.7-3) ... 110s Setting up libpython3.12t64:s390x (3.12.7-3) ... 110s Setting up libperl5.40:s390x (5.40.0-7) ... 110s Setting up perl (5.40.0-7) ... 110s Processing triggers for systemd (256.5-2ubuntu4) ... 110s Processing triggers for man-db (2.12.1-3) ... 110s Processing triggers for libc-bin (2.40-1ubuntu3) ... 110s Reading package lists... 111s Building dependency tree... 111s Reading state information... 111s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 111s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 111s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 111s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 111s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 112s Reading package lists... 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 112s Calculating upgrade... 112s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 112s Reading package lists... 112s Building dependency tree... 112s Reading state information... 113s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s autopkgtest [10:28:18]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 115s autopkgtest [10:28:18]: @@@@@@@@@@@@@@@@@@@@ apt-source python-glances-api 117s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-glances-api 0.8.0-1 (dsc) [2405 B] 117s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-glances-api 0.8.0-1 (tar) [15.5 kB] 117s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-glances-api 0.8.0-1 (diff) [2488 B] 117s gpgv: Signature made Mon Sep 16 05:29:51 2024 UTC 117s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 117s gpgv: Can't check signature: No public key 117s dpkg-source: warning: cannot verify inline signature for ./python-glances-api_0.8.0-1.dsc: no acceptable signature found 117s autopkgtest [10:28:20]: testing package python-glances-api version 0.8.0-1 117s autopkgtest [10:28:20]: build not needed 117s autopkgtest [10:28:20]: test run-tests: preparing testbed 118s Reading package lists... 118s Building dependency tree... 118s Reading state information... 119s Starting pkgProblemResolver with broken count: 0 119s Starting 2 pkgProblemResolver with broken count: 0 119s Done 119s The following additional packages will be installed: 119s python3-all python3-anyio python3-async-generator python3-click 119s python3-colorama python3-glances-api python3-h11 python3-httpcore 119s python3-httpx python3-iniconfig python3-packaging python3-pluggy 119s python3-pytest python3-pytest-asyncio python3-pytest-httpx python3-sniffio 119s The following NEW packages will be installed: 119s autopkgtest-satdep python3-all python3-anyio python3-async-generator 119s python3-click python3-colorama python3-glances-api python3-h11 119s python3-httpcore python3-httpx python3-iniconfig python3-packaging 119s python3-pluggy python3-pytest python3-pytest-asyncio python3-pytest-httpx 119s python3-sniffio 119s 0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded. 119s Need to get 706 kB/707 kB of archives. 119s After this operation, 3685 kB of additional disk space will be used. 119s Get:1 /tmp/autopkgtest.APBODN/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [744 B] 119s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x python3-all s390x 3.12.6-0ubuntu1 [890 B] 119s Get:3 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-sniffio all 1.3.1-1 [7262 B] 119s Get:4 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-anyio all 4.4.0-1 [57.4 kB] 119s Get:5 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-async-generator all 1.10-4 [17.5 kB] 119s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x python3-colorama all 0.4.6-4 [32.1 kB] 119s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x python3-click all 8.1.7-2 [79.5 kB] 119s Get:8 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-h11 all 0.14.0-1 [51.1 kB] 119s Get:9 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-httpcore all 1.0.4-1 [38.8 kB] 119s Get:10 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-httpx all 0.26.0-2 [61.3 kB] 119s Get:11 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-glances-api all 0.8.0-1 [6618 B] 119s Get:12 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 119s Get:13 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 119s Get:14 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 119s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 119s Get:16 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest-asyncio all 0.20.3-1.3 [10.7 kB] 119s Get:17 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x python3-pytest-httpx all 0.33.0-1 [23.2 kB] 120s Fetched 706 kB in 1s (1243 kB/s) 120s Selecting previously unselected package python3-all. 120s (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 ... 55521 files and directories currently installed.) 120s Preparing to unpack .../00-python3-all_3.12.6-0ubuntu1_s390x.deb ... 120s Unpacking python3-all (3.12.6-0ubuntu1) ... 120s Selecting previously unselected package python3-sniffio. 120s Preparing to unpack .../01-python3-sniffio_1.3.1-1_all.deb ... 120s Unpacking python3-sniffio (1.3.1-1) ... 120s Selecting previously unselected package python3-anyio. 120s Preparing to unpack .../02-python3-anyio_4.4.0-1_all.deb ... 120s Unpacking python3-anyio (4.4.0-1) ... 120s Selecting previously unselected package python3-async-generator. 120s Preparing to unpack .../03-python3-async-generator_1.10-4_all.deb ... 120s Unpacking python3-async-generator (1.10-4) ... 120s Selecting previously unselected package python3-colorama. 120s Preparing to unpack .../04-python3-colorama_0.4.6-4_all.deb ... 120s Unpacking python3-colorama (0.4.6-4) ... 120s Selecting previously unselected package python3-click. 120s Preparing to unpack .../05-python3-click_8.1.7-2_all.deb ... 120s Unpacking python3-click (8.1.7-2) ... 120s Selecting previously unselected package python3-h11. 120s Preparing to unpack .../06-python3-h11_0.14.0-1_all.deb ... 120s Unpacking python3-h11 (0.14.0-1) ... 120s Selecting previously unselected package python3-httpcore. 120s Preparing to unpack .../07-python3-httpcore_1.0.4-1_all.deb ... 120s Unpacking python3-httpcore (1.0.4-1) ... 120s Selecting previously unselected package python3-httpx. 120s Preparing to unpack .../08-python3-httpx_0.26.0-2_all.deb ... 120s Unpacking python3-httpx (0.26.0-2) ... 120s Selecting previously unselected package python3-glances-api. 120s Preparing to unpack .../09-python3-glances-api_0.8.0-1_all.deb ... 120s Unpacking python3-glances-api (0.8.0-1) ... 120s Selecting previously unselected package python3-iniconfig. 120s Preparing to unpack .../10-python3-iniconfig_1.1.1-2_all.deb ... 120s Unpacking python3-iniconfig (1.1.1-2) ... 120s Selecting previously unselected package python3-packaging. 120s Preparing to unpack .../11-python3-packaging_24.1-1_all.deb ... 120s Unpacking python3-packaging (24.1-1) ... 120s Selecting previously unselected package python3-pluggy. 120s Preparing to unpack .../12-python3-pluggy_1.5.0-1_all.deb ... 120s Unpacking python3-pluggy (1.5.0-1) ... 120s Selecting previously unselected package python3-pytest. 120s Preparing to unpack .../13-python3-pytest_8.3.3-1_all.deb ... 120s Unpacking python3-pytest (8.3.3-1) ... 120s Selecting previously unselected package python3-pytest-asyncio. 120s Preparing to unpack .../14-python3-pytest-asyncio_0.20.3-1.3_all.deb ... 120s Unpacking python3-pytest-asyncio (0.20.3-1.3) ... 120s Selecting previously unselected package python3-pytest-httpx. 120s Preparing to unpack .../15-python3-pytest-httpx_0.33.0-1_all.deb ... 120s Unpacking python3-pytest-httpx (0.33.0-1) ... 120s Selecting previously unselected package autopkgtest-satdep. 120s Preparing to unpack .../16-1-autopkgtest-satdep.deb ... 120s Unpacking autopkgtest-satdep (0) ... 120s Setting up python3-iniconfig (1.1.1-2) ... 120s Setting up python3-sniffio (1.3.1-1) ... 120s Setting up python3-async-generator (1.10-4) ... 120s Setting up python3-anyio (4.4.0-1) ... 120s Setting up python3-colorama (0.4.6-4) ... 120s Setting up python3-all (3.12.6-0ubuntu1) ... 120s Setting up python3-click (8.1.7-2) ... 120s Setting up python3-packaging (24.1-1) ... 120s Setting up python3-h11 (0.14.0-1) ... 120s Setting up python3-pluggy (1.5.0-1) ... 121s Setting up python3-httpcore (1.0.4-1) ... 121s Setting up python3-pytest (8.3.3-1) ... 121s Setting up python3-httpx (0.26.0-2) ... 121s Setting up python3-pytest-asyncio (0.20.3-1.3) ... 121s Setting up python3-glances-api (0.8.0-1) ... 121s Setting up python3-pytest-httpx (0.33.0-1) ... 121s Setting up autopkgtest-satdep (0) ... 121s Processing triggers for man-db (2.12.1-3) ... 123s (Reading database ... 55997 files and directories currently installed.) 123s Removing autopkgtest-satdep (0) ... 124s autopkgtest [10:28:27]: test run-tests: [----------------------- 124s ============================= test session starts ============================== 124s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.12 124s cachedir: .pytest_cache 124s rootdir: /tmp/autopkgtest.APBODN/autopkgtest_tmp 124s plugins: httpx-0.33.0, typeguard-4.4.1, anyio-4.4.0, asyncio-0.20.3 124s asyncio: mode=Mode.STRICT 124s collecting ... collected 7 items 124s 124s tests/test_responses.py::test_non_existing_endpoint PASSED [ 14%] 124s tests/test_responses.py::test_plugins_list PASSED [ 28%] 124s tests/test_responses.py::test_exisiting_endpoint FAILED [ 42%] 124s tests/test_responses.py::test_exisiting_endpoint ERROR [ 42%] 124s 124s ==================================== ERRORS ==================================== 124s _________________ ERROR at teardown of test_exisiting_endpoint _________________ 124s 124s monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x3ffb50e2180> 124s request = > 124s 124s @pytest.fixture 124s def httpx_mock( 124s monkeypatch: MonkeyPatch, 124s request: FixtureRequest, 124s ) -> Generator[HTTPXMock, None, None]: 124s options = {} 124s for marker in request.node.iter_markers("httpx_mock"): 124s options = marker.kwargs | options 124s __tracebackhide__ = methodcaller("errisinstance", TypeError) 124s options = _HTTPXMockOptions(**options) 124s 124s mock = HTTPXMock(options) 124s 124s # Mock synchronous requests 124s real_handle_request = httpx.HTTPTransport.handle_request 124s 124s def mocked_handle_request( 124s transport: httpx.HTTPTransport, request: httpx.Request 124s ) -> httpx.Response: 124s if options.should_mock(request): 124s return mock._handle_request(transport, request) 124s return real_handle_request(transport, request) 124s 124s monkeypatch.setattr( 124s httpx.HTTPTransport, 124s "handle_request", 124s mocked_handle_request, 124s ) 124s 124s # Mock asynchronous requests 124s real_handle_async_request = httpx.AsyncHTTPTransport.handle_async_request 124s 124s async def mocked_handle_async_request( 124s transport: httpx.AsyncHTTPTransport, request: httpx.Request 124s ) -> httpx.Response: 124s if options.should_mock(request): 124s return await mock._handle_async_request(transport, request) 124s return await real_handle_async_request(transport, request) 124s 124s monkeypatch.setattr( 124s httpx.AsyncHTTPTransport, 124s "handle_async_request", 124s mocked_handle_async_request, 124s ) 124s 124s yield mock 124s try: 124s > mock._assert_options() 124s 124s /usr/lib/python3/dist-packages/pytest_httpx/__init__.py:67: 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s 124s self = 124s 124s def _assert_options(self) -> None: 124s if self._options.assert_all_responses_were_requested: 124s callbacks_not_executed = [ 124s matcher for matcher, _ in self._callbacks if not matcher.nb_calls 124s ] 124s matchers_description = "\n".join( 124s [f"- {matcher}" for matcher in callbacks_not_executed] 124s ) 124s 124s assert not callbacks_not_executed, ( 124s "The following responses are mocked but not requested:\n" 124s f"{matchers_description}\n" 124s "\n" 124s "If this is on purpose, refer to https://github.com/Colin-b/pytest_httpx/blob/master/README.md#allow-to-register-more-responses-than-what-will-be-requested" 124s ) 124s 124s if self._options.assert_all_requests_were_expected: 124s requests_description = "\n".join( 124s [ 124s f"- {request.method} request on {request.url}" 124s for request in self._requests_not_matched 124s ] 124s ) 124s > assert not self._requests_not_matched, ( 124s f"The following requests were not expected:\n" 124s f"{requests_description}\n" 124s "\n" 124s "If this is on purpose, refer to https://github.com/Colin-b/pytest_httpx/blob/master/README.md#allow-to-not-register-responses-for-every-request" 124s ) 124s E AssertionError: The following requests were not expected: 124s E - GET request on http://localhost:61208/api/3/pluginslist 124s E 124s E If this is on purpose, refer to https://github.com/Colin-b/pytest_httpx/blob/master/README.md#allow-to-not-register-responses-for-every-request 124s 124s /usr/lib/python3/dist-packages/pytest_httpx/_httpx_mock.py:329: AssertionError 124s =================================== FAILURES =================================== 124s ___________________________ test_exisiting_endpoint ____________________________ 124s 124s self = , endpoint = 'pluginslist' 124s 124s async def get_data(self, endpoint: str) -> None: 124s """Retrieve the data.""" 124s url = f"{self.url}/{endpoint}" 124s 124s httpx_client = ( 124s self.httpx_client 124s if self.httpx_client 124s else httpx.AsyncClient(verify=self.verify_ssl) 124s ) 124s 124s try: 124s async with httpx_client as client: 124s if self.password is None: 124s > response = await client.get(url) 124s 124s /usr/lib/python3/dist-packages/glances_api/__init__.py:59: 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s /usr/lib/python3/dist-packages/httpx/_client.py:1786: in get 124s return await self.request( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1559: in request 124s return await self.send(request, auth=auth, follow_redirects=follow_redirects) 124s /usr/lib/python3/dist-packages/httpx/_client.py:1646: in send 124s response = await self._send_handling_auth( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1674: in _send_handling_auth 124s response = await self._send_handling_redirects( 124s /usr/lib/python3/dist-packages/httpx/_client.py:1711: in _send_handling_redirects 124s response = await self._send_single_request(request) 124s /usr/lib/python3/dist-packages/httpx/_client.py:1748: in _send_single_request 124s response = await transport.handle_async_request(request) 124s /usr/lib/python3/dist-packages/pytest_httpx/__init__.py:56: in mocked_handle_async_request 124s return await mock._handle_async_request(transport, request) 124s /usr/lib/python3/dist-packages/pytest_httpx/_httpx_mock.py:178: in _handle_async_request 124s self._request_not_matched(real_transport, request) 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s 124s self = 124s real_transport = 124s request = 124s 124s def _request_not_matched( 124s self, 124s real_transport: Union[httpx.AsyncHTTPTransport, httpx.HTTPTransport], 124s request: httpx.Request, 124s ) -> NoReturn: 124s self._requests_not_matched.append(request) 124s > raise httpx.TimeoutException( 124s self._explain_that_no_response_was_found(real_transport, request), 124s request=request, 124s ) 124s E httpx.TimeoutException: No response can be found for GET request on http://localhost:61208/api/3/pluginslist amongst: 124s E - Already matched any request 124s E 124s E If you wanted to reuse an already matched response instead of registering it again, refer to https://github.com/Colin-b/pytest_httpx/blob/master/README.md#allow-to-register-a-response-for-more-than-one-request 124s 124s /usr/lib/python3/dist-packages/pytest_httpx/_httpx_mock.py:186: TimeoutException 124s 124s The above exception was the direct cause of the following exception: 124s 124s httpx_mock = 124s 124s @pytest.mark.asyncio 124s async def test_exisiting_endpoint(httpx_mock: HTTPXMock) -> None: 124s """Test the a valid endpoint.""" 124s httpx_mock.add_response(json=RESPONSE) 124s 124s client = Glances() 124s > await client.get_metrics("cpu") 124s 124s tests/test_responses.py:412: 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s /usr/lib/python3/dist-packages/glances_api/__init__.py:95: in get_metrics 124s await self.get_data("pluginslist") 124s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 124s 124s self = , endpoint = 'pluginslist' 124s 124s async def get_data(self, endpoint: str) -> None: 124s """Retrieve the data.""" 124s url = f"{self.url}/{endpoint}" 124s 124s httpx_client = ( 124s self.httpx_client 124s if self.httpx_client 124s else httpx.AsyncClient(verify=self.verify_ssl) 124s ) 124s 124s try: 124s async with httpx_client as client: 124s if self.password is None: 124s response = await client.get(url) 124s elif self.username is not None: 124s response = await client.get( 124s url, auth=(self.username, self.password) 124s ) 124s else: 124s raise ValueError("username and password must be provided.") 124s except (httpx.ConnectError, httpx.TimeoutException) as err: 124s > raise exceptions.GlancesApiConnectionError( 124s f"Connection to {url} failed" 124s ) from err 124s E glances_api.exceptions.GlancesApiConnectionError: Connection to http://localhost:61208/api/3/pluginslist failed 124s 124s /usr/lib/python3/dist-packages/glances_api/__init__.py:67: GlancesApiConnectionError 124s =========================== short test summary info ============================ 124s FAILED tests/test_responses.py::test_exisiting_endpoint - glances_api.excepti... 124s ERROR tests/test_responses.py::test_exisiting_endpoint - AssertionError: The ... 124s !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 2 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! 124s ===================== 1 failed, 2 passed, 1 error in 0.22s ===================== 125s autopkgtest [10:28:28]: test run-tests: -----------------------] 125s autopkgtest [10:28:28]: test run-tests: - - - - - - - - - - results - - - - - - - - - - 125s run-tests FAIL non-zero exit status 1 125s autopkgtest [10:28:28]: @@@@@@@@@@@@@@@@@@@@ summary 125s run-tests FAIL non-zero exit status 1 138s virt: nova [W] Using flock in prodstack6-s390x 138s virt: flock: timeout while waiting to get lock 138s virt: Creating nova instance adt-plucky-s390x-python-glances-api-20241111-102622-juju-7f2275-prod-proposed-migration-environment-2-56c5693a-b8c1-42d8-8076-80ec4233f95e from image adt/ubuntu-plucky-s390x-server-20241110.img (UUID 29703a40-b183-4ea3-8076-92820c0513a2)...