Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Singer committed Jan 26, 2024
1 parent 131e7f5 commit 28be85e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 20 deletions.
8 changes: 8 additions & 0 deletions pkg/engine2/testdata/same_path_multiple_methods.expect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
44 changes: 24 additions & 20 deletions pkg/engine2/testdata/same_path_multiple_methods.iac-viz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

0 comments on commit 28be85e

Please sign in to comment.