From 0b60ccdf41e29d4500d61fed8e757c548d42f3bf Mon Sep 17 00:00:00 2001 From: Divya Madala Date: Fri, 6 Sep 2024 16:42:04 -0700 Subject: [PATCH] Test rpm metadata changes Signed-off-by: Divya Madala --- src/validation_workflow/rpm/validation_rpm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/validation_workflow/rpm/validation_rpm.py b/src/validation_workflow/rpm/validation_rpm.py index 718e37c379..6152c114ae 100644 --- a/src/validation_workflow/rpm/validation_rpm.py +++ b/src/validation_workflow/rpm/validation_rpm.py @@ -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": @@ -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.")