Browse files

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
  • Loading branch information...
aakarshgopi committed Oct 30, 2018
1 parent 482ebc6 commit 164661376e18f21cac6b59d45fa003e0ef6ca76a
Showing with 7 additions and 0 deletions.
  1. +7 −0 browbeat/
@@ -464,6 +464,13 @@ def compare_metadata(self, index, role, uuids):
"Host [{}] missing ".format(host))
for service in meta[0][host]:
if service not in meta[1][host].keys():
"UUID {} "
"- Missing Service : "
"Host [{}] Service [{}]".format(
uuids[1], host, service))
for options in meta[0][host][service].keys():
if options not in meta[1][host][service]:

0 comments on commit 1646613

Please sign in to comment.