>>> py3-pyzabbix: Building community/py3-pyzabbix 1.2.1-r2 (using abuild 3.11.0_rc13-r0) started Tue, 25 Apr 2023 07:29:32 +0000 >>> py3-pyzabbix: Checking sanity of /home/buildozer/aports/community/py3-pyzabbix/APKBUILD... >>> py3-pyzabbix: Analyzing dependencies... >>> py3-pyzabbix: Installing for build: build-base python3 py3-requests py3-semantic-version python3-dev py3-setuptools py3-pytest py3-httpretty py3-requests-mock (1/45) Installing libbz2 (1.0.8-r5) (2/45) Installing libffi (3.4.4-r2) (3/45) Installing gdbm (1.23-r1) (4/45) Installing xz-libs (5.4.2-r1) (5/45) Installing mpdecimal (2.5.1-r2) (6/45) Installing libpanelw (6.4_p20230401-r6) (7/45) Installing readline (8.2.1-r1) (8/45) Installing sqlite-libs (3.41.2-r2) (9/45) Installing python3 (3.11.3-r10) (10/45) Installing python3-pycache-pyc0 (3.11.3-r10) (11/45) Installing pyc (0.1-r0) (12/45) Installing python3-pyc (3.11.3-r10) (13/45) Installing py3-certifi (2022.12.7-r2) (14/45) Installing py3-certifi-pyc (2022.12.7-r2) (15/45) Installing py3-charset-normalizer (3.1.0-r1) (16/45) Installing py3-charset-normalizer-pyc (3.1.0-r1) (17/45) Installing py3-idna (3.4-r4) (18/45) Installing py3-idna-pyc (3.4-r4) (19/45) Installing py3-urllib3 (1.26.15-r1) (20/45) Installing py3-urllib3-pyc (1.26.15-r1) (21/45) Installing py3-requests (2.28.2-r1) (22/45) Installing py3-requests-pyc (2.28.2-r1) (23/45) Installing py3-semantic-version (2.10.0-r1) (24/45) Installing python3-dev (3.11.3-r10) (25/45) Installing py3-parsing (3.0.9-r2) (26/45) Installing py3-parsing-pyc (3.0.9-r2) (27/45) Installing py3-packaging (23.1-r1) (28/45) Installing py3-packaging-pyc (23.1-r1) (29/45) Installing py3-setuptools (67.7.2-r0) (30/45) Installing py3-setuptools-pyc (67.7.2-r0) (31/45) Installing py3-iniconfig (1.1.1-r6) (32/45) Installing py3-iniconfig-pyc (1.1.1-r6) (33/45) Installing py3-pluggy (1.0.0-r3) (34/45) Installing py3-pluggy-pyc (1.0.0-r3) (35/45) Installing py3-py (1.11.0-r2) (36/45) Installing py3-py-pyc (1.11.0-r2) (37/45) Installing py3-pytest (7.3.1-r1) (38/45) Installing py3-pytest-pyc (7.3.1-r1) (39/45) Installing py3-httpretty (1.1.4-r2) (40/45) Installing py3-httpretty-pyc (1.1.4-r2) (41/45) Installing py3-six (1.16.0-r6) (42/45) Installing py3-six-pyc (1.16.0-r6) (43/45) Installing py3-requests-mock (1.10.0-r2) (44/45) Installing py3-requests-mock-pyc (1.10.0-r2) (45/45) Installing .makedepends-py3-pyzabbix (20230425.072932) Executing busybox-1.36.0-r8.trigger OK: 396 MiB in 143 packages >>> py3-pyzabbix: Cleaning up srcdir >>> py3-pyzabbix: Cleaning up pkgdir >>> py3-pyzabbix: Fetching https://distfiles.alpinelinux.org/distfiles/v3.18/py3-pyzabbix-1.2.1.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 18254 100 18254 0 0 211k 0 --:--:-- --:--:-- --:--:-- 209k >>> py3-pyzabbix: Fetching https://distfiles.alpinelinux.org/distfiles/v3.18/py3-pyzabbix-1.2.1.tar.gz >>> py3-pyzabbix: Checking sha512sums... py3-pyzabbix-1.2.1.tar.gz: OK >>> py3-pyzabbix: Unpacking /var/cache/distfiles/v3.18/py3-pyzabbix-1.2.1.tar.gz... running build running build_py creating build creating build/lib creating build/lib/pyzabbix copying pyzabbix/__init__.py -> build/lib/pyzabbix copying pyzabbix/api.py -> build/lib/pyzabbix copying pyzabbix/py.typed -> build/lib/pyzabbix ============================= test session starts ============================== platform linux -- Python 3.11.3, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /home/buildozer/aports/community/py3-pyzabbix/src/pyzabbix-1.2.1 configfile: pyproject.toml plugins: requests-mock-1.10.0 collecting ... collected 22 items tests/api_test.py::test_server_url_correction[http://example.com-http://example.com/api_jsonrpc.php] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php PASSED [ 4%] tests/api_test.py::test_server_url_correction[http://example.com/-http://example.com/api_jsonrpc.php] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php PASSED [ 9%] tests/api_test.py::test_server_url_correction[http://example.com/base-http://example.com/base/api_jsonrpc.php] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/base/api_jsonrpc.php PASSED [ 13%] tests/api_test.py::test_server_url_correction[http://example.com/base/-http://example.com/base/api_jsonrpc.php] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/base/api_jsonrpc.php PASSED [ 18%] tests/api_test.py::test_login -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'mylogin', 'password': 'mypass'}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 22%] tests/api_test.py::test_login_with_context -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'mylogin', 'password': 'mypass'}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 2, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 27%] tests/api_test.py::test_login_with_version_detect[4.0.0] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 4.0.0 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 3, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 31%] tests/api_test.py::test_login_with_version_detect[5.4.0] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '5.4.0', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 5.4.0 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 3, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 36%] tests/api_test.py::test_login_with_version_detect[6.2.0] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.0', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 6.2.0 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 3, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 40%] tests/api_test.py::test_login_with_version_detect[6.2.0beta1] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.0beta1', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 6.2.0b1 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 3, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 45%] tests/api_test.py::test_login_with_version_detect[6.2.2alpha1] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.2alpha1', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 6.2.2a1 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.checkAuthentication', 'params': {'sessionid': '0424bd59b807674191e7d77572075f33'}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.logout', 'params': {}, 'id': 3, 'auth': '0424bd59b807674191e7d77572075f33'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '0424bd59b807674191e7d77572075f33', 'id': 0} PASSED [ 50%] tests/api_test.py::test_attr_syntax_kwargs -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'host.get', 'params': {'hostids': 5}, 'id': 0, 'auth': 'some_auth_key'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': [{'hostid': 1234}], 'id': 0} PASSED [ 54%] tests/api_test.py::test_attr_syntax_args -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'host.delete', 'params': ('22982', '22986'), 'id': 0, 'auth': 'some_auth_key'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': {'itemids': ['22982', '22986']}, 'id': 0} PASSED [ 59%] tests/api_test.py::test_attr_syntax_args_and_kwargs_raises -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php PASSED [ 63%] tests/api_test.py::test_detecting_version[4.0.0] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 4.0.0 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0', 'id': 0} PASSED [ 68%] tests/api_test.py::test_detecting_version[4.0.0rc1] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0rc1', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 4.0.0rc1 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0rc1', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '4.0.0rc1', 'id': 0} PASSED [ 72%] tests/api_test.py::test_detecting_version[6.2.0beta1] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.0beta1', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 6.2.0b1 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.0beta1', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.0beta1', 'id': 0} PASSED [ 77%] tests/api_test.py::test_detecting_version[6.2.2alpha1] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.2alpha1', 'id': 0} INFO pyzabbix.api:api.py:121 Zabbix API version is: 6.2.2a1 DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'user.login', 'params': {'username': 'mylogin', 'password': 'mypass'}, 'id': 1} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.2alpha1', 'id': 0} DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 2} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': '6.2.2alpha1', 'id': 0} PASSED [ 81%] tests/api_test.py::test_error_response[None] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'host.get', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'Invalid params.'}, 'id': 0} PASSED [ 86%] tests/api_test.py::test_error_response[No groups for host "Linux server".] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'host.get', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'error': {'code': -32602, 'message': 'Invalid params.', 'data': 'No groups for host "Linux server".'}, 'id': 0} PASSED [ 90%] tests/api_test.py::test_empty_response -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'apiinfo.version', 'params': {}, 'id': 0} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 PASSED [ 95%] tests/api_test.py::test_calls[host-get-params0-expected0] -------------------------------- live log call --------------------------------- INFO pyzabbix.api:api.py:85 JSON-RPC Server Endpoint: http://example.com/api_jsonrpc.php DEBUG pyzabbix.api:api.py:207 Sending: {'jsonrpc': '2.0', 'method': 'host.get', 'params': {}, 'id': 0, 'auth': 'some_auth_key'} DEBUG requests_mock.adapter:adapter.py:256 POST http://example.com/api_jsonrpc.php 200 DEBUG pyzabbix.api:api.py:209 Response Code: 200 DEBUG pyzabbix.api:api.py:225 Response Body: {'jsonrpc': '2.0', 'result': [{'hostid': 1234}], 'id': 0} PASSED [100%] ============================== 22 passed in 0.09s ============================== >>> py3-pyzabbix: Entering fakeroot... running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer, pypa/build or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /home/buildozer/aports/community/py3-pyzabbix/pkg creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11 creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix copying build/lib/pyzabbix/__init__.py -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix copying build/lib/pyzabbix/api.py -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix copying build/lib/pyzabbix/py.typed -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix byte-compiling /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix/__init__.py to __init__.cpython-311.pyc byte-compiling /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix/api.py to api.cpython-311.pyc running install_egg_info running egg_info creating pyzabbix.egg-info writing pyzabbix.egg-info/PKG-INFO writing dependency_links to pyzabbix.egg-info/dependency_links.txt writing requirements to pyzabbix.egg-info/requires.txt writing top-level names to pyzabbix.egg-info/top_level.txt writing manifest file 'pyzabbix.egg-info/SOURCES.txt' reading manifest file 'pyzabbix.egg-info/SOURCES.txt' writing manifest file 'pyzabbix.egg-info/SOURCES.txt' Copying pyzabbix.egg-info to /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix-1.2.1-py3.11.egg-info running install_scripts >>> py3-pyzabbix-pyc*: Running split function pyc... '/home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.11/site-packages/pyzabbix/__pycache__' -> '/home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix-pyc/usr/lib/python3.11/site-packages/pyzabbix/__pycache__' >>> py3-pyzabbix-pyc*: Preparing subpackage py3-pyzabbix-pyc... >>> py3-pyzabbix-pyc*: Running postcheck for py3-pyzabbix-pyc >>> py3-pyzabbix*: Running postcheck for py3-pyzabbix >>> py3-pyzabbix*: Preparing package py3-pyzabbix... >>> py3-pyzabbix-pyc*: Tracing dependencies... python3 py3-requests py3-semantic-version python3~3.11 >>> py3-pyzabbix-pyc*: Package size: 48.0 KB >>> py3-pyzabbix-pyc*: Compressing data... >>> py3-pyzabbix-pyc*: Create checksum... >>> py3-pyzabbix-pyc*: Create py3-pyzabbix-pyc-1.2.1-r2.apk >>> py3-pyzabbix*: Tracing dependencies... python3 py3-requests py3-semantic-version python3~3.11 >>> py3-pyzabbix*: Package size: 72.0 KB >>> py3-pyzabbix*: Compressing data... >>> py3-pyzabbix*: Create checksum... >>> py3-pyzabbix*: Create py3-pyzabbix-1.2.1-r2.apk >>> py3-pyzabbix: Build complete at Tue, 25 Apr 2023 07:29:34 +0000 elapsed time 0h 0m 2s >>> py3-pyzabbix: Cleaning up srcdir >>> py3-pyzabbix: Cleaning up pkgdir >>> py3-pyzabbix: Uninstalling dependencies... (1/45) Purging .makedepends-py3-pyzabbix (20230425.072932) (2/45) Purging py3-semantic-version (2.10.0-r1) (3/45) Purging python3-dev (3.11.3-r10) (4/45) Purging py3-setuptools-pyc (67.7.2-r0) (5/45) Purging py3-setuptools (67.7.2-r0) (6/45) Purging py3-pytest-pyc (7.3.1-r1) (7/45) Purging py3-pytest (7.3.1-r1) (8/45) Purging py3-iniconfig-pyc (1.1.1-r6) (9/45) Purging py3-iniconfig (1.1.1-r6) (10/45) Purging py3-packaging-pyc (23.1-r1) (11/45) Purging py3-packaging (23.1-r1) (12/45) Purging py3-parsing-pyc (3.0.9-r2) (13/45) Purging py3-parsing (3.0.9-r2) (14/45) Purging py3-pluggy-pyc (1.0.0-r3) (15/45) Purging py3-pluggy (1.0.0-r3) (16/45) Purging py3-py-pyc (1.11.0-r2) (17/45) Purging py3-py (1.11.0-r2) (18/45) Purging py3-httpretty-pyc (1.1.4-r2) (19/45) Purging py3-httpretty (1.1.4-r2) (20/45) Purging py3-requests-mock-pyc (1.10.0-r2) (21/45) Purging py3-requests-mock (1.10.0-r2) (22/45) Purging py3-requests-pyc (2.28.2-r1) (23/45) Purging py3-requests (2.28.2-r1) (24/45) Purging py3-certifi-pyc (2022.12.7-r2) (25/45) Purging py3-certifi (2022.12.7-r2) (26/45) Purging py3-charset-normalizer-pyc (3.1.0-r1) (27/45) Purging py3-charset-normalizer (3.1.0-r1) (28/45) Purging py3-idna-pyc (3.4-r4) (29/45) Purging py3-idna (3.4-r4) (30/45) Purging py3-urllib3-pyc (1.26.15-r1) (31/45) Purging py3-urllib3 (1.26.15-r1) (32/45) Purging py3-six-pyc (1.16.0-r6) (33/45) Purging py3-six (1.16.0-r6) (34/45) Purging python3-pyc (3.11.3-r10) (35/45) Purging python3-pycache-pyc0 (3.11.3-r10) (36/45) Purging pyc (0.1-r0) (37/45) Purging python3 (3.11.3-r10) (38/45) Purging gdbm (1.23-r1) (39/45) Purging libbz2 (1.0.8-r5) (40/45) Purging libffi (3.4.4-r2) (41/45) Purging libpanelw (6.4_p20230401-r6) (42/45) Purging mpdecimal (2.5.1-r2) (43/45) Purging readline (8.2.1-r1) (44/45) Purging sqlite-libs (3.41.2-r2) (45/45) Purging xz-libs (5.4.2-r1) Executing busybox-1.36.0-r8.trigger OK: 283 MiB in 98 packages >>> py3-pyzabbix: Updating the community/armv7 repository index... >>> py3-pyzabbix: Signing the index...