Skip to content

chore(assertions): migrate more modules to use assertions#15857

Merged
mergify[bot] merged 24 commits intomasterfrom
nija-at/exppkgs-assertions
Aug 3, 2021
Merged

chore(assertions): migrate more modules to use assertions#15857
mergify[bot] merged 24 commits intomasterfrom
nija-at/exppkgs-assertions

Conversation

@nija-at
Copy link
Copy Markdown
Contributor

@nija-at nija-at commented Aug 2, 2021

Added a method Template.toJSON() to get the object
representation of the CloudFormation template.
This is most useful for snapshot testing.

BREAKING CHANGE: Template.fromTemplate() is now
renamed to Template.fromJSON() to provide clarity.


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

@nija-at nija-at requested review from a team and njlynch August 2, 2021 17:25
@nija-at nija-at self-assigned this Aug 2, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Aug 2, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Aug 2, 2021
Comment on lines +270 to +272
expect(Template.fromStack(stack).findResources('AWS::ApiGatewayV2::VpcLink', {
Name: 'Link-2',
});
}).length).toEqual(0);
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.

This feels a little clunky...is there a plan to add resource properties to resourceCountIs? Or for supporting a not operator that catches assertion errors/throws if nothing was thrown?

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.

Opened a feature request - #15868

@nija-at nija-at requested a review from eladb August 3, 2021 08:37
Copy link
Copy Markdown
Contributor

@eladb eladb left a comment

Choose a reason for hiding this comment

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

Responded

@nija-at nija-at requested review from BenChaimberg and eladb August 3, 2021 10:11
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 3, 2021

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: c5a77ac
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@mergify mergify bot merged commit 45b484c into master Aug 3, 2021
@mergify mergify bot deleted the nija-at/exppkgs-assertions branch August 3, 2021 15:25
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 3, 2021

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).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Aug 3, 2021
Added a method `Template.toJSON()` to get the object
representation of the CloudFormation template.
This is most useful for snapshot testing.

BREAKING CHANGE: `Template.fromTemplate()` is now
renamed to `Template.fromJSON()` to provide clarity.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
Added a method `Template.toJSON()` to get the object
representation of the CloudFormation template.
This is most useful for snapshot testing.

BREAKING CHANGE: `Template.fromTemplate()` is now
renamed to `Template.fromJSON()` to provide clarity.

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
david-doyle-as24 pushed a commit to david-doyle-as24/aws-cdk that referenced this pull request Sep 7, 2021
Added a method `Template.toJSON()` to get the object
representation of the CloudFormation template.
This is most useful for snapshot testing.

BREAKING CHANGE: `Template.fromTemplate()` is now
renamed to `Template.fromJSON()` to provide clarity.

----

*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

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants