Skip to content

Commit

Permalink
Merge pull request #11943 from jan-cerny/issue11940
Browse files Browse the repository at this point in the history
Populate _rule_id virtual template parameter in Automatus
  • Loading branch information
Mab879 authored May 6, 2024
2 parents 3796d75 + 8df9cbc commit b241dc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/ssg_test_suite/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def load_templated_tests(
def load_test(absolute_path, rule_template, local_env_yaml):
template_name = rule_template['name']
template_vars = rule_template['vars']
template_vars["_rule_id"] = local_env_yaml["rule_id"]
# Load template parameters and apply it to the test case.
maybe_template = ssg.templates.Template.load_template(_SHARED_TEMPLATES, template_name)
if maybe_template is not None:
Expand Down

0 comments on commit b241dc8

Please sign in to comment.