Make mysql_profile.password mutable to avoid recreation of the connection profile.#8675
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Hello! I am a robot. It looks like you are a: Community Contributor @trodge, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
|
I have edited the file as mentioned in the issue. I have also run the tests using the commands provided here. All of them are passing. |
|
Drive-by comment since I had suggested on the issue that @damjad should add this field to update tests: It looks like we don't currently have any mysql tests for datastream connection profile. We would need to add at least one update test following this guide that uses a base configuration similar to TestAccDatastreamStream_datastreamStreamBasicExample (that is, setting up a mysql instance and connecting to it.) |
|
@melinath Could you please tell if my understanding is correct? I would need to create a handwritten test in resource_datastream_connection_profile_test.go.
|
Tests analyticsTotal tests:
|
|
@damjad that sounds right; there also needs to be a configuration prior to |
…tion profile. The recreation of connection profile fails the streams permanently. They have to be recreated from the scratch.
|
I have added the tests. Everything is working as expected. The test fails for old code because it tries to destroy/create the connection profile. Here is the plan: With the new code the test passes because it updates in-place. Here is the plan: |
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 105 insertions(+), 1 deletion(-)) |
Tests analyticsTotal tests: Action takenFound 1 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected testsTestAccBigQueryDataTable_bigtable |
|
Rerun these tests in REPLAYING mode to catch issues
|
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are. Terraform GA: Diff ( 2 files changed, 104 insertions(+), 1 deletion(-)) |
Tests analyticsTotal tests:
|
…tion profile. (GoogleCloudPlatform#8675) * Make mysql_profile.password mutable to avoid recreation of the connection profile. The recreation of connection profile fails the streams permanently. They have to be recreated from the scratch. * Make fmt
…tion profile. (GoogleCloudPlatform#8675) * Make mysql_profile.password mutable to avoid recreation of the connection profile. The recreation of connection profile fails the streams permanently. They have to be recreated from the scratch. * Make fmt
…tion profile. (GoogleCloudPlatform#8675) * Make mysql_profile.password mutable to avoid recreation of the connection profile. The recreation of connection profile fails the streams permanently. They have to be recreated from the scratch. * Make fmt
The recreation of connection profile fails the streams permanently. They have to be recreated from the scratch.
It's the solution to hashicorp/terraform-provider-google#15489
If this PR is for Terraform, I acknowledge that I have:
make testandmake lintin the generated providers to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)