py3: install_deps> python -I -m pip install coverage parameterized==0.7.4 pytest pytest-cov responses==0.10.7 -r requirements.txt .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' .pkg: _optional_hooks> python /tmp/venv-o7Tc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-o7Tc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-o7Tc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: freeze> python -m pip freeze --all .pkg: pip==26.2.2,setuptools==84.2.1 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-o7Tc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-o7Tc/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ py3: install_package_deps> python -I -m pip install Flask==2.2 Werkzeug==2.2.3 connexion==2.5.0 flask_sqlalchemy==3.0.1 greenlet==3.1.1 jsonschema==3.2.0 onap_dcae_cbs_docker_client==2.2.1 onappylog==1.0.9 psycopg2-binary==2.9.5 pyyaml==5.4.1 requests==2.22.0 ruamel.yaml==0.16.10 'setuptools<82' swagger-ui-bundle==0.0.6 tenacity==6.0.0 tornado==6.1 py3: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/.tmp/package/1/pm_subscription_handler-2.2.4.tar.gz py3: freeze> python -m pip freeze --all py3: attrs==26.1.0,certifi==2026.10.23,chardet==3.0.4,click==8.5.0,clickclick==20.10.2,connexion==2.5.0,coverage==7.16.2,exceptiongroup==1.3.1,Flask==2.2.0,Flask-SQLAlchemy==3.0.1,greenlet==3.1.1,idna==2.8,inflection==0.5.1,iniconfig==2.3.1,itsdangerous==2.2.0,Jinja2==3.1.6,jsonschema==3.2.0,MarkupSafe==3.0.4,onap_dcae_cbs_docker_client==2.2.1,onappylog==1.0.9,openapi-schema-validator==0.2.3,openapi-spec-validator==0.4.0,packaging==26.3,parameterized==0.7.4,pip==26.2.2,pluggy==1.7.0,pm_subscription_handler==2.2.4,psycopg2-binary==2.9.5,Pygments==2.21.0,pyrsistent==0.20.0,pytest==9.1.1,pytest-cov==7.1.0,PyYAML==5.4.1,requests==2.22.0,responses==0.10.7,ruamel.yaml==0.16.10,setuptools==81.0.0,six==1.17.0,SQLAlchemy==2.0.55,swagger-ui-bundle==0.0.6,tenacity==6.0.0,tomli==2.5.0,tornado==6.1,typing_extensions==4.16.0,urllib3==1.25.11,watchdog==6.0.0,Werkzeug==2.2.3 py3: commands[0]> pytest --junitxml xunit-results.xml --cov pmsh_service --cov-report xml --cov-report term-missing tests --verbose --cov-fail-under=70 ============================= test session starts ============================== platform linux -- Python 3.10.6, pytest-9.1.1, pluggy-1.7.0 -- /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/bin/python cachedir: .tox/py3/.pytest_cache rootdir: /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler plugins: cov-7.1.0 collecting ... collected 141 items tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_apply_nf_to_measurement_group_status PASSED [ 0%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_check_duplication_exception PASSED [ 1%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_check_measurement_group_names_comply PASSED [ 2%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_delete_nf_to_measurement_group_failure PASSED [ 2%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_delete_nf_to_measurement_group_with_nf_delete PASSED [ 3%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_delete_nf_to_measurement_group_without_nf_delete PASSED [ 4%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_filter_nf_to_meas_grp_for_create PASSED [ 4%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_filter_nf_to_meas_grp_for_delete PASSED [ 5%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_lock_nf_to_meas_grp_for_locking_with_LOCKED_update PASSED [ 6%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_lock_nf_to_meas_grp_with_no_LOCKED_update PASSED [ 7%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_publish_measurement_group PASSED [ 7%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_save_measurement_group PASSED [ 8%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_for_data_conflict PASSED [ 9%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_for_missing_measurement_group PASSED [ 9%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_for_same_state PASSED [ 10%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_to_locked PASSED [ 11%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_to_locking PASSED [ 12%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_to_unlocked_with_no_nfs PASSED [ 12%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_admin_status_to_unlocking PASSED [ 13%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_measurement_group_nf_status PASSED [ 14%] tests/services/test_measurement_group_service.py::MeasurementGroupServiceTestCase::test_update_nf_to_measurement_group_failure PASSED [ 14%] tests/services/test_nf_service.py::NetworkFunctionServiceTestCase::test_capture_filtered_nfs PASSED [ 15%] tests/services/test_nf_service.py::NetworkFunctionServiceTestCase::test_create_nf_event_body PASSED [ 16%] tests/services/test_nf_service.py::NetworkFunctionServiceTestCase::test_save_nf_new_nf PASSED [ 17%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_apply_measurement_grp_to_nfs PASSED [ 17%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_apply_subscription_to_nfs PASSED [ 18%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_check_missing_data_admin_status_missing PASSED [ 19%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_check_missing_data_msr_grp_name PASSED [ 19%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_check_missing_data_sub_name_missing PASSED [ 20%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_create_subscription PASSED [ 21%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_create_subscription_all_locked_msg_grp PASSED [ 21%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_create_subscription_service_failed_rollback PASSED [ 22%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_create_subscription_service_on_aai_failed PASSED [ 23%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_db_string_to_list PASSED [ 24%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_db_string_to_list_empty PASSED [ 24%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_get_subscriptions_list PASSED [ 25%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_get_subscriptions_list_empty PASSED [ 26%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_is_duplicate_filter_false PASSED [ 26%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_is_duplicate_filter_true PASSED [ 27%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_missing_administrative_state PASSED [ 28%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_missing_measurement_grp_name PASSED [ 29%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_perform_validation_existing_sub PASSED [ 29%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_publish_measurement_grp_to_nfs PASSED [ 30%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_publish_measurement_grp_to_nfs_failed PASSED [ 31%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_save_filtered_nfs PASSED [ 31%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_save_subscription_request PASSED [ 32%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter PASSED [ 33%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter_filtering PASSED [ 34%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter_invalid_duplicate_request PASSED [ 34%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter_invalid_request PASSED [ 35%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter_locking PASSED [ 36%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_update_filter_with_new_del_nfs PASSED [ 36%] tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_validate_nf_filter_with_no_filter_values PASSED [ 37%] tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai__failure PASSED [ 38%] tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_apply_msg_failure PASSED [ 39%] tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_apply_nfs_to_subscriptions PASSED [ 39%] tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_delete_events PASSED [ 40%] tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_update_events PASSED [ 41%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_aai_service_url_fail PASSED [ 41%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_aai_service_url_success PASSED [ 42%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_all_aai_xnf_data_not_found PASSED [ 43%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_all_aai_xnf_data_success PASSED [ 43%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_pm_sub_data_fail PASSED [ 44%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_pm_sub_data_success PASSED [ 45%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_sdnc_params_fail PASSED [ 46%] tests/test_aai_service.py::AaiClientTestCase::test_aai_client_get_sdnc_params_success PASSED [ 46%] tests/test_controller.py::ControllerTestCase::test_delete_mg_exception PASSED [ 47%] tests/test_controller.py::ControllerTestCase::test_delete_mg_when_state_locked PASSED [ 48%] tests/test_controller.py::ControllerTestCase::test_delete_mg_when_state_locking PASSED [ 48%] tests/test_controller.py::ControllerTestCase::test_delete_mg_when_state_unlocked PASSED [ 49%] tests/test_controller.py::ControllerTestCase::test_delete_sub_exception PASSED [ 50%] tests/test_controller.py::ControllerTestCase::test_delete_sub_none PASSED [ 51%] tests/test_controller.py::ControllerTestCase::test_delete_sub_when_state_locked PASSED [ 51%] tests/test_controller.py::ControllerTestCase::test_delete_sub_when_state_locking PASSED [ 52%] tests/test_controller.py::ControllerTestCase::test_delete_sub_when_state_unlocked PASSED [ 53%] tests/test_controller.py::ControllerTestCase::test_get_meas_group_with_nfs_api PASSED [ 53%] tests/test_controller.py::ControllerTestCase::test_get_meas_group_with_nfs_api_exception PASSED [ 54%] tests/test_controller.py::ControllerTestCase::test_get_meas_group_with_nfs_api_none PASSED [ 55%] tests/test_controller.py::ControllerTestCase::test_get_subscription_by_name_api PASSED [ 56%] tests/test_controller.py::ControllerTestCase::test_get_subscription_by_name_api_exception PASSED [ 56%] tests/test_controller.py::ControllerTestCase::test_get_subscription_by_name_api_none PASSED [ 57%] tests/test_controller.py::ControllerTestCase::test_get_subscriptions_api PASSED [ 58%] tests/test_controller.py::ControllerTestCase::test_get_subscriptions_api_exception PASSED [ 58%] tests/test_controller.py::ControllerTestCase::test_get_subscriptions_api_none PASSED [ 59%] tests/test_controller.py::ControllerTestCase::test_post_meas_group PASSED [ 60%] tests/test_controller.py::ControllerTestCase::test_post_meas_group_with_duplicate PASSED [ 60%] tests/test_controller.py::ControllerTestCase::test_post_subscription PASSED [ 61%] tests/test_controller.py::ControllerTestCase::test_post_subscription_duplicate_sub PASSED [ 62%] tests/test_controller.py::ControllerTestCase::test_post_subscription_invalid_filter PASSED [ 63%] tests/test_controller.py::ControllerTestCase::test_post_subscription_missing PASSED [ 63%] tests/test_controller.py::ControllerTestCase::test_put_nf_filter PASSED [ 64%] tests/test_controller.py::ControllerTestCase::test_put_nf_filter_api_data_conflict_exception PASSED [ 65%] tests/test_controller.py::ControllerTestCase::test_put_nf_filter_api_exception PASSED [ 65%] tests/test_controller.py::ControllerTestCase::test_put_nf_filter_api_invalid_data_exception PASSED [ 66%] tests/test_controller.py::ControllerTestCase::test_status_response_healthy PASSED [ 67%] tests/test_controller.py::ControllerTestCase::test_update_admin_state_api_data_conflict_exception PASSED [ 68%] tests/test_controller.py::ControllerTestCase::test_update_admin_state_api_exception PASSED [ 68%] tests/test_controller.py::ControllerTestCase::test_update_admin_state_api_for_locked_update PASSED [ 69%] tests/test_controller.py::ControllerTestCase::test_update_admin_state_api_for_unlocked_update PASSED [ 70%] tests/test_controller.py::ControllerTestCase::test_update_admin_state_api_invalid_data_exception PASSED [ 70%] tests/test_exit_handler.py::ExitHandlerTests::test_terminate_signal_successful PASSED [ 71%] tests/test_network_function.py::NetworkFunctionTests::test_create_existing_network_function PASSED [ 72%] tests/test_network_function.py::NetworkFunctionTests::test_delete_network_function PASSED [ 73%] tests/test_network_function.py::NetworkFunctionTests::test_get_network_function PASSED [ 73%] tests/test_network_function.py::NetworkFunctionTests::test_get_network_function_no_match PASSED [ 74%] tests/test_network_function.py::NetworkFunctionTests::test_get_network_functions PASSED [ 75%] tests/test_network_function.py::NetworkFunctionTests::test_set_sdnc_params_false PASSED [ 75%] tests/test_network_function.py::NetworkFunctionTests::test_set_sdnc_params_true PASSED [ 76%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_filter_false_on_modelInvariantIDs_being_false_and_pnfname_being_true PASSED [ 77%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_filter_true_on_multiple_modelInvariantIDs PASSED [ 78%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_false_on_modelInvariantIDs PASSED [ 78%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_false_on_modelInvariantIDs_being_false_and_pnfname_being_true PASSED [ 79%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_false_on_modelVersionIDs PASSED [ 80%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_false_on_modelVersionIDs_being_false_and_pnfname_being_true PASSED [ 80%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_false_on_xnf PASSED [ 81%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_model_name_false PASSED [ 82%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_model_name_true PASSED [ 82%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_true_on_modelInvariantIDs PASSED [ 83%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_true_on_modelVersionIDs PASSED [ 84%] tests/test_network_function_filter.py::NetworkFunctionFilterTest::test_test_filter_true_on_xnf PASSED [ 85%] tests/test_pmsh_config.py::PmshConfigTestCase::test_config_get_aaf_creds PASSED [ 85%] tests/test_pmsh_config.py::PmshConfigTestCase::test_config_get_cert_data PASSED [ 86%] tests/test_pmsh_config.py::PmshConfigTestCase::test_mr_pub_publish_to_topic_fail PASSED [ 87%] tests/test_pmsh_config.py::PmshConfigTestCase::test_mr_pub_publish_to_topic_success PASSED [ 87%] tests/test_pmsh_config.py::PmshConfigTestCase::test_mr_sub_get_from_topic_fail PASSED [ 88%] tests/test_pmsh_config.py::PmshConfigTestCase::test_mr_sub_get_from_topic_success PASSED [ 89%] tests/test_pmsh_config.py::PmshConfigTestCase::test_singleton_instance_is_accessible_using_class_method PASSED [ 90%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_create_failed_filtering PASSED [ 90%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_delete_failed_filtering PASSED [ 91%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_exception PASSED [ 92%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_locked_failed PASSED [ 92%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_locked_success PASSED [ 93%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_locking_failed PASSED [ 94%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_locking_success PASSED [ 95%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_locking_success_filtering PASSED [ 95%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_unlocked_failed PASSED [ 96%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_unlocked_success PASSED [ 97%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_handle_response_unlocked_success_filtering PASSED [ 97%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_poll_policy_topic_calls_methods_correct_mg PASSED [ 98%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_poll_policy_topic_exception PASSED [ 99%] tests/test_policy_response_handler.py::PolicyResponseHandlerTest::test_poll_policy_topic_no_method_calls_unavailable_mg PASSED [100%] =============================== warnings summary =============================== .tox/py3/lib/python3.10/site-packages/coverage/inorout.py:513 /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/coverage/inorout.py:513: CoverageWarning: --include is ignored because --source is set (include-ignored); see https://coverage.readthedocs.io/en/7.16.2/messages.html#warning-include-ignored self.warn("--include is ignored because --source is set", slug="include-ignored") .tox/py3/lib/python3.10/site-packages/connexion/decorators/validation.py:6 /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/connexion/decorators/validation.py:6: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81. import pkg_resources .tox/py3/lib/python3.10/site-packages/pkg_resources/__init__.py:3148 /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/pkg_resources/__init__.py:3148: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('ruamel')`. Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages declare_namespace(pkg) .tox/py3/lib/python3.10/site-packages/tenacity/_asyncio.py:48 /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/tenacity/_asyncio.py:48: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead def call(self, fn, *args, **kwargs): tests/services/test_measurement_group_service.py: 1 warning tests/services/test_nf_service.py: 1 warning tests/services/test_subscription_service.py: 1 warning tests/test_aai_event_handler.py: 1 warning tests/test_aai_service.py: 1 warning tests/test_controller.py: 1 warning tests/test_exit_handler.py: 1 warning tests/test_network_function.py: 1 warning tests/test_pmsh_config.py: 1 warning tests/test_policy_response_handler.py: 1 warning /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/onaplogging/logWatchDog.py:29: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. return yaml.load(f.read()) tests/services/test_measurement_group_service.py: 1 warning tests/services/test_nf_service.py: 1 warning tests/services/test_subscription_service.py: 1 warning tests/test_aai_event_handler.py: 1 warning tests/test_aai_service.py: 1 warning tests/test_controller.py: 1 warning tests/test_exit_handler.py: 1 warning tests/test_network_function.py: 1 warning tests/test_pmsh_config.py: 1 warning tests/test_policy_response_handler.py: 1 warning /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/.tox/py3/lib/python3.10/site-packages/onaplogging/logWatchDog.py:80: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead observer.setDaemon(True) tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_create_subscription_service_on_aai_failed /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/pmsh_service/mod/api/services/subscription_service.py:45: SAWarning: Identity map already had an identity for (, (1,), None), replacing it with newly flushed object. Are there load operations occurring inside of an event handler within the flush? db.session.commit() tests/services/test_subscription_service.py::SubscriptionServiceTestCase::test_perform_validation_existing_sub /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/tests/services/test_subscription_service.py:127: SAWarning: Identity map already had an identity for (, (1,), None), replacing it with newly flushed object. Are there load operations occurring inside of an event handler within the flush? db.session.commit() tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_delete_events /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/tests/test_aai_event_handler.py:39: SAWarning: Identity map already had an identity for (, (2,), None), replacing it with newly flushed object. Are there load operations occurring inside of an event handler within the flush? db.session.commit() tests/test_aai_event_handler.py::AAIEventHandlerTest::test_process_aai_delete_events /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/tests/test_aai_event_handler.py:39: SAWarning: Identity map already had an identity for (, (1,), None), replacing it with newly flushed object. Are there load operations occurring inside of an event handler within the flush? db.session.commit() -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html - generated xml file: /w/workspace/dcaegen2-services-pmsh-tox-sonar/components/pm-subscription-handler/xunit-results.xml - ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.10.6-final-0 ________________ Name Stmts Miss Branch BrPart Cover Missing -------------------------------------------------------------------------------------------------------- pmsh_service/__init__.py 0 0 0 0 100% pmsh_service/mod/__init__.py 79 23 6 0 68% 63-73, 104-109, 113-122 pmsh_service/mod/aai_client.py 67 4 14 3 91% 77->83, 141, 144-146, 177->exit pmsh_service/mod/aai_event_handler.py 71 2 24 6 92% 63->exit, 76-78, 92->exit, 105->exit, 111->110, 113->106 pmsh_service/mod/api/__init__.py 0 0 0 0 100% pmsh_service/mod/api/controller.py 130 13 14 2 90% 101-118, 229-230 pmsh_service/mod/api/custom_exception.py 9 0 0 0 100% pmsh_service/mod/api/db_models.py 125 8 2 0 92% 61-63, 110-111, 146, 150-152 pmsh_service/mod/api/services/measurement_group_service.py 147 7 36 6 93% 81, 95->exit, 297-298, 339->338, 341->347, 357-359, 420->423, 428->exit, 434-435 pmsh_service/mod/api/services/nf_service.py 17 3 0 0 82% 87-95 pmsh_service/mod/api/services/subscription_service.py 177 6 60 4 96% 52-53, 173, 257->259, 292-298, 349->348, 432->435 pmsh_service/mod/exit_handler.py 27 3 10 1 89% 46-47, 53 pmsh_service/mod/network_function.py 94 12 12 1 88% 39, 44, 54, 65, 107-108, 113-123, 156->159 pmsh_service/mod/pmsh_config.py 68 9 6 2 85% 87-94, 142, 144->exit pmsh_service/mod/policy_response_handler.py 42 0 10 1 98% 103->106 -------------------------------------------------------------------------------------------------------- TOTAL 1053 90 194 26 90% Coverage XML written to file coverage.xml Required test coverage of 70% reached. Total coverage: 90.22% ======================= 141 passed, 28 warnings in 4.86s ======================= py3: OK (35.87=setup[29.99]+cmd[5.88] seconds) congratulations :) (35.90 seconds)