diff --git a/pkg/engine2/testdata/same_path_multiple_methods.expect.yaml b/pkg/engine2/testdata/same_path_multiple_methods.expect.yaml index ed24188f1..4c30f82aa 100644 --- a/pkg/engine2/testdata/same_path_multiple_methods.expect.yaml +++ b/pkg/engine2/testdata/same_path_multiple_methods.expect.yaml @@ -8,6 +8,10 @@ resources: Triggers: rest_api_0_integration_0: rest_api_0_integration_0 rest_api_0_integration_0_method: rest_api_0_integration_0_method + rest_api_0_integration_1: rest_api_0_integration_1 + rest_api_0_integration_1_method: rest_api_0_integration_1_method + rest_api_0_integration_2: rest_api_0_integration_2 + rest_api_0_integration_2_method: rest_api_0_integration_2_method aws:rest_api:rest_api_0: BinaryMediaTypes: - application/octet-stream @@ -64,7 +68,11 @@ edges: aws:api_stage:rest_api_0:api_stage-0 -> aws:api_deployment:rest_api_0:api_deployment-0: aws:api_stage:rest_api_0:api_stage-0 -> aws:rest_api:rest_api_0: aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_integration:rest_api_0:rest_api_0_integration_0: + aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_integration:rest_api_0:rest_api_0_integration_1: + aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_integration:rest_api_0:rest_api_0_integration_2: aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_method:rest_api_0:rest_api_0_integration_0_method: + aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_method:rest_api_0:rest_api_0_integration_1_method: + aws:api_deployment:rest_api_0:api_deployment-0 -> aws:api_method:rest_api_0:rest_api_0_integration_2_method: aws:api_deployment:rest_api_0:api_deployment-0 -> aws:rest_api:rest_api_0: aws:rest_api:rest_api_0 -> aws:api_integration:rest_api_0:rest_api_0_integration_0: aws:rest_api:rest_api_0 -> aws:api_integration:rest_api_0:rest_api_0_integration_1: diff --git a/pkg/engine2/testdata/same_path_multiple_methods.iac-viz.yaml b/pkg/engine2/testdata/same_path_multiple_methods.iac-viz.yaml index fdeb48c3c..7a70ea924 100644 --- a/pkg/engine2/testdata/same_path_multiple_methods.iac-viz.yaml +++ b/pkg/engine2/testdata/same_path_multiple_methods.iac-viz.yaml @@ -5,42 +5,46 @@ resources: aws:api_resource:rest_api_0/api_resource-1: aws:api_resource:rest_api_0/api_resource-1 -> rest_api/rest_api_0: + aws:api_resource:rest_api_0/api_resource-2: + + aws:api_resource:rest_api_0/api_resource-2 -> rest_api/rest_api_0: aws:api_method:rest_api_0/rest_api_0_integration_0_method: aws:api_method:rest_api_0/rest_api_0_integration_0_method -> aws:api_resource:rest_api_0/api_resource-1: aws:api_method:rest_api_0/rest_api_0_integration_0_method -> rest_api/rest_api_0: + aws:api_method:rest_api_0/rest_api_0_integration_1_method: + + aws:api_method:rest_api_0/rest_api_0_integration_1_method -> aws:api_resource:rest_api_0/api_resource-2: + aws:api_method:rest_api_0/rest_api_0_integration_1_method -> rest_api/rest_api_0: + aws:api_method:rest_api_0/rest_api_0_integration_2_method: + + aws:api_method:rest_api_0/rest_api_0_integration_2_method -> aws:api_resource:rest_api_0/api_resource-2: + aws:api_method:rest_api_0/rest_api_0_integration_2_method -> rest_api/rest_api_0: aws:api_integration:rest_api_0/rest_api_0_integration_0: aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: aws:api_integration:rest_api_0/rest_api_0_integration_0 -> aws:api_resource:rest_api_0/api_resource-1: aws:api_integration:rest_api_0/rest_api_0_integration_0 -> rest_api/rest_api_0: - aws:api_resource:rest_api_0/api_resource-2: + aws:api_integration:rest_api_0/rest_api_0_integration_1: - aws:api_resource:rest_api_0/api_resource-2 -> rest_api/rest_api_0: + aws:api_integration:rest_api_0/rest_api_0_integration_1 -> aws:api_method:rest_api_0/rest_api_0_integration_1_method: + aws:api_integration:rest_api_0/rest_api_0_integration_1 -> aws:api_resource:rest_api_0/api_resource-2: + aws:api_integration:rest_api_0/rest_api_0_integration_1 -> rest_api/rest_api_0: + aws:api_integration:rest_api_0/rest_api_0_integration_2: + + aws:api_integration:rest_api_0/rest_api_0_integration_2 -> aws:api_method:rest_api_0/rest_api_0_integration_2_method: + aws:api_integration:rest_api_0/rest_api_0_integration_2 -> aws:api_resource:rest_api_0/api_resource-2: + aws:api_integration:rest_api_0/rest_api_0_integration_2 -> rest_api/rest_api_0: aws:api_deployment:rest_api_0/api_deployment-0: aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_integration:rest_api_0/rest_api_0_integration_0: + aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_integration:rest_api_0/rest_api_0_integration_1: + aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_integration:rest_api_0/rest_api_0_integration_2: aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_method:rest_api_0/rest_api_0_integration_0_method: + aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_method:rest_api_0/rest_api_0_integration_1_method: + aws:api_deployment:rest_api_0/api_deployment-0 -> aws:api_method:rest_api_0/rest_api_0_integration_2_method: aws:api_deployment:rest_api_0/api_deployment-0 -> rest_api/rest_api_0: - aws:api_method:rest_api_0/rest_api_0_integration_2_method: - - aws:api_method:rest_api_0/rest_api_0_integration_2_method -> aws:api_resource:rest_api_0/api_resource-2: - aws:api_method:rest_api_0/rest_api_0_integration_2_method -> rest_api/rest_api_0: - aws:api_method:rest_api_0/rest_api_0_integration_1_method: - - aws:api_method:rest_api_0/rest_api_0_integration_1_method -> aws:api_resource:rest_api_0/api_resource-2: - aws:api_method:rest_api_0/rest_api_0_integration_1_method -> rest_api/rest_api_0: aws:api_stage:rest_api_0/api_stage-0: aws:api_stage:rest_api_0/api_stage-0 -> aws:api_deployment:rest_api_0/api_deployment-0: aws:api_stage:rest_api_0/api_stage-0 -> rest_api/rest_api_0: - aws:api_integration:rest_api_0/rest_api_0_integration_2: - - aws:api_integration:rest_api_0/rest_api_0_integration_2 -> aws:api_method:rest_api_0/rest_api_0_integration_2_method: - aws:api_integration:rest_api_0/rest_api_0_integration_2 -> aws:api_resource:rest_api_0/api_resource-2: - aws:api_integration:rest_api_0/rest_api_0_integration_2 -> rest_api/rest_api_0: - aws:api_integration:rest_api_0/rest_api_0_integration_1: - - aws:api_integration:rest_api_0/rest_api_0_integration_1 -> aws:api_method:rest_api_0/rest_api_0_integration_1_method: - aws:api_integration:rest_api_0/rest_api_0_integration_1 -> aws:api_resource:rest_api_0/api_resource-2: - aws:api_integration:rest_api_0/rest_api_0_integration_1 -> rest_api/rest_api_0: