-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
r/aws_rds_global_cluster: Mark database_name
as Computed
#40469
r/aws_rds_global_cluster: Mark database_name
as Computed
#40469
Conversation
% make testacc TESTARGS='-run=TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName' PKG=rds make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName -timeout 360m 2024/12/05 15:12:11 Initializing Terraform AWS Provider... === RUN TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName === PAUSE TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName === CONT TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName --- PASS: TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName (210.75s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 216.043s
Community NoteVoting for Prioritization
For Submitters
|
@ewbankkit I keep getting pretty consistent test failures on % make testacc TESTARGS='-run=TestAccRDSGlobalCluster_basic\|TestAccRDSGlobalCluster_databaseName\|TestAccRDSGlobalCluster_SourceDBClusterIdentifier' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSGlobalCluster_basic\|TestAccRDSGlobalCluster_databaseName\|TestAccRDSGlobalCluster_SourceDBClusterIdentifier -timeout 360m
2024/12/06 08:46:28 Initializing Terraform AWS Provider...
=== RUN TestAccRDSGlobalCluster_basic
=== PAUSE TestAccRDSGlobalCluster_basic
=== RUN TestAccRDSGlobalCluster_databaseName
=== PAUSE TestAccRDSGlobalCluster_databaseName
=== RUN TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== PAUSE TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== RUN TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== PAUSE TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== CONT TestAccRDSGlobalCluster_basic
=== CONT TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== CONT TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== CONT TestAccRDSGlobalCluster_databaseName
--- PASS: TestAccRDSGlobalCluster_basic (16.71s)
=== NAME TestAccRDSGlobalCluster_databaseName
global_cluster_test.go:169: Step 3/3 error: Error running apply: exit status 1
Error: creating RDS Global Cluster (tf-acc-test-5160198518967250137): operation error RDS: CreateGlobalCluster, https response error StatusCode: 400, RequestID: eaf44926-ae27-4bbe-a951-8b19ded9f4bd, GlobalClusterAlreadyExistsFault: Global cluster tf-acc-test-5160198518967250137 already exists
with aws_rds_global_cluster.test,
on terraform_plugin_test.tf line 12, in resource "aws_rds_global_cluster" "test":
12: resource "aws_rds_global_cluster" "test" {
--- FAIL: TestAccRDSGlobalCluster_databaseName (18.88s)
--- PASS: TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted (211.28s)
--- PASS: TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName (220.75s)
FAIL
FAIL github.com/hashicorp/terraform-provider-aws/internal/service/rds 227.188s
FAIL
make: *** [testacc] Error 1 |
% make testacc TESTARGS='-run=TestAccRDSGlobalCluster_databaseName' PKG=rds
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSGlobalCluster_databaseName -timeout 360m
2024/12/06 10:56:56 Initializing Terraform AWS Provider...
=== RUN TestAccRDSGlobalCluster_databaseName
=== PAUSE TestAccRDSGlobalCluster_databaseName
=== CONT TestAccRDSGlobalCluster_databaseName
--- PASS: TestAccRDSGlobalCluster_databaseName (24.68s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 29.949s It could be something to do with the parallelism as I see this failing in CI also:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
% make testacc TESTARGS='-run=TestAccRDSGlobalCluster_basic\|TestAccRDSGlobalCluster_databaseName\|TestAccRDSGlobalCluster_SourceDBClusterIdentifier' PKG=rds AWS_DEFAULT_REGION=us-east-1
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.3 test ./internal/service/rds/... -v -count 1 -parallel 20 -run=TestAccRDSGlobalCluster_basic\|TestAccRDSGlobalCluster_databaseName\|TestAccRDSGlobalCluster_SourceDBClusterIdentifier -timeout 360m
2024/12/06 10:05:07 Initializing Terraform AWS Provider...
=== RUN TestAccRDSGlobalCluster_basic
=== PAUSE TestAccRDSGlobalCluster_basic
=== RUN TestAccRDSGlobalCluster_databaseName
=== PAUSE TestAccRDSGlobalCluster_databaseName
=== RUN TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== PAUSE TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== RUN TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== PAUSE TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== CONT TestAccRDSGlobalCluster_basic
=== CONT TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted
=== CONT TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName
=== CONT TestAccRDSGlobalCluster_databaseName
--- PASS: TestAccRDSGlobalCluster_basic (13.72s)
--- PASS: TestAccRDSGlobalCluster_databaseName (21.59s)
--- PASS: TestAccRDSGlobalCluster_SourceDBClusterIdentifier_databaseName (189.43s)
--- PASS: TestAccRDSGlobalCluster_SourceDBClusterIdentifier_storageEncrypted (221.36s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/rds 227.741s
This functionality has been released in v5.81.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Prevents resource recreation when the source cluster specifies a
database_name
.Relations
Closes #28187.
Closes #39368.
Relates #15916.
References
Output from Acceptance Testing