Skip to content

chore(assertions): rename TemplateAssertions to Template#15823

Merged
mergify[bot] merged 2 commits intomasterfrom
nija-at/assertions-rename
Aug 1, 2021
Merged

chore(assertions): rename TemplateAssertions to Template#15823
mergify[bot] merged 2 commits intomasterfrom
nija-at/assertions-rename

Conversation

@nija-at
Copy link
Copy Markdown
Contributor

@nija-at nija-at commented Jul 29, 2021

The class TemplateAssertions is already part of the
@aws-cdk/assertions module. The word 'assertions' is redundant.

Further, this class now has the method findResources() which is not an
assertion.
All assertion methods are named in a way that makes it clear that it is
an assertion, viz., hasResource(), resourceCountIs(),
templateMatches().

BREAKING CHANGE: TemplateAssertions is now renamed to
Template.


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

The class `TemplateAssertions` is already part of the
`@aws-cdk/assertions` module. The word 'assertions' is now redundant.

Further, this class now has the method `findResources()` which is not an
assertion anymore.
All assertion methods are named in a way that makes it clear that it is
an assertion, viz., `hasResource()`, `resourceCountIs()`,
`templateMatches()`.
@nija-at nija-at requested review from a team and eladb July 29, 2021 16:47
@nija-at nija-at self-assigned this Jul 29, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 29, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jul 29, 2021
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 26339f2
  • 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 823dfda into master Aug 1, 2021
@mergify mergify bot deleted the nija-at/assertions-rename branch August 1, 2021 13:37
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 1, 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
The class `TemplateAssertions` is already part of the
`@aws-cdk/assertions` module. The word 'assertions' is redundant.

Further, this class now has the method `findResources()` which is not an
assertion.
All assertion methods are named in a way that makes it clear that it is
an assertion, viz., `hasResource()`, `resourceCountIs()`,
`templateMatches()`.

BREAKING CHANGE: `TemplateAssertions` is now renamed to
`Template`.

----

*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
The class `TemplateAssertions` is already part of the
`@aws-cdk/assertions` module. The word 'assertions' is redundant.

Further, this class now has the method `findResources()` which is not an
assertion.
All assertion methods are named in a way that makes it clear that it is
an assertion, viz., `hasResource()`, `resourceCountIs()`,
`templateMatches()`.

BREAKING CHANGE: `TemplateAssertions` is now renamed to
`Template`.

----

*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
The class `TemplateAssertions` is already part of the
`@aws-cdk/assertions` module. The word 'assertions' is redundant.

Further, this class now has the method `findResources()` which is not an
assertion.
All assertion methods are named in a way that makes it clear that it is
an assertion, viz., `hasResource()`, `resourceCountIs()`,
`templateMatches()`.

BREAKING CHANGE: `TemplateAssertions` is now renamed to
`Template`.

----

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

3 participants