Skip to content

Conversation

@SBGoods
Copy link
Contributor

@SBGoods SBGoods commented Apr 24, 2025

Relates: hashicorp/terraform-plugin-sdk#1472

Adds write-only attribute acceptance testing for resources without an update function. The SDKv2 has internal validation that verifies that resources without an update function only have top-level attributes that have either ForceNew, or Computed enabled, to prevent attributes in the schema that can trigger a resource update. The referenced PR also adds WriteOnly to this list as a change to a write-only attribute should never cause an update, making it safe for use with these resources.


go 1.23.7

replace github.com/hashicorp/terraform-plugin-sdk/v2 v2.37.0-beta.1 => github.com/BBBmau/terraform-plugin-sdk/v2 v2.24.1-0.20250421144349-aa2d9d850504
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Todo: Remove this line and update SDKv2 dependency once v2.25.0 releases.

Copy link
Member

Choose a reason for hiding this comment

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

@SBGoods This PR should be good to open / resolve the conflicts after #349 was merged 👍🏻

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