Skip to content

Commit 69aef1a

Browse files
committed
Remove YAML extension from test case name
The validations are specified as Ansible playbooks to be executed. Hence, in output, we see things like `invoke_tlse_playbooks.yml` as case name in generated XML. This change alters it to be presented as `invoke_tlse_playbooks`.
1 parent 97a8022 commit 69aef1a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

roles/validations/filter_plugins/cifmw_validations_xml_filter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
_internal_results:
2222
test-1:
2323
time: 2.54512
24-
test-case-2:
24+
test-2.yml:
2525
time: 4.5450345
2626
error: "error message"
2727
ansible.builtin.set_fact:
@@ -80,6 +80,7 @@ def __map_xml_results(cls, test_results):
8080
},
8181
)
8282
for name, data in test_results.items():
83+
name = name.replace(".yml", "").replace(".yaml", "")
8384
attributes = {"name": name, "classname": "validations"}
8485
if "time" in data:
8586
attributes["time"] = cls.__float_conversion(data["time"])

0 commit comments

Comments
 (0)