.pkg: remove tox env folder /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/.pkg py36: skipped because could not find python interpreter with spec(s): py36 py36: SKIP ⚠ in 1.08 seconds py38: install_deps> python -I -m pip install coverage pytest pytest-cov -r requirements.txt .pkg: install_requires> python -I -m pip install 'setuptools>=40.8.0' .pkg: _optional_hooks> python /tmp/venv-O1aN/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_sdist> python /tmp/venv-O1aN/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: get_requires_for_build_wheel> python /tmp/venv-O1aN/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: freeze> python -m pip freeze --all .pkg: pip==25.3,setuptools==80.9.0 .pkg: prepare_metadata_for_build_wheel> python /tmp/venv-O1aN/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ .pkg: build_sdist> python /tmp/venv-O1aN/lib/python3.10/site-packages/pyproject_api/_backend.py True setuptools.build_meta __legacy__ py38: install_package_deps> python -I -m pip install HTTPretty==1.0.5 PyYAML==5.4 Wheel==0.36.2 cryptography==37.0.4 httplib2==0.19.0 onap_dcae_cbs_docker_client==2.2.1 psycopg2-binary==2.8.6 pyOpenSSL==20.0.1 requests==2.23.0 six==1.15.0 py38: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/.tmp/package/1/miss_htbt_service-2.6.1.tar.gz py38: freeze> python -m pip freeze --all py38: certifi==2025.11.12,cffi==1.17.1,chardet==3.0.4,coverage==7.6.1,cryptography==37.0.4,exceptiongroup==1.3.1,httplib2==0.19.0,httpretty==1.0.5,idna==2.10,iniconfig==2.1.0,miss_htbt_service @ file:///w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/.tmp/package/1/miss_htbt_service-2.6.1.tar.gz#sha256=a3e76b22a8090f2750c8729a558a17cd65186334cc1ec76d32f5eb80f8c8734d,onap_dcae_cbs_docker_client==2.2.1,packaging==25.0,pip==25.0.1,pluggy==1.5.0,psycopg2-binary==2.8.6,pycparser==2.23,pyOpenSSL==20.0.1,pyparsing==2.4.7,pytest==8.3.5,pytest-cov==5.0.0,PyYAML==5.4,requests==2.23.0,setuptools==75.3.2,six==1.15.0,tomli==2.3.0,typing_extensions==4.13.2,urllib3==1.25.11,wheel==0.36.2 py38: commands[0]> mkdir -p /tmp/opt/app/miss_htbt_service/logs/ py38: commands[1]> mkdir -p /tmp/opt/app/miss_htbt_service/tmp/ py38: commands[2]> mkdir -p /tmp/opt/app/miss_htbt_service/etc/ py38: commands[3]> mkdir -p /tmp/opt/app/miss_htbt_service/data/ py38: commands[4]> pytest --junitxml xunit-results.xml --cov miss_htbt_service --cov-report xml --cov-report term tests --verbose ============================= test session starts ============================== platform linux -- Python 3.8.14, pytest-8.3.5, pluggy-1.5.0 -- /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/py38/bin/python cachedir: .tox/py38/.pytest_cache rootdir: /w/workspace/dcaegen2-services-heartbeat-tox-verify-master configfile: pyproject.toml plugins: cov-5.0.0 collecting ... collected 57 items tests/test_binding.py::test_resolve_all PASSED [ 1%] tests/test_binding.py::test_full PASSED [ 3%] tests/test_check_health.py::test_check_health_get PASSED [ 5%] tests/test_check_health.py::test_check_health_post PASSED [ 7%] tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring PASSED [ 8%] tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring_wrapper PASSED [ 10%] tests/test_db_monitoring.py::Test_db_monitoring::test_sendControlLoopEvent PASSED [ 12%] tests/test_get_logger.py::test_configure_logger PASSED [ 14%] tests/test_get_logger.py::test_configure_logger_with_name PASSED [ 15%] tests/test_htbt_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 17%] tests/test_htbt_exit.py::test_cleanup_and_exit::test_normal_exit PASSED [ 19%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_env_present PASSED [ 21%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_fallback_env_present PASSED [ 22%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_poll_cbs PASSED [ 24%] tests/test_htbt_http_session.py::test_init_session_obj::test_correct_usage PASSED [ 26%] tests/test_htbt_runtime_pid.py::test_save_pid::test_correct_usage PASSED [ 28%] tests/test_htbt_runtime_pid.py::test_save_pid::test_missing_directory PASSED [ 29%] tests/test_htbt_runtime_pid.py::test_rm_pid::test_correct_usage PASSED [ 31%] tests/test_htbt_runtime_pid.py::test_rm_pid::test_missing_file PASSED [ 33%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_config_dict PASSED [ 35%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_expires PASSED [ 36%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_to_name PASSED [ 38%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 40%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_cbspolling PASSED [ 42%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmon_startup PASSED [ 43%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmonitoring PASSED [ 45%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_fetch_json_file PASSED [ 47%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_misshtbtdmain PASSED [ 49%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ABATED PASSED [ 50%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ONSET PASSED [ 52%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ABATED PASSED [ 54%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ONSET PASSED [ 56%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_hb_common PASSED [ 57%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_1 PASSED [ 59%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_2 PASSED [ 61%] tests/test_htbtworker.py::Test_htbtworker::test_check_process_reconfiguration PASSED [ 63%] tests/test_htbtworker.py::Test_htbtworker::test_commit_and_close_db PASSED [ 64%] tests/test_htbtworker.py::Test_htbtworker::test_create_and_check_vnf2_table PASSED [ 66%] tests/test_htbtworker.py::Test_htbtworker::test_get_eventnamelist PASSED [ 68%] tests/test_htbtworker.py::Test_htbtworker::test_new_vnf_entry PASSED [ 70%] tests/test_htbtworker.py::Test_htbtworker::test_parse_event PASSED [ 71%] tests/test_htbtworker.py::Test_htbtworker::test_postgres_db_open PASSED [ 73%] tests/test_htbtworker.py::Test_htbtworker::test_process_msg PASSED [ 75%] tests/test_htbtworker.py::Test_htbtworker::test_sql_executor PASSED [ 77%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_database PASSED [ 78%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_process PASSED [ 80%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_db PASSED [ 82%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_hb_common PASSED [ 84%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_vnf_table_1 PASSED [ 85%] tests/test_misshtbtd.py::Test_misshtbtd::test_db_table_creation_check PASSED [ 87%] tests/test_misshtbtd.py::Test_misshtbtd::test_fetch_json_file PASSED [ 89%] tests/test_misshtbtd.py::Test_misshtbtd::test_main PASSED [ 91%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_common PASSED [ 92%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_env PASSED [ 94%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_file PASSED [ 96%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_exception_handling PASSED [ 98%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_from_file PASSED [100%] - generated xml file: /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/xunit-results.xml - ---------- coverage: platform linux, python 3.8.14-final-0 ----------- Name Stmts Miss Cover ------------------------------------------------------------------ miss_htbt_service/__init__.py 0 0 100% miss_htbt_service/cbs_polling.py 34 6 82% miss_htbt_service/check_health.py 24 4 83% miss_htbt_service/db_monitoring.py 136 15 89% miss_htbt_service/get_logger.py 20 0 100% miss_htbt_service/htbtworker.py 150 35 77% miss_htbt_service/misshtbtd.py 248 48 81% miss_htbt_service/mod/__init__.py 0 0 100% miss_htbt_service/mod/htbt_exit.py 12 2 83% miss_htbt_service/mod/htbt_get_cbs_config.py 56 13 77% miss_htbt_service/mod/htbt_http_session.py 10 2 80% miss_htbt_service/mod/htbt_io.py 7 0 100% miss_htbt_service/mod/htbt_runtime_pid.py 21 3 86% miss_htbt_service/mod/htbt_settings.py 51 0 100% miss_htbt_service/mod/htbt_vnf_table.py 140 23 84% ------------------------------------------------------------------ TOTAL 909 151 83% Coverage XML written to file coverage.xml ======================== 57 passed in 463.70s (0:07:43) ======================== py38: OK ✔ in 7 minutes 57.69 seconds py39: install_deps> python -I -m pip install coverage pytest pytest-cov -r requirements.txt py39: install_package_deps> python -I -m pip install HTTPretty==1.0.5 PyYAML==5.4 Wheel==0.36.2 cryptography==37.0.4 httplib2==0.19.0 onap_dcae_cbs_docker_client==2.2.1 psycopg2-binary==2.8.6 pyOpenSSL==20.0.1 requests==2.23.0 six==1.15.0 py39: install_package> python -I -m pip install --force-reinstall --no-deps /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/.tmp/package/2/miss_htbt_service-2.6.1.tar.gz py39: freeze> python -m pip freeze --all py39: certifi==2025.11.12,cffi==2.0.0,chardet==3.0.4,coverage==7.10.7,cryptography==37.0.4,exceptiongroup==1.3.1,httplib2==0.19.0,httpretty==1.0.5,idna==2.10,iniconfig==2.1.0,miss_htbt_service @ file:///w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/.tmp/package/2/miss_htbt_service-2.6.1.tar.gz#sha256=a3e76b22a8090f2750c8729a558a17cd65186334cc1ec76d32f5eb80f8c8734d,onap_dcae_cbs_docker_client==2.2.1,packaging==25.0,pip==25.3,pluggy==1.6.0,psycopg2-binary==2.8.6,pycparser==2.23,Pygments==2.19.2,pyOpenSSL==20.0.1,pyparsing==2.4.7,pytest==8.4.2,pytest-cov==7.0.0,PyYAML==5.4,requests==2.23.0,setuptools==80.9.0,six==1.15.0,tomli==2.3.0,typing_extensions==4.15.0,urllib3==1.25.11,wheel==0.36.2 py39: commands[0]> mkdir -p /tmp/opt/app/miss_htbt_service/logs/ py39: commands[1]> mkdir -p /tmp/opt/app/miss_htbt_service/tmp/ py39: commands[2]> mkdir -p /tmp/opt/app/miss_htbt_service/etc/ py39: commands[3]> mkdir -p /tmp/opt/app/miss_htbt_service/data/ py39: commands[4]> pytest --junitxml xunit-results.xml --cov miss_htbt_service --cov-report xml --cov-report term tests --verbose ============================= test session starts ============================== platform linux -- Python 3.9.14, pytest-8.4.2, pluggy-1.6.0 -- /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/.tox/py39/bin/python cachedir: .tox/py39/.pytest_cache rootdir: /w/workspace/dcaegen2-services-heartbeat-tox-verify-master configfile: pyproject.toml plugins: cov-7.0.0 collecting ... collected 57 items tests/test_binding.py::test_resolve_all PASSED [ 1%] tests/test_binding.py::test_full PASSED [ 3%] tests/test_check_health.py::test_check_health_get PASSED [ 5%] tests/test_check_health.py::test_check_health_post PASSED [ 7%] tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring PASSED [ 8%] tests/test_db_monitoring.py::Test_db_monitoring::test_db_monitoring_wrapper PASSED [ 10%] tests/test_db_monitoring.py::Test_db_monitoring::test_sendControlLoopEvent PASSED [ 12%] tests/test_get_logger.py::test_configure_logger PASSED [ 14%] tests/test_get_logger.py::test_configure_logger_with_name PASSED [ 15%] tests/test_htbt_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 17%] tests/test_htbt_exit.py::test_cleanup_and_exit::test_normal_exit PASSED [ 19%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_env_present PASSED [ 21%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_cbs_fallback_env_present PASSED [ 22%] tests/test_htbt_get_cbs_config.py::test_get_cbs_config::test_poll_cbs PASSED [ 24%] tests/test_htbt_http_session.py::test_init_session_obj::test_correct_usage PASSED [ 26%] tests/test_htbt_runtime_pid.py::test_save_pid::test_correct_usage PASSED [ 28%] tests/test_htbt_runtime_pid.py::test_save_pid::test_missing_directory PASSED [ 29%] tests/test_htbt_runtime_pid.py::test_rm_pid::test_correct_usage PASSED [ 31%] tests/test_htbt_runtime_pid.py::test_rm_pid::test_missing_file PASSED [ 33%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_config_dict PASSED [ 35%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_expires PASSED [ 36%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_dns_cache_ip_to_name PASSED [ 38%] tests/test_htbt_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 40%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_cbspolling PASSED [ 42%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmon_startup PASSED [ 43%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_dbmonitoring PASSED [ 45%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_fetch_json_file PASSED [ 47%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_misshtbtdmain PASSED [ 49%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ABATED PASSED [ 50%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VM_ONSET PASSED [ 52%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ABATED PASSED [ 54%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_sendControlLoop_VNF_ONSET PASSED [ 56%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_hb_common PASSED [ 57%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_1 PASSED [ 59%] tests/test_htbt_vnf_table.py::test_vnf_tables::test_validate_vnf_table_2 PASSED [ 61%] tests/test_htbtworker.py::Test_htbtworker::test_check_process_reconfiguration PASSED [ 63%] tests/test_htbtworker.py::Test_htbtworker::test_commit_and_close_db PASSED [ 64%] tests/test_htbtworker.py::Test_htbtworker::test_create_and_check_vnf2_table PASSED [ 66%] tests/test_htbtworker.py::Test_htbtworker::test_get_eventnamelist PASSED [ 68%] tests/test_htbtworker.py::Test_htbtworker::test_new_vnf_entry PASSED [ 70%] tests/test_htbtworker.py::Test_htbtworker::test_parse_event PASSED [ 71%] tests/test_htbtworker.py::Test_htbtworker::test_postgres_db_open PASSED [ 73%] tests/test_htbtworker.py::Test_htbtworker::test_process_msg PASSED [ 75%] tests/test_htbtworker.py::Test_htbtworker::test_sql_executor PASSED [ 77%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_database PASSED [ 78%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_process PASSED [ 80%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_db PASSED [ 82%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_hb_common PASSED [ 84%] tests/test_misshtbtd.py::Test_misshtbtd::test_create_update_vnf_table_1 PASSED [ 85%] tests/test_misshtbtd.py::Test_misshtbtd::test_db_table_creation_check PASSED [ 87%] tests/test_misshtbtd.py::Test_misshtbtd::test_fetch_json_file PASSED [ 89%] tests/test_misshtbtd.py::Test_misshtbtd::test_main PASSED [ 91%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_common PASSED [ 92%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_env PASSED [ 94%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_default_from_file PASSED [ 96%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_exception_handling PASSED [ 98%] tests/test_misshtbtd.py::Test_misshtbtd::test_read_hb_properties_from_file PASSED [100%] - generated xml file: /w/workspace/dcaegen2-services-heartbeat-tox-verify-master/xunit-results.xml - ================================ tests coverage ================================ _______________ coverage: platform linux, python 3.9.14-final-0 ________________ Name Stmts Miss Cover ------------------------------------------------------------------ miss_htbt_service/__init__.py 0 0 100% miss_htbt_service/cbs_polling.py 34 6 82% miss_htbt_service/check_health.py 24 4 83% miss_htbt_service/db_monitoring.py 136 15 89% miss_htbt_service/get_logger.py 20 0 100% miss_htbt_service/htbtworker.py 150 35 77% miss_htbt_service/misshtbtd.py 248 48 81% miss_htbt_service/mod/__init__.py 0 0 100% miss_htbt_service/mod/htbt_exit.py 12 2 83% miss_htbt_service/mod/htbt_get_cbs_config.py 56 13 77% miss_htbt_service/mod/htbt_http_session.py 10 2 80% miss_htbt_service/mod/htbt_io.py 7 0 100% miss_htbt_service/mod/htbt_runtime_pid.py 21 3 86% miss_htbt_service/mod/htbt_settings.py 51 0 100% miss_htbt_service/mod/htbt_vnf_table.py 140 23 84% ------------------------------------------------------------------ TOTAL 909 151 83% Coverage XML written to file coverage.xml ======================== 57 passed in 489.80s (0:08:09) ======================== py36: SKIP (1.08 seconds) py38: OK (477.69=setup[13.61]+cmd[0.00,0.00,0.00,0.00,464.07] seconds) py39: OK (501.68=setup[11.45]+cmd[0.00,0.00,0.00,0.00,490.22] seconds) congratulations :) (980.47 seconds)