Skip to content

Commit

Permalink
Add changes
Browse files Browse the repository at this point in the history
Signed-off-by: Divya Madala <[email protected]>
  • Loading branch information
Divyaasm committed Sep 11, 2024
1 parent 05af3ab commit d2c6186
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/validation_workflow/rpm/validation_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,10 @@ def validate_metadata(self, product_type: str) -> None:
elif value == 'arm64':
assert meta_map.get(key) == 'aarch64'
else:
assert ' '.join(meta_map.get(key).split()) == ' '.join(value.split())
print(repr(meta_map.get(key)), repr(value))
print(meta_map.get(key), type(meta_map.get(key)))
print(value, type(value))
print(f"Meta data for {key} is validated")
if meta_map.get(key) == value:
logging.info(f"Meta data for {key} is validated")
else:
raise AssertionError(f'Meta data for {key} is not validated')

logging.info(f"Validation for {product_type} meta data of RPM distribution completed.")

Expand Down

0 comments on commit d2c6186

Please sign in to comment.