Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stack name duplication in integration test cases #183

Closed
hnishar opened this issue May 18, 2021 · 0 comments · Fixed by #195
Closed

Fix stack name duplication in integration test cases #183

hnishar opened this issue May 18, 2021 · 0 comments · Fixed by #195
Assignees
Labels
bug Something isn't working in-progress This issue is being actively worked on

Comments

@hnishar
Copy link
Contributor

hnishar commented May 18, 2021

Problem: When attempting to deploy multiple integ test cases of the same pattern, it fails sometimes due to the same stack name used by more than one integ test, for example, this and this are independent tests but since they both use the same stack name, when deploying it in an account, the second test case updates the stack created by the first test case.

Reproduction Steps

Deploy all integ tests of aws-apigateway-dynamodb pattern, it fails for the second or third test case

Error Log

4:19:55 PM | CREATE_FAILED | AWS::ApiGateway::Resource | test-api-gateway-d...stApi/Default/{id}
A sibling ({oddName}) of this resource already has a variable path part -- only one is allowed (Service: AmazonApiGateway; Status Code: 400; Error Code: BadRequestException; Request ID: a961d316-a971-4358-86f9-c5cfdf72a0dd; Proxy: null)
4:19:56 PM | UPDATE_ROLLBACK_IN_P | AWS::CloudFormation::Stack | test-apigateway-dynamodb-default
The following resource(s) failed to create: [testapigatewaydynamodbdefaultDynamoTable0720D92C, testapig
❌ test-apigateway-dynamodb-default failed: Error: The stack named test-apigateway-dynamodb-default failed to deploy: UPDATE_ROLLBACK_COMPLETE
The stack named test-apigateway-dynamodb-default failed to deploy: UPDATE_ROLLBACK_COMPLETE

Environment

  • CDK CLI Version : 1.101.0
  • CDK Framework Version: 1.101.0
  • AWS Solutions Constructs Version : 1.101.0
  • OS : Mac
  • Language :Typescript

This is 🐛 Bug Report

@hnishar hnishar added the bug Something isn't working label May 18, 2021
@hnishar hnishar self-assigned this May 18, 2021
@hnishar hnishar added the in-progress This issue is being actively worked on label May 24, 2021
@hnishar hnishar linked a pull request Jun 1, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in-progress This issue is being actively worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant