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 2c2ea0e commit 09dcd76
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/validation_workflow/rpm/validation_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ def validate_signature(self) -> None:
present_key = []
for line in stdout.split('\n'):
key = line.split(':')[0].strip()
assert "OK" in line.split(':', 1)[1].strip()
logging.info(f"{key} is validated as: {line}")
present_key.append(key)
if "OK" in line.split(':', 1)[1].strip():
logging.info(f"{key} is validated as: {line}")
present_key.append(key)
logging.info("Validation of all key digests starts: ")
for digest in key_list:
assert digest in present_key
logging.info(f'Key digest "{digest}" is validated to be present.')
if digest in present_key:
logging.info(f'Key digest "{digest}" is validated to be present.')
logging.info("Validation for signature of RPM distribution completed.")

0 comments on commit 09dcd76

Please sign in to comment.