Skip to content

Commit

Permalink
fix test and remove import
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Amelchenko committed Aug 28, 2024
1 parent c80a726 commit 233e15b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion checkov/terraform/plan_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from checkov.terraform.plan_parser import TF_PLAN_RESOURCE_ADDRESS
from checkov.terraform.plan_utils import create_definitions, build_definitions_context
from checkov.terraform.deep_analysis_plan_graph_manager import DeepAnalysisGraphManager
from common.util import data_structures_utils

_TerraformPlanContext: TypeAlias = "dict[str, dict[str, Any]]"
_TerraformPlanDefinitions: TypeAlias = "dict[str, dict[str, Any]]"
Expand Down
4 changes: 2 additions & 2 deletions tests/terraform/parser/test_plan_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def test_provider_is_included(self):
valid_plan_path = current_dir + "/resources/plan_tags/tfplan.json"
tf_definition, _ = parse_tf_plan(valid_plan_path, {})
file_provider_definition = tf_definition['provider']
self.assertTrue(file_provider_definition) # assert a provider exists
assert file_provider_definition[0].get('aws',{}).get('region', None) == 'us-west-2'
self.assertTrue(file_provider_definition) # assert a provider exists
assert file_provider_definition[0].get('aws', {}).get('default').get('region', None) == ['us-west-2']

def test_more_tags_values_are_flattened(self):
current_dir = os.path.dirname(os.path.realpath(__file__))
Expand Down

0 comments on commit 233e15b

Please sign in to comment.