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(efs): support tagging for access point #24336

Merged
merged 9 commits into from
Mar 1, 2023

Conversation

ymhiroki
Copy link
Contributor

@ymhiroki ymhiroki commented Feb 25, 2023

Closes #20743 .


All Submissions:

Adding new Construct Runtime Dependencies:

  • This PR adds new construct runtime dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
  • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

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

@aws-cdk-automation aws-cdk-automation requested a review from a team February 25, 2023 14:11
@github-actions github-actions bot added bug This issue is a bug. effort/small Small work item – less than a day of effort p2 beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK labels Feb 25, 2023
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a comment

Choose a reason for hiding this comment

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

The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.

A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.

@aws-cdk-automation aws-cdk-automation dismissed their stale review February 25, 2023 14:28

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@ymhiroki
Copy link
Contributor Author

ymhiroki commented Feb 25, 2023

I referred to #7363 and #7445 to add a new tag for EFS::AccessPoint.

I implement it and add tests for aws-efs, however, tags are not generated and tests failed.
Precedent commits are too old and there are little examples about tests.

Do you have any ideas about my mistake?

aws-efs % yarn test
yarn run v1.22.19
$ cdk-test
FAIL test/access-point.test.js
  ● support tags for AccessPoint

    Template has 1 resources with type AWS::EFS::AccessPoint, but none match as expected.
    The 1 closest matches:
    MyAccessPoint9925F14C :: {
      "Properties": {
    !!   Missing key 'AccessPointTags'
        "AccessPointTags": undefined,
        "FileSystemId": { "Ref": "EfsFileSystem37910666" },
        "RootDirectory": {}
      },
      "Type": "AWS::EFS::AccessPoint"
    }

      105 |     const matchError = hasResourceProperties(this.template, type, props);
      106 |     if (matchError) {
    > 107 |       throw new Error(matchError);
          |             ^
      108 |     }
      109 |   }
      110 |

      at Template.hasResourceProperties (../assertions/lib/template.ts:107:13)
      at Object.<anonymous> (test/access-point.test.ts:42:29)

@corymhall
Copy link
Contributor

Do you have any ideas about my mistake?

@ymhiroki looks like you did everything correctly! I'm not sure why it was failing with that error, I just updated the branch so that it would build again and it's working now (just need to update the integ test snapshots).

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

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

Looks like this will need a few more snapshot updates. Putting this into changes requested to remove from our review queue for the moment.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review February 28, 2023 22:38

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Feb 28, 2023

Thank you for contributing! Your pull request will be updated from main 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
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 6037d03
  • 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 f9af47f into aws:main Mar 1, 2023
@mergify
Copy link
Contributor

mergify bot commented Mar 1, 2023

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

@ymhiroki ymhiroki deleted the ymhiroki/tagging-for-accesspoint branch March 1, 2023 03:23
homakk pushed a commit to homakk/aws-cdk that referenced this pull request Mar 28, 2023
Closes aws#20743 .

----

### All Submissions:

* [X] Have you followed the guidelines in our [Contributing guide?](https:/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https:/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [X] Have you added the new feature to an [integration test](https:/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
* [X] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*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
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK bug This issue is a bug. effort/small Small work item – less than a day of effort p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

efs.AccessPoint: Not possible to tag construct using Tags.of(...)
4 participants