name: code run_id: commands[0] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin:/opt/pyenv/bin:/tmp/venv-RVG1/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: 2802520165 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env TESTS_BASE_PATH: /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests env TOX_ENV_NAME: code env TOX_WORK_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox env TOX_ENV_DIR: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code env VIRTUAL_ENV: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code metadata pid: 27735 cwd: /w/workspace/sim-a1-interface-tox-sonarqube allow: /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/bin/* cmd: pytest -o log_cli=true --cov /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator --cov-report xml --cov-report term-missing --cov-report html --cov-fail-under=70 /w/workspace/sim-a1-interface-tox-sonarqube/near-rt-ric-simulator/tests/test_osc_2_1_0.py exit_code: 0 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-8.2.1, pluggy-1.5.0 cachedir: .tox/code/.pytest_cache rootdir: /w/workspace/sim-a1-interface-tox-sonarqube plugins: cov-5.0.0 collected 4 items near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason -------------------------------- live log setup -------------------------------- WARNING connexion.options:options.py:83 The swagger_ui directory could not be found. Please install connexion with extra install: pip install connexion[swagger-ui] or provide the path to your local installation by passing swagger_path= WARNING connexion.options:options.py:83 The swagger_ui directory could not be found. Please install connexion with extra install: pip install connexion[swagger-ui] or provide the path to your local installation by passing swagger_path= PASSED [ 25%] near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_apis PASSED [ 50%] near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_notificationDestination PASSED [ 75%] near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_sendstatus -------------------------------- live log call --------------------------------- INFO werkzeug:_internal.py:224 WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:8086 INFO werkzeug:_internal.py:224 Press CTRL+C to quit INFO werkzeug:_internal.py:224 127.0.0.1 - - [22/May/2024 19:19:10] "POST /statustest HTTP/1.1" 201 - PASSED [100%] =============================== warnings summary =============================== near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/decorators/validation.py:16: DeprecationWarning: Accessing jsonschema.draft4_format_checker is deprecated and will be removed in a future release. Instead, use the FORMAT_CHECKER attribute on the corresponding Validator. from jsonschema import Draft4Validator, ValidationError, draft4_format_checker near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:16: DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need. from jsonschema import Draft4Validator, RefResolver near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/json_schema.py:17: DeprecationWarning: jsonschema.exceptions.RefResolutionError is deprecated as of version 4.18.0. If you wish to catch potential reference resolution errors, directly catch referencing.exceptions.Unresolvable. from jsonschema.exceptions import RefResolutionError, ValidationError # noqa near-rt-ric-simulator/tests/test_osc_2_1_0.py::test_enforce_reason /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apps/flask_app.py:36: DeprecationWarning: 'app.json_encoder' is deprecated and will be removed in Flask 2.3. Customize 'app.json_provider_class' or 'app.json' instead. app.json_encoder = FlaskJSONEncoder near-rt-ric-simulator/tests/test_osc_2_1_0.py: 56 warnings /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict) near-rt-ric-simulator/tests/test_osc_2_1_0.py: 56 warnings /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/apis/flask_api.py:236: DeprecationWarning: '_request_ctx_stack' is deprecated and will be removed in Flask 2.3. Use 'g' to store data, or 'request_ctx' to access the current context. setattr(flask._request_ctx_stack.top, 'connexion_context', context_dict) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.10.6-final-0 ----------- Name Stmts Miss Cover Missing --------------------------------------------------------------------------------------------------------- near-rt-ric-simulator/src/OSC_2.1.0/controllers/__init__.py 0 0 100% near-rt-ric-simulator/src/OSC_2.1.0/controllers/a1_mediator_controller.py 206 26 87% 107, 111-112, 124-126, 129-130, 163, 168-169, 172-173, 196, 225-227, 238, 248, 253-256, 298, 330-331 near-rt-ric-simulator/src/OSC_2.1.0/main.py 182 38 79% 48-51, 62, 94-95, 99-100, 103, 121, 124-125, 129, 135, 150-151, 173, 175, 179, 193-194, 223, 244-253, 259-265, 270 near-rt-ric-simulator/src/OSC_2.1.0/models/__init__.py 0 0 100% near-rt-ric-simulator/src/OSC_2.1.0/models/enforceStatus.py 28 0 100% near-rt-ric-simulator/src/OSC_2.1.0/var_declaration.py 17 0 100% near-rt-ric-simulator/src/common/maincommon.py 39 8 79% 34-35, 53, 56, 60-63, 72 near-rt-ric-simulator/src/common/payload_logging.py 28 6 79% 31-38 near-rt-ric-simulator/src/common/utils.py 10 9 10% 20-29 near-rt-ric-simulator/test/common/compare_json.py 63 24 62% 46, 57, 67, 71, 74, 80, 83, 87, 103-105, 108-127 near-rt-ric-simulator/tests/test_osc_2_1_0.py 371 0 100% near-rt-ric-simulator/tests/unittest_setup.py 29 2 93% 63-64 --------------------------------------------------------------------------------------------------------- TOTAL 973 113 88% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 88.39% ======================= 4 passed, 118 warnings in 21.42s =======================