Skip to content

Commit

Permalink
Merge pull request #462 from awslabs/fix-rdklib-test-templates
Browse files Browse the repository at this point in the history
remove hardcoded rule name from rdklib unit tests
  • Loading branch information
depaolism authored Sep 27, 2023
2 parents 9da09ad + 8c2284d commit 396f58b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions rdk/template/runtime/python3.10-lib/rule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Main Code #
#############

MODULE = __import__("check_security_hub_aggregator")
RULE = MODULE.check_security_hub_aggregator()
MODULE = __import__('<%RuleName%>')
RULE = MODULE.<%RuleName%>()

CLIENT_FACTORY = MagicMock()

Expand Down
4 changes: 2 additions & 2 deletions rdk/template/runtime/python3.11-lib/rule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Main Code #
#############

MODULE = __import__("check_security_hub_aggregator")
RULE = MODULE.check_security_hub_aggregator()
MODULE = __import__('<%RuleName%>')
RULE = MODULE.<%RuleName%>()

CLIENT_FACTORY = MagicMock()

Expand Down
4 changes: 2 additions & 2 deletions rdk/template/runtime/python3.7-lib/rule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Main Code #
#############

MODULE = __import__("check_security_hub_aggregator")
RULE = MODULE.check_security_hub_aggregator()
MODULE = __import__('<%RuleName%>')
RULE = MODULE.<%RuleName%>()

CLIENT_FACTORY = MagicMock()

Expand Down
4 changes: 2 additions & 2 deletions rdk/template/runtime/python3.8-lib/rule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Main Code #
#############

MODULE = __import__("check_security_hub_aggregator")
RULE = MODULE.check_security_hub_aggregator()
MODULE = __import__('<%RuleName%>')
RULE = MODULE.<%RuleName%>()

CLIENT_FACTORY = MagicMock()

Expand Down
4 changes: 2 additions & 2 deletions rdk/template/runtime/python3.9-lib/rule_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
# Main Code #
#############

MODULE = __import__("check_security_hub_aggregator")
RULE = MODULE.check_security_hub_aggregator()
MODULE = __import__('<%RuleName%>')
RULE = MODULE.<%RuleName%>()

CLIENT_FACTORY = MagicMock()

Expand Down

0 comments on commit 396f58b

Please sign in to comment.