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

fix(Cloud-Databases): Remove deprecated connectionstrings attribute #5554

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

omaraibrahim
Copy link
Collaborator

@omaraibrahim omaraibrahim commented Aug 6, 2024

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Current we have an issue where connectionstrings are not idempotent as seen below.

  # ibm_database.postgresql will be updated in-place
  ~ resource "ibm_database" "postgresql" {
      + connectionstrings       = (known after apply)
        id                      = "crn:v1:bluemix:public:databases-for-postgresql:us-south:a/40ddc34a953a8c02f10987b59085b60e:1a9d66dd-48dd-4aa3-b7d8-8c9e30d44f63::"
        name                    = "omar-psql-08-07-three"
        tags                    = []
        # (15 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

connectionstrings has been deprecated for 2 years. It is time for it to be removed. After removal idempotency is restored the following happens.

No changes. Your infrastructure matches the configuration.

Output from acceptance testing:

Rabbitmq

$ make testacc TEST=./ibm/service/database TESTARGS='-run=TestAccIBMDatabaseInstance_Rabbitmq_Basic'
--- PASS: TestAccIBMDatabaseInstance_Rabbitmq_Basic (1397.28s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database	1398.940s
...

Mongodb

--- PASS: TestAccIBMDatabaseInstanceMongodbBasic (1615.87s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database	1617.555s

Elasticsearch Platinum

make testacc TEST=./ibm/service/database TESTARGS='-run=TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic'
--- PASS: TestAccIBMDatabaseInstance_ElasticsearchPlatinum_Basic (1788.91s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database	1790.546s

Redis

make testacc TEST=./ibm/service/database TESTARGS='-run=TestAccIBMDatabaseInstance_Redis_Basic'
--- PASS: TestAccIBMDatabaseInstance_Redis_Basic (1203.46s)
PASS
ok  	github.com/IBM-Cloud/terraform-provider-ibm/ibm/service/database	1205.090s

@lornakelly
Copy link
Contributor

lornakelly commented Aug 8, 2024

@omaraibrahim Can you update the PR with a description and output from running tests. I know its resource but still needs to be done on every PR from what I can tell

@omaraibrahim omaraibrahim marked this pull request as ready for review August 8, 2024 16:52
Copy link
Contributor

@lornakelly lornakelly left a comment

Choose a reason for hiding this comment

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

LGTM

@omaraibrahim omaraibrahim merged commit a9a4a10 into master Aug 9, 2024
1 check passed
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