-
Notifications
You must be signed in to change notification settings - Fork 121
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
[email protected] and Computed,Optional,ForceNew #246
Conversation
Bumps [github.com/hashicorp/terraform-plugin-framework](https://github.com/hashicorp/terraform-plugin-framework) from 0.4.1 to 0.4.2. - [Release notes](https://github.com/hashicorp/terraform-plugin-framework/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-framework/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-plugin-framework@v0.4.1...v0.4.2) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-framework dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
The problem is that now
and % TF_LOG=WARN make testacc PKG_NAME=internal/aws/logs TESTARGS='-run=TestAccAWSLogsLogGroup_'
TF_ACC=1 go test ./internal/aws/logs -v -count 1 -parallel 20 -run=TestAccAWSLogsLogGroup_ -timeout 180m
=== RUN TestAccAWSLogsLogGroup_basic
=== PAUSE TestAccAWSLogsLogGroup_basic
=== RUN TestAccAWSLogsLogGroup_disappears
=== PAUSE TestAccAWSLogsLogGroup_disappears
=== RUN TestAccAWSLogsLogGroup_update
=== PAUSE TestAccAWSLogsLogGroup_update
=== CONT TestAccAWSLogsLogGroup_basic
=== CONT TestAccAWSLogsLogGroup_update
=== CONT TestAccAWSLogsLogGroup_disappears
2021/10/14 11:15:52 [WARN] Got error running Terraform: exit status 1
Error: AWS SDK Go Service Operation Unsuccessful
with awscc_logs_log_group.test,
on terraform_plugin_test.tf line 2, in resource "awscc_logs_log_group" "test":
2: resource "awscc_logs_log_group" "test" {
Calling Cloud Control API service UpdateResource operation returned:
operation error CloudControl: UpdateResource, https response error
StatusCode: 400, RequestID: f1b24f45-bfd2-42e6-9f41-85a10c169110, api error
ValidationException: Invalid patch update: readOnlyProperties
[/properties/Arn] cannot be updated
=== CONT TestAccAWSLogsLogGroup_update
testcases.go:30: Step 3/3 error: Error running apply: exit status 1
Error: AWS SDK Go Service Operation Unsuccessful
with awscc_logs_log_group.test,
on terraform_plugin_test.tf line 2, in resource "awscc_logs_log_group" "test":
2: resource "awscc_logs_log_group" "test" {
Calling Cloud Control API service UpdateResource operation returned:
operation error CloudControl: UpdateResource, https response error
StatusCode: 400, RequestID: f1b24f45-bfd2-42e6-9f41-85a10c169110, api error
ValidationException: Invalid patch update: readOnlyProperties
[/properties/Arn] cannot be updated
--- PASS: TestAccAWSLogsLogGroup_disappears (18.25s)
--- PASS: TestAccAWSLogsLogGroup_basic (20.11s)
--- FAIL: TestAccAWSLogsLogGroup_update (23.82s)
FAIL
FAIL github.com/hashicorp/terraform-provider-awscc/internal/aws/logs 24.831s
FAIL
make: *** [testacc] Error 1
|
Plan modifiers like hashicorp/terraform-plugin-framework#180 should help resolve Computed attributes that are continually showing a difference, when another attribute is changing. In particular, hashicorp/terraform-plugin-framework#180 (comment) should be fairly close to what should be applied to
Since there will be no difference in values for those attributes. However, even without those, an additional safety measure the provider could do during |
Relates:
|
Superseded by #306. |
Community Note
Relates #208.
Closes #222.
Closes #218.
Closes #242.
Closes #219.