diff --git a/tests/integration/tier1/checks-after-conversion/test_flag_system_as_converted.py b/tests/integration/tier1/checks-after-conversion/test_flag_system_as_converted.py index 4bf4508716..937b7a7f6b 100644 --- a/tests/integration/tier1/checks-after-conversion/test_flag_system_as_converted.py +++ b/tests/integration/tier1/checks-after-conversion/test_flag_system_as_converted.py @@ -35,7 +35,11 @@ def test_flag_system_as_converted(shell): with open(C2R_MIGRATION_RESULTS, "r") as data: data_json = json.load(data) # If some difference between generated json and its schema invoke exception - jsonschema.validate(instance=data_json, schema=C2R_MIGRATION_RESULTS_SCHEMA) + try: + jsonschema.validate(instance=data_json, schema=C2R_MIGRATION_RESULTS_SCHEMA) + except Exception: + print(data_json) + raise if submgr_disabled_var not in query: assert os.path.exists(C2R_RHSM_CUSTOM_FACTS) @@ -43,4 +47,8 @@ def test_flag_system_as_converted(shell): with open(C2R_RHSM_CUSTOM_FACTS, "r") as data: data_json = json.load(data) # If some difference between generated json and its schema invoke exception - jsonschema.validate(instance=data_json, schema=C2R_RHSM_CUSTOM_FACTS_SCHEMA) + try: + jsonschema.validate(instance=data_json, schema=C2R_RHSM_CUSTOM_FACTS_SCHEMA) + except Exception: + print(data_json) + raise