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

all: Add acceptance tests for write-only attributes #293

Open
wants to merge 55 commits into
base: main
Choose a base branch
from

Conversation

austinvalle
Copy link
Member

@austinvalle austinvalle commented Jan 10, 2025

This PR contains new tests for write-only attributes, which are now available in Terraform v1.11.0 and the latest provider SDKs


The SDKv2 + Framework tests cover:

  • Retrieving write-only values and ensuring providers are unable to send write-only data back to Terraform
    • Trying to cover the different type/attribute combinations (blocks, nested, collections, etc.)
  • Performing validation and plan modification logic on write-only attributes

The Protocol (terraform-plugin-go) tests cover:

  • Testing Terraform's new data rules for write-only attributes in all RPCs that have state values returned
  • Testing Terraform's new data rules for write-only attributes when indicating the legacy type system (SDKv2) is used (only Plan + Apply)

@austinvalle austinvalle marked this pull request as ready for review March 4, 2025 21:37
@austinvalle austinvalle requested a review from a team as a code owner March 4, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants