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
This commit is contained in:
agopi 2018-10-30 16:28:58 -04:00
parent 482ebc6f5d
commit 164661376e
1 changed files with 7 additions and 0 deletions

View File

@ -464,6 +464,13 @@ class Elastic(object):
"Host [{}] missing ".format(host))
continue
for service in meta[0][host]:
if service not in meta[1][host].keys():
self.logger.debug(
"UUID {} "
"- Missing Service : "
"Host [{}] Service [{}]".format(
uuids[1], host, service))
continue
for options in meta[0][host][service].keys():
if options not in meta[1][host][service]:
self.logger.debug(