Skip to content

Commit

Permalink
[uss_qualifier] Fix bug in tested_requirements with in-configuration …
Browse files Browse the repository at this point in the history
…suite definitions (#271)

Fix bug in tested_requirements with in-configuration suite definitions
  • Loading branch information
BenjaminPelletier authored Oct 20, 2023
1 parent ba6597c commit 71538a0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions monitoring/uss_qualifier/reports/tested_requirements.py
Original file line number Diff line number Diff line change
@@ -517,22 +517,22 @@ def _populate_breakdown_with_action_declaration(
load_dict_with_references(action.test_suite.suite_type),
TestSuiteDefinition,
)
for action in suite_def.actions:
_populate_breakdown_with_action_declaration(breakdown, action, req_set)
for a in suite_def.actions:
_populate_breakdown_with_action_declaration(breakdown, a, req_set)
elif (
"suite_definition" in action.test_suite
and action.test_suite.suite_definition
):
for action in action.test_suite.suite_definition:
_populate_breakdown_with_action_declaration(breakdown, action, req_set)
for a in action.test_suite.suite_definition.actions:
_populate_breakdown_with_action_declaration(breakdown, a, req_set)
else:
raise ValueError(f"Test suite action missing suite type or definition")
elif action_type == ActionType.ActionGenerator:
potential_actions = list_potential_actions_for_action_generator_definition(
action.action_generator
)
for action in potential_actions:
_populate_breakdown_with_action_declaration(breakdown, action, req_set)
for a in potential_actions:
_populate_breakdown_with_action_declaration(breakdown, a, req_set)
else:
raise NotImplementedError(f"Unsupported test suite action type: {action_type}")

0 comments on commit 71538a0

Please sign in to comment.