-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Add aws_workspaces_directory.saml_properties #39060
Open
ablackrw
wants to merge
2
commits into
hashicorp:main
Choose a base branch
from
ablackrw:f-aws_workspaces_directory-saml_properties
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add aws_workspaces_directory.saml_properties #39060
ablackrw
wants to merge
2
commits into
hashicorp:main
from
ablackrw:f-aws_workspaces_directory-saml_properties
+411
−1
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* `directory.go` (`ResourceDirectory()`): Add `saml_properties` structure to schema. (`resourceDirectoryCreate()`): Call `ModifySamlProperties` if `saml_properties` structure is present. (`resourceDirectoryRead()`): Store `directory.SamlProperties` in `saml_properties` structure. (`resourceDirectoryUpdate()`): Call `ModifySamlProperties` if `saml_properties` structure has changed. (`ExpandSAMLProperties()`): Add expander for `types.SamlProperties`. (`FlattenSAMLProperties()`): Add flattener for `types.SamlProperties`. (`SamlStatusEnumValues()`): Add helper for listing `types.SamlStatusEnum` values. * `directory_data_source.go` (`DataSourceDirectory()`): Add `saml_properties` structure to schema. (`dataSourceDirectoryRead()`): Store `directory.SamlProperties` in `saml_properties` structure. * `directory_data_source_test.go` (`testAccDirectoryDataSource_basic()`): Validate `saml_properties` structure data matches resource object. `testAccDirectoryDataSourceConfig_basic()`: Add `saml_properties` structure to reference object. * `directory_test.go` (`testAccDirectory_basic()`): Validate default values of `saml_properties` structure. (`testAccDirectory_SamlProperties()`): Validate `saml_properties` structure is correctly mutated. (`TestExpandSAMLProperties()`): Unit test expander. (`TestFlattenSAMLProperties()`): Unit test flattener. (`testAccDirectoryConfig_samlPropertiesFull()`): Helper to generate state for `testAccDirectory_SamlProperties()`. (`testAccDirectoryConfig_samlPropertiesRSPN()`): Helper to generate state for `testAccDirectory_SamlProperties()`. (`testAccDirectoryConfig_samlPropertiesUAU()`): Helper to generate state for `testAccDirectory_SamlProperties()`. (`testAccDirectoryConfig_samlPropertiesEmpty()`): Helper to generate state for `testAccDirectory_SamlProperties()`. * `workspaces_test.go` (`TestAccWorkSpaces_serial()`): Add `testAccDirectory_SamlProperties` as subtest. * `workspaces_directory.html.markdown`: Document new `saml_properties` structure.
Community NoteVoting for Prioritization
For Submitters
|
github-actions
bot
added
documentation
Introduces or discusses updates to documentation.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
service/workspaces
Issues and PRs that pertain to the workspaces service.
needs-triage
Waiting for first response or review from a maintainer.
labels
Aug 27, 2024
* `directory_data_source_test.go` (`testAccDirectoryDataSource_basic()`): Make `saml_properties` testing more robust. (`testAccDirectoryDataSourceConfig_basic()`): Remove use of hardcoded URI, replace with dynamic value.
With the modification to % make testacc TESTS=TestAccWorkSpacesDataSource_serial/Directory PKG=workspaces
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.0 test ./internal/service/workspaces/... -v -count 1 -parallel 20 -run='TestAccWorkSpacesDataSource_serial/Directory' -timeout 360m
=== RUN TestAccWorkSpacesDataSource_serial
=== PAUSE TestAccWorkSpacesDataSource_serial
=== CONT TestAccWorkSpacesDataSource_serial
=== RUN TestAccWorkSpacesDataSource_serial/Directory
=== RUN TestAccWorkSpacesDataSource_serial/Directory/basic
--- PASS: TestAccWorkSpacesDataSource_serial (781.68s)
--- PASS: TestAccWorkSpacesDataSource_serial/Directory (781.68s)
--- PASS: TestAccWorkSpacesDataSource_serial/Directory/basic (781.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/workspaces786.621s |
justinretzolk
added
enhancement
Requests to existing resources that expand the functionality or scope.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Aug 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Introduces or discusses updates to documentation.
enhancement
Requests to existing resources that expand the functionality or scope.
service/workspaces
Issues and PRs that pertain to the workspaces service.
tests
PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds the
saml_properties
structure within theaws_workspaces_directory
resource and datasource to allow Terraform management of the SAML 2.0 integration in AWS Workspaces.Relations
Closes #29359
References
Setting up SAML 2.0
Output from Acceptance Testing