Skip to content

Commit

Permalink
Update affected unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Jan 8, 2025
1 parent 63f5fb1 commit d105474
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions internal/terraform/context_apply_ephemeral_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,8 @@ resource "ephem_write_only" "wo" {

expectedDiags = append(expectedDiags, tfdiags.Sourceless(
tfdiags.Error,
"Write-only attribute set",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only". Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
"Provider produced invalid object",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only" after apply. Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
))

assertDiagnosticsMatch(t, diags, expectedDiags)
Expand Down Expand Up @@ -876,8 +876,8 @@ resource "ephem_write_only" "wo" {

expectedDiags = append(expectedDiags, tfdiags.Sourceless(
tfdiags.Error,
"Write-only attribute set",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only". Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
"Provider produced invalid plan",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only" during planning. Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
))

assertDiagnosticsMatch(t, diags, expectedDiags)
Expand Down Expand Up @@ -963,8 +963,8 @@ resource "ephem_write_only" "wo" {

expectedDiags = append(expectedDiags, tfdiags.Sourceless(
tfdiags.Error,
"Write-only attribute set",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only". Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
"Provider produced invalid object",
`Provider "provider[\"registry.terraform.io/hashicorp/ephem\"]" returned a value for the write-only attribute "ephem_write_only.wo.write_only" during refresh. Write-only attributes cannot be read back from the provider. This is a bug in the provider, which should be reported in the provider's own issue tracker.`,
))

assertDiagnosticsMatch(t, diags, expectedDiags)
Expand Down

0 comments on commit d105474

Please sign in to comment.