>>> py3-pyzabbix: Building community/py3-pyzabbix 1.2.1-r0 (using abuild 3.10.0_rc1-r2) started Tue, 01 Nov 2022 04:18:45 +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/28) Installing libbz2 (1.0.8-r3) (2/28) Installing libffi (3.4.4-r0) (3/28) Installing gdbm (1.23-r0) (4/28) Installing xz-libs (5.2.7-r0) (5/28) Installing mpdecimal (2.5.1-r1) (6/28) Installing readline (8.2.0-r0) (7/28) Installing sqlite-libs (3.39.4-r0) (8/28) Installing python3 (3.10.8-r3) (9/28) Installing py3-certifi (2022.9.24-r0) (10/28) Installing py3-charset-normalizer (2.1.1-r0) (11/28) Installing py3-idna (3.4-r2) (12/28) Installing py3-urllib3 (1.26.12-r0) (13/28) Installing py3-requests (2.28.1-r0) (14/28) Installing py3-semantic-version (2.10.0-r0) (15/28) Installing python3-dev (3.10.8-r3) (16/28) Installing py3-parsing (3.0.9-r0) (17/28) Installing py3-packaging (21.3-r2) (18/28) Installing py3-setuptools (65.5.0-r0) (19/28) Installing py3-attrs (22.1.0-r0) (20/28) Installing py3-iniconfig (1.1.1-r3) (21/28) Installing py3-pluggy (1.0.0-r1) (22/28) Installing py3-py (1.11.0-r0) (23/28) Installing py3-tomli (2.0.1-r1) (24/28) Installing py3-pytest (7.1.3-r1) (25/28) Installing py3-httpretty (1.1.4-r0) (26/28) Installing py3-six (1.16.0-r3) (27/28) Installing py3-requests-mock (1.10.0-r0) (28/28) Installing .makedepends-py3-pyzabbix (20221101.041853) Executing busybox-1.35.0-r27.trigger OK: 378 MiB in 120 packages >>> py3-pyzabbix: Cleaning up srcdir >>> py3-pyzabbix: Cleaning up pkgdir >>> py3-pyzabbix: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/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 100 18254 100 18254 0 0 34904 0 --:--:-- --:--:-- --:--:-- 34969 >>> py3-pyzabbix: Fetching https://distfiles.alpinelinux.org/distfiles/v3.17/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.17/py3-pyzabbix-1.2.1.tar.gz... running build running build_py creating build creating build/lib creating build/lib/pyzabbix copying pyzabbix/api.py -> build/lib/pyzabbix copying pyzabbix/__init__.py -> build/lib/pyzabbix copying pyzabbix/py.typed -> build/lib/pyzabbix ============================= test session starts ============================== platform linux -- Python 3.10.8, pytest-7.1.3, 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.25s ============================== >>> py3-pyzabbix: Entering fakeroot... running install /usr/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py 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.10 creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages creating /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix copying build/lib/pyzabbix/api.py -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix copying build/lib/pyzabbix/__init__.py -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix copying build/lib/pyzabbix/py.typed -> /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix byte-compiling /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix/api.py to api.cpython-310.pyc byte-compiling /home/buildozer/aports/community/py3-pyzabbix/pkg/py3-pyzabbix/usr/lib/python3.10/site-packages/pyzabbix/__init__.py to __init__.cpython-310.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.10/site-packages/pyzabbix-1.2.1-py3.10.egg-info running install_scripts >>> py3-pyzabbix*: Running postcheck for py3-pyzabbix >>> py3-pyzabbix*: Preparing package py3-pyzabbix... >>> py3-pyzabbix*: Tracing dependencies... >>> py3-pyzabbix*: Package size: 92.0 KB >>> py3-pyzabbix*: Compressing data... >>> py3-pyzabbix*: Create checksum... >>> py3-pyzabbix*: Create py3-pyzabbix-1.2.1-r0.apk >>> py3-pyzabbix: Build complete at Tue, 01 Nov 2022 04:18:58 +0000 elapsed time 0h 0m 13s >>> py3-pyzabbix: Cleaning up srcdir >>> py3-pyzabbix: Cleaning up pkgdir >>> py3-pyzabbix: Uninstalling dependencies... (1/28) Purging .makedepends-py3-pyzabbix (20221101.041853) (2/28) Purging py3-semantic-version (2.10.0-r0) (3/28) Purging python3-dev (3.10.8-r3) (4/28) Purging py3-setuptools (65.5.0-r0) (5/28) Purging py3-pytest (7.1.3-r1) (6/28) Purging py3-attrs (22.1.0-r0) (7/28) Purging py3-iniconfig (1.1.1-r3) (8/28) Purging py3-packaging (21.3-r2) (9/28) Purging py3-parsing (3.0.9-r0) (10/28) Purging py3-pluggy (1.0.0-r1) (11/28) Purging py3-py (1.11.0-r0) (12/28) Purging py3-tomli (2.0.1-r1) (13/28) Purging py3-httpretty (1.1.4-r0) (14/28) Purging py3-requests-mock (1.10.0-r0) (15/28) Purging py3-requests (2.28.1-r0) (16/28) Purging py3-certifi (2022.9.24-r0) (17/28) Purging py3-charset-normalizer (2.1.1-r0) (18/28) Purging py3-idna (3.4-r2) (19/28) Purging py3-urllib3 (1.26.12-r0) (20/28) Purging py3-six (1.16.0-r3) (21/28) Purging python3 (3.10.8-r3) (22/28) Purging libbz2 (1.0.8-r3) (23/28) Purging libffi (3.4.4-r0) (24/28) Purging gdbm (1.23-r0) (25/28) Purging xz-libs (5.2.7-r0) (26/28) Purging mpdecimal (2.5.1-r1) (27/28) Purging readline (8.2.0-r0) (28/28) Purging sqlite-libs (3.39.4-r0) Executing busybox-1.35.0-r27.trigger OK: 267 MiB in 92 packages >>> py3-pyzabbix: Updating the community/x86_64 repository index... >>> py3-pyzabbix: Signing the index...