Skip to content

chore(apigateway): migrated tests to assertions#18562

Merged
mergify[bot] merged 6 commits intomasterfrom
otaviom/apigateway-assertions
Jan 24, 2022
Merged

chore(apigateway): migrated tests to assertions#18562
mergify[bot] merged 6 commits intomasterfrom
otaviom/apigateway-assertions

Conversation

@otaviomacedo
Copy link
Copy Markdown
Contributor


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jan 20, 2022

@otaviomacedo otaviomacedo requested a review from a team January 20, 2022 16:17
@github-actions github-actions bot added the @aws-cdk/aws-apigateway Related to Amazon API Gateway label Jan 20, 2022
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jan 20, 2022
'',
[
stringLike('*#set($includeQueryString = true)*'),
Match.stringLikeRegexp('#set\\(\\$includeQueryString = true\\)'),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woohoo!

// THEN
// should have an api key with no props defined.
expect(stack).toHaveResource('AWS::ApiGateway::ApiKey', undefined, ResourcePart.CompleteDefinition);
Template.fromStack(stack).hasResource('AWS::ApiGateway::ApiKey', Match.anyValue());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this isn't exactly "should have an api key with no props defined". We should be able to assert this (reference PR):

Template.fromStack(stack).hasResourceProperties('AWS::ApiGateway::ApiKey', Match.absent());

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, makes sense. I'll fix it.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 20, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@kaizencc kaizencc added the pr/do-not-merge This PR should not be merged at this time. label Jan 20, 2022
@kaizencc
Copy link
Copy Markdown
Contributor

flagging as DNM for just the one comment that I feel breaks fidelity. up to you though.

@otaviomacedo otaviomacedo removed the pr/do-not-merge This PR should not be merged at this time. label Jan 24, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 24, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit e0b7d99 into master Jan 24, 2022
@mergify mergify bot deleted the otaviom/apigateway-assertions branch January 24, 2022 11:45
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jan 24, 2022

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: bef43f1
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

LukvonStrom pushed a commit to LukvonStrom/aws-cdk that referenced this pull request Jan 26, 2022
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@aws-cdk/aws-apigateway Related to Amazon API Gateway contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants