name: code run_id: commands[2] 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: 27781 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-append --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_std_2_0_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_std_2_0_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_std_2_0_0.py::test_apis PASSED [ 50%] near-rt-ric-simulator/tests/test_std_2_0_0.py::test_notificationDestination PASSED [ 75%] near-rt-ric-simulator/tests/test_std_2_0_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:44] "POST /statustest HTTP/1.1" 200 - PASSED [100%] =============================== warnings summary =============================== near-rt-ric-simulator/tests/test_std_2_0_0.py::test_enforce_reason near-rt-ric-simulator/tests/test_std_2_0_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_std_2_0_0.py::test_enforce_reason near-rt-ric-simulator/tests/test_std_2_0_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_std_2_0_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_std_2_0_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_std_2_0_0.py::test_enforce_reason /w/workspace/sim-a1-interface-tox-sonarqube/.tox/code/lib/python3.10/site-packages/connexion/spec.py:50: DeprecationWarning: Passing a schema to Validator.iter_errors is deprecated and will be removed in a future release. Call validator.evolve(schema=new_schema).iter_errors(...) instead. for error in instance_validator.iter_errors(instance['default'], instance): near-rt-ric-simulator/tests/test_std_2_0_0.py: 29 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_std_2_0_0.py: 29 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/STD_1.1.3/a1.py 134 11 92% 57-59, 66, 71, 78-79, 125, 166-167, 179 near-rt-ric-simulator/src/STD_1.1.3/main.py 113 28 75% 78-79, 89-90, 122-139, 145-151, 170, 177, 182 near-rt-ric-simulator/src/STD_1.1.3/var_declaration.py 11 0 100% near-rt-ric-simulator/src/STD_2.0.0/a1.py 244 99 59% 48, 59, 64-65, 92, 98-99, 104-106, 110-111, 118, 123-124, 127, 132-135, 139-142, 147-150, 179, 185-186, 189-190, 200, 206-207, 210-211, 215-218, 223-226, 229, 245, 251-252, 255-256, 260-263, 271-294, 301-313, 332-333, 346, 361, 363, 365, 368-377 near-rt-ric-simulator/src/STD_2.0.0/main.py 165 31 81% 59, 88, 93-94, 97, 103, 115, 119, 125, 132, 142-143, 153-154, 165, 167, 170, 197-198, 200, 208-214, 224-225, 248, 253, 258 near-rt-ric-simulator/src/STD_2.0.0/models/__init__.py 0 0 100% near-rt-ric-simulator/src/STD_2.0.0/models/enforceStatus.py 28 0 100% near-rt-ric-simulator/src/STD_2.0.0/var_declaration.py 13 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/test_std_1_1_3.py 209 0 100% near-rt-ric-simulator/tests/test_std_2_0_0.py 329 0 100% near-rt-ric-simulator/tests/unittest_setup.py 29 2 93% 63-64 --------------------------------------------------------------------------------------------------------- TOTAL 2219 282 87% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 87.29% ======================= 4 passed, 65 warnings in 21.47s ========================