Skip to content

Commit

Permalink
Test rpm metadata 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 6, 2024
1 parent 9ea8cfd commit 0b60ccd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/validation_workflow/rpm/validation_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def validate_metadata(self, product_type: str) -> None:
description_index = stdout.find(line)
meta_map[key] = stdout[description_index + len(line):].strip()
break
logging.info(meta_map)

for key, value in ref_map.items():
if key == "Architecture":
Expand All @@ -102,7 +103,8 @@ def validate_metadata(self, product_type: str) -> None:
elif value == 'arm64':
assert meta_map.get(key) == 'aarch64'
else:
assert meta_map.get(key) == value
if meta_map.get(key) == value:
logging.info(value)
logging.info(f"Meta data for {key} is validated")

logging.info("Validation for meta data of RPM distribution completed.")
Expand Down

0 comments on commit 0b60ccd

Please sign in to comment.