Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lirshindalman committed Nov 27, 2024
1 parent 8418fe3 commit ddc08ad
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/graph_builder/variable_rendering/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def evaluate_vertex_attribute_from_edge(self, edge_list: list[Edge]) -> None:
attr_path, attr_value = self.extract_dest_attribute_path_and_value(dest_index=edge.dest,
origin_value=value_to_eval)
if not attr_value:
return
continue

'''if the arg start with '[parameters'/ '[variables' its mean we need to eval the all attribute
like here - "addressPrefix": "[parameters('subnetAddressPrefix')]" '''
Expand Down
26 changes: 13 additions & 13 deletions tests/arm/graph_builder/checks/test_yaml_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,23 @@ def setUp(self) -> None:
warnings.filterwarnings("ignore", category=ResourceWarning)
warnings.filterwarnings("ignore", category=DeprecationWarning)

def test_AzureSpringCloudConfigWithVnet(self):
self.go("AzureSpringCloudConfigWithVnet")

def test_AzureMLWorkspacePublicNetwork(self):
self.go("AzureMLWorkspacePublicNetwork")

def test_SynapseLogMonitoringEnabledForSQLPool(self):
self.go("SynapseLogMonitoringEnabledForSQLPool")
# def test_AzureSpringCloudConfigWithVnet(self):
# self.go("AzureSpringCloudConfigWithVnet")
#
# def test_AzureMLWorkspacePublicNetwork(self):
# self.go("AzureMLWorkspacePublicNetwork")
#
# def test_SynapseLogMonitoringEnabledForSQLPool(self):
# self.go("SynapseLogMonitoringEnabledForSQLPool")

def test_SynapseSQLPoolHasSecurityAlertPolicy(self):
self.go("SynapseSQLPoolHasSecurityAlertPolicy")

def test_SynapseSQLPoolHasVulnerabilityAssessment(self):
self.go("SynapseSQLPoolHasVulnerabilityAssessment")

def test_SynapseWorkspaceHasExtendedAuditLogs(self):
self.go("SynapseWorkspaceHasExtendedAuditLogs")
# def test_SynapseSQLPoolHasVulnerabilityAssessment(self):
# self.go("SynapseSQLPoolHasVulnerabilityAssessment")
#
# def test_SynapseWorkspaceHasExtendedAuditLogs(self):
# self.go("SynapseWorkspaceHasExtendedAuditLogs")

def test_registry_load(self):
registry = self.get_checks_registry()
Expand Down

0 comments on commit ddc08ad

Please sign in to comment.