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

Add PreferWriteOnlyAttribute() validators to resourcevalidator and all value validator packages. #263

Merged
merged 13 commits into from
Feb 19, 2025
Prev Previous commit
Next Next commit
Add WriteOnly field to tests
SBGoods committed Feb 18, 2025
commit c9a10f4fb77be8340f8ad0f5dd334c5ea3c2936e
6 changes: 4 additions & 2 deletions resourcevalidator/prefer_write_only_attribute_test.go
Original file line number Diff line number Diff line change
@@ -46,13 +46,15 @@ func TestPreferWriteOnlyAttribute(t *testing.T) {
Optional: true,
},
"writeOnlyAttribute1": schema.StringAttribute{
Optional: true,
Optional: true,
WriteOnly: true,
},
"oldAttribute2": schema.StringAttribute{
Optional: true,
},
"writeOnlyAttribute2": schema.StringAttribute{
Optional: true,
Optional: true,
WriteOnly: true,
},
},
},