diff options
author | PrakashH <pbhandar@techmahindra.com> | 2019-03-12 14:23:26 +0000 |
---|---|---|
committer | PrakashH <pbhandar@techmahindra.com> | 2019-03-12 14:23:26 +0000 |
commit | 42f667aa9ff066f821a5a444fd496e5d163d99fe (patch) | |
tree | 7c9dc83b38d62301920f02ff8bc968fd9588a0d0 /miss_htbt_service/db_monitoring.py | |
parent | 28084d770c86b3a42cd55c7146dffd4a593f2a02 (diff) |
Test coverage for heartbeat MS
Increased code coverage Issue-ID: DCAEGEN2-1260
Change-Id: Ide4c030d3228ac5594ac1ee7403ad6cfa102a64e
Signed-off-by: PrakashH <pbhandar@techmahindra.com>
Diffstat (limited to 'miss_htbt_service/db_monitoring.py')
-rw-r--r-- | miss_htbt_service/db_monitoring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miss_htbt_service/db_monitoring.py b/miss_htbt_service/db_monitoring.py index 3de43e3..fd00f8a 100644 --- a/miss_htbt_service/db_monitoring.py +++ b/miss_htbt_service/db_monitoring.py @@ -207,7 +207,7 @@ def db_monitoring(current_pid,json_file,user_name,password,ip_address,port_num,d cur.execute(update_query) connection_db.commit() - else: + else: #pragma: no cover msg="DBM:DB Monitoring is ignored for %s since validity flag is 0" %(event_name) _logger.info(msg) @@ -219,7 +219,7 @@ def db_monitoring(current_pid,json_file,user_name,password,ip_address,port_num,d """ Delete the VNF entry in table1 and delete all the source ids related to vnfs in table2 """ - else: + else: #pragma: no cover msg="DBM:Inactive instance or hb_common state is not RUNNING" _logger.info(msg) pm.commit_and_close_db(connection_db) |