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

r/ssoadmin_permission_set: include relay_state in the UpdatePermissionSet request when available #17423

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

anGie44
Copy link
Contributor

@anGie44 anGie44 commented Feb 3, 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 #17411

Output from acceptance test before change:

    TestAccAWSSSOAdminPermissionSet_updateOnlySessionDuration: resource_aws_ssoadmin_permission_set_test.go:282: 
Step 2/3 error: Check failed: Check 4/5 error: aws_ssoadmin_permission_set.test: Attribute 'relay_state' expected "https://example.com", got ""
--- FAIL: TestAccAWSSSOAdminPermissionSet_updateOnlySessionDuration (18.79s)

Output from complete resource acceptance testing after change:

--- PASS: TestAccAWSSSOAdminPermissionSet_basic (11.95s)
--- PASS: TestAccAWSSSOAdminPermissionSet_relayState_updateSessionDuration (24.29s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateDescription (25.25s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateSessionDuration (27.61s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateRelayState (48.18s)
--- PASS: TestAccAWSSSOAdminPermissionSet_mixedPolicyAttachments (51.67s)

@anGie44 anGie44 requested a review from a team as a code owner February 3, 2021 02:27
@ghost ghost added size/M Managed by automation to categorize the size of a PR. service/ssoadmin Issues and PRs that pertain to the ssoadmin service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Feb 3, 2021
@anGie44 anGie44 force-pushed the b-ssoadmin-permission-set-update-with-relay-state branch from a84cb8c to f69fd97 Compare February 3, 2021 02:30
@anGie44 anGie44 added the bug Addresses a defect in current functionality. label Feb 3, 2021
@anGie44 anGie44 force-pushed the b-ssoadmin-permission-set-update-with-relay-state branch from f69fd97 to cd1c4a4 Compare February 3, 2021 06:05
@bflad bflad self-assigned this Feb 4, 2021
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Looks good to me, although having trouble running the acceptance testing myself. May be worth all the attributes similarly (include if present vs only if changed) since usually APIs work similarly across attributes but not worth holding this up on that.

@anGie44
Copy link
Contributor Author

anGie44 commented Feb 4, 2021

sure thing I can update the other argument checks--definitely crossed my mind!

Output of acceptance tests with recent change:

--- PASS: TestAccAWSSSOAdminPermissionSet_basic (15.00s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateSessionDuration (28.19s)
--- PASS: TestAccAWSSSOAdminPermissionSet_relayState_updateSessionDuration (28.58s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateDescription (29.08s)
--- PASS: TestAccAWSSSOAdminPermissionSet_updateRelayState (29.20s)
--- PASS: TestAccAWSSSOAdminPermissionSet_mixedPolicyAttachments (31.19s)

@anGie44 anGie44 added this to the v3.27.0 milestone Feb 4, 2021
@anGie44 anGie44 merged commit c389d36 into main Feb 4, 2021
@anGie44 anGie44 deleted the b-ssoadmin-permission-set-update-with-relay-state branch February 4, 2021 21:23
github-actions bot pushed a commit that referenced this pull request Feb 4, 2021
@ghost
Copy link

ghost commented Feb 5, 2021

This has been released in version 3.27.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 Mar 7, 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 Mar 7, 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. service/ssoadmin Issues and PRs that pertain to the ssoadmin service. size/M 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
Development

Successfully merging this pull request may close these issues.

Setting session_duration in aws_ssoadmin_permission_set seems to clear relay_state
2 participants