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

service/fms: Fix acceptance testing and use API model regular expression for resource_type and resource_type_list argument plan time validation #18600

Merged
merged 4 commits into from
Apr 15, 2021

Conversation

bflad
Copy link
Contributor

@bflad bflad commented Apr 6, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #17399
Closes #18551

Output from acceptance testing in AWS Commercial (main account):

--- PASS: TestAccAWSFms_serial (6.69s)
    --- PASS: TestAccAWSFms_serial/AdminAccount (1.13s)
        --- SKIP: TestAccAWSFms_serial/AdminAccount/basic (1.13s)
    --- PASS: TestAccAWSFms_serial/Policy (5.56s)
        --- SKIP: TestAccAWSFms_serial/Policy/tags (0.10s)
        --- SKIP: TestAccAWSFms_serial/Policy/basic (0.10s)
        --- SKIP: TestAccAWSFms_serial/Policy/cloudfrontDistribution (0.09s)
        --- SKIP: TestAccAWSFms_serial/Policy/includeMap (0.11s)
        --- SKIP: TestAccAWSFms_serial/Policy/update (5.16s)

Output from acceptance testing in AWS Commercial (Organizations account):

--- PASS: TestAccAWSFms_serial (8148.92s)
    --- PASS: TestAccAWSFms_serial/AdminAccount (1260.56s)
        --- PASS: TestAccAWSFms_serial/AdminAccount/basic (1260.56s)
    --- PASS: TestAccAWSFms_serial/Policy (6888.35s)
        --- PASS: TestAccAWSFms_serial/Policy/cloudfrontDistribution (2277.23s)
        --- PASS: TestAccAWSFms_serial/Policy/includeMap (1253.20s)
        --- PASS: TestAccAWSFms_serial/Policy/update (1147.13s)
        --- PASS: TestAccAWSFms_serial/Policy/tags (1095.08s)
        --- PASS: TestAccAWSFms_serial/Policy/basic (1115.72s)

…ion for `resource_type` and `resource_type_list` argument plan time validation

Reference: #17399
Reference: #18551

Output from acceptance testing in AWS Commercial (main account):

```
--- PASS: TestAccAWSFms_serial (6.69s)
    --- PASS: TestAccAWSFms_serial/AdminAccount (1.13s)
        --- SKIP: TestAccAWSFms_serial/AdminAccount/basic (1.13s)
    --- PASS: TestAccAWSFms_serial/Policy (5.56s)
        --- SKIP: TestAccAWSFms_serial/Policy/tags (0.10s)
        --- SKIP: TestAccAWSFms_serial/Policy/basic (0.10s)
        --- SKIP: TestAccAWSFms_serial/Policy/cloudfrontDistribution (0.09s)
        --- SKIP: TestAccAWSFms_serial/Policy/includeMap (0.11s)
        --- SKIP: TestAccAWSFms_serial/Policy/update (5.16s)
```

Output from acceptance testing in AWS Commercial (Organizations account):

```
--- PASS: TestAccAWSFms_serial (8148.92s)
    --- PASS: TestAccAWSFms_serial/AdminAccount (1260.56s)
        --- PASS: TestAccAWSFms_serial/AdminAccount/basic (1260.56s)
    --- PASS: TestAccAWSFms_serial/Policy (6888.35s)
        --- PASS: TestAccAWSFms_serial/Policy/cloudfrontDistribution (2277.23s)
        --- PASS: TestAccAWSFms_serial/Policy/includeMap (1253.20s)
        --- PASS: TestAccAWSFms_serial/Policy/update (1147.13s)
        --- PASS: TestAccAWSFms_serial/Policy/tags (1095.08s)
        --- PASS: TestAccAWSFms_serial/Policy/basic (1115.72s)
```
@bflad bflad added the bug Addresses a defect in current functionality. label Apr 6, 2021
@bflad bflad requested a review from a team as a code owner April 6, 2021 20:53
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/fms Issues and PRs that pertain to the fms service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Apr 6, 2021
@anGie44 anGie44 self-assigned this Apr 14, 2021
Copy link
Contributor

@anGie44 anGie44 left a comment

Choose a reason for hiding this comment

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

changes here look great! my only note is that in the resource docs for fms_policy, the "Valid values" in the resource_type and resource_type_list arg descriptions could point to the AWS documentation instead of an explicit list as its not entirely inclusive.

Update: Output of tests (organizations account)

--- PASS: TestAccAWSFms_serial (8719.25s)
    --- PASS: TestAccAWSFms_serial/AdminAccount (1228.91s)
        --- PASS: TestAccAWSFms_serial/AdminAccount/basic (1228.91s)
    --- PASS: TestAccAWSFms_serial/Policy (7490.34s)
        --- PASS: TestAccAWSFms_serial/Policy/tags (1248.56s)
        --- PASS: TestAccAWSFms_serial/Policy/basic (1236.79s)
        --- PASS: TestAccAWSFms_serial/Policy/cloudfrontDistribution (1353.20s)
        --- PASS: TestAccAWSFms_serial/Policy/includeMap (1255.28s)
        --- PASS: TestAccAWSFms_serial/Policy/update (2396.52s)

@ghost ghost added the documentation Introduces or discusses updates to documentation. label Apr 15, 2021
@bflad
Copy link
Contributor Author

bflad commented Apr 15, 2021

my only note is that in the resource docs for fms_policy, the "Valid values" in the resource_type and resource_type_list arg descriptions could point to the AWS documentation instead of an explicit list as its not entirely inclusive.

Yes it should! Updated in latest commit.

@bflad bflad merged commit e3df0c8 into main Apr 15, 2021
@bflad bflad deleted the b-aws_fms_policy-resource_type-validation branch April 15, 2021 21:09
@github-actions github-actions bot added this to the v3.37.0 milestone Apr 15, 2021
github-actions bot pushed a commit that referenced this pull request Apr 15, 2021
@ghost
Copy link

ghost commented Apr 16, 2021

This has been released in version 3.37.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@ghost
Copy link

ghost commented May 16, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators May 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. documentation Introduces or discusses updates to documentation. provider Pertains to the provider itself, rather than any interaction with AWS. service/fms Issues and PRs that pertain to the fms service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
2 participants