Skip to content

Commit

Permalink
Tear down in custom policies integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
inbalavital committed Aug 18, 2024
1 parent 0a6a599 commit 013f7e8
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
CustomPoliciesIntegration
from checkov.common.bridgecrew.platform_integration import BcPlatformIntegration
from checkov.common.checks_infra.checks_parser import GraphCheckParser
from checkov.common.checks_infra.registry import Registry, get_all_graph_checks_registries, get_graph_checks_registry
from checkov.common.checks_infra.registry import Registry, get_all_graph_checks_registries, get_graph_checks_registry, \
GraphSupportedIACFrameworks
from checkov.common.models.enums import CheckResult
from checkov.common.output.record import Record
from checkov.common.output.report import Report
Expand All @@ -19,10 +20,8 @@

class TestCustomPoliciesIntegration(unittest.TestCase):
def tearDown(self) -> None:
get_graph_checks_registry("cloudformation").checks = []
get_graph_checks_registry("terraform").checks = []
get_graph_checks_registry("kubernetes").checks = []
get_graph_checks_registry("bicep").checks = []
for framework in GraphSupportedIACFrameworks:
get_graph_checks_registry(framework.value.lower()).checks = []

def test_integration_valid(self):
instance = BcPlatformIntegration()
Expand Down

0 comments on commit 013f7e8

Please sign in to comment.