name: code run_id: commands[0] env LANG: C.UTF-8 env HOME: /home/jenkins env PATH: /w/workspace/smo-ves-cli-sonar/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-WoTF/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 3027988013 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env TOX_ENV_NAME: code env TOX_WORK_DIR: /w/workspace/smo-ves-cli-sonar/.tox env TOX_ENV_DIR: /w/workspace/smo-ves-cli-sonar/.tox/code env VIRTUAL_ENV: /w/workspace/smo-ves-cli-sonar/.tox/code metadata pid: 2679 cwd: /w/workspace/smo-ves-cli-sonar allow: /w/workspace/smo-ves-cli-sonar/.tox/code/bin/* cmd: pytest --ignore=functionaltest --ignore=collector --cov /w/workspace/smo-ves-cli-sonar --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 --junitxml=/w/workspace/smo-ves-cli-sonar/tmp/tests.xml exit_code: 0 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.2, pluggy-1.5.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/smo-ves-cli-sonar plugins: mock-3.14.0, cov-5.0.0, requests-mock-1.12.1 collected 114 items tests/collector/test_monitor.py ................................... [ 30%] tests/collector/test_rest_dispatcher.py .... [ 34%] tests/dmaap_adaptor/test_appConfig.py ....... [ 40%] tests/dmaap_adaptor/test_consumer.py ............ [ 50%] tests/dmaap_adaptor/test_dmaap_adapter.py ..ss.... [ 57%] tests/dmaap_adaptor/test_prepare_response.py .... [ 61%] tests/influxdb_connector/test_influxdb_connector.py .... [ 64%] tests/influxdb_connector/test_influxdb_events.py ....................... [ 85%] ................. [100%] =============================== warnings summary =============================== influxdb-connector/influxdb-connector/code/influxdb_connector.py:240 /w/workspace/smo-ves-cli-sonar/influxdb-connector/influxdb-connector/code/influxdb_connector.py:240: DeprecationWarning: invalid escape sequence '\ ' for search_char, replace_char in {" ": "\ ", ",": "\,"}.items(): influxdb-connector/influxdb-connector/code/influxdb_connector.py:240 /w/workspace/smo-ves-cli-sonar/influxdb-connector/influxdb-connector/code/influxdb_connector.py:240: DeprecationWarning: invalid escape sequence '\,' for search_char, replace_char in {" ": "\ ", ",": "\,"}.items(): tests/influxdb_connector/test_influxdb_events.py:423 /w/workspace/smo-ves-cli-sonar/tests/influxdb_connector/test_influxdb_events.py:423: DeprecationWarning: invalid escape sequence '\,' data = "measurement,domain=measurement,eventId=O-RAN-FH-IPv6-01_1639984500_PM15min,eventName=measurement_O_RAN_COMPONENT_PM15min,eventType=O_RAN_COMPONENT_PM15min,priority=Low,reportingEntityName=ORAN-DEV,sourceName=O-RAN-FH-IPv6-01,intervalStartTime=Mon\,\ 20\ Dec\ 2021\ 07:00:00\ +0000,intervalEndTime=Mon\,\ 20\ Dec\ 2021\ 07:15:00\ +0000,version=4.1,vesEventListenerVersion=7.2.1" tests/collector/test_monitor.py::test_listener tests/collector/test_monitor.py::test_schema_ref_url tests/collector/test_monitor.py::test_gerrit_schema_ref_url /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:204: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Failed to authenticate OK; creds: ' , credentials) tests/collector/test_monitor.py::test_listener_jsonschema_validation /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:234: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Event is not valid against schema! {0}'.format(e)) tests/collector/test_monitor.py::test_listener_jsonschema_validation /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:235: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Bad JSON body decoded:\n' tests/collector/test_monitor.py::test_listener_schma_is_empty /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:252: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Valid JSON body (no schema checking) decoded:\n' tests/collector/test_monitor.py::test_listener_schma_is_empty /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:257: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Event is valid JSON but not checked against schema!') tests/collector/test_monitor.py::test_TestControl_listener_schema_validation_error /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:396: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('TestControl input not valid: {0}'.format(e)) tests/collector/test_monitor.py::test_TestControl_listener_schema_validation_error /w/workspace/smo-ves-cli-sonar/collector/evel-test-collector/code/collector/monitor.py:397: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead logger.warn('Bad JSON body decoded:\n' -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ------- generated xml file: /w/workspace/smo-ves-cli-sonar/tmp/tests.xml ------- ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing ------------------------------------------------------------------------------------------------ collector/evel-test-collector/code/collector/monitor.py 339 0 100% collector/evel-test-collector/code/collector/rest_dispatcher.py 26 0 100% dmaapadapter/adapter/code/app_config.py 43 0 100% dmaapadapter/adapter/code/consumer.py 106 10 91% 55, 62-70, 74 dmaapadapter/adapter/code/dmaap_adapter.py 63 20 68% 56-63, 68-85 dmaapadapter/adapter/code/prepare_response.py 12 0 100% influxdb-connector/influxdb-connector/code/influxdb_connector.py 286 57 80% 343-470 tests/__init__.py 0 0 100% tests/collector/__init__.py 27 18 33% 26-44 tests/collector/test_monitor.py 474 19 96% 162-165, 400-403, 420-423, 460-463, 511-512, 862 tests/collector/test_rest_dispatcher.py 48 0 100% tests/dmaap_adaptor/__init__.py 5 0 100% tests/dmaap_adaptor/test_appConfig.py 68 0 100% tests/dmaap_adaptor/test_consumer.py 132 0 100% tests/dmaap_adaptor/test_dmaap_adapter.py 104 22 79% 43-47, 53-57, 65-69, 76-80, 84-85 tests/dmaap_adaptor/test_prepare_response.py 23 0 100% tests/influxdb_connector/__init__.py 5 0 100% tests/influxdb_connector/test_influxdb_connector.py 29 0 100% tests/influxdb_connector/test_influxdb_events.py 445 9 98% 35, 306-312, 1219-1220, 1239-1240, 1263-1264 ------------------------------------------------------------------------------------------------ TOTAL 2235 155 93% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 93.06% ================= 112 passed, 2 skipped, 12 warnings in 6.11s ==================