Skip to content

Commit 1646613

Browse files
committed
Added more testing to compare soft metadata in CLI
One of the edge cases that was missing was that of a service not being present in uuid 2's metadata, added a simple test case to ensure it's present in both datasets before continuing. Change-Id: Ic2c49fb6dc348acf5dff8291008200a24001340f
1 parent 482ebc6 commit 1646613

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

browbeat/elastic.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,13 @@ def compare_metadata(self, index, role, uuids):
464464
"Host [{}] missing ".format(host))
465465
continue
466466
for service in meta[0][host]:
467+
if service not in meta[1][host].keys():
468+
self.logger.debug(
469+
"UUID {} "
470+
"- Missing Service : "
471+
"Host [{}] Service [{}]".format(
472+
uuids[1], host, service))
473+
continue
467474
for options in meta[0][host][service].keys():
468475
if options not in meta[1][host][service]:
469476
self.logger.debug(

0 commit comments

Comments
 (0)