-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Support Query Insights #4464
Support Query Insights #4464
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
Hello! I am a robot who works on Magic Modules PRs. I have detected that you are a community contributor, so your PR will be assigned to someone with a commit-bit on this repo for initial review. Thanks for your contribution! A human will be with you soon. @c2thorn, please review this PR or find an appropriate assignee. |
@googlebot I signed it! |
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
Sorry for the delay, I should be able to get to this over the next day or so |
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=171656" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccSqlDatabaseInstance_insights You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=171672" |
Tests failed during RECORDING mode: TestAccSqlDatabaseInstance_insights Please fix these to complete your PR |
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.
Only a couple of small asks here, overall great! Tests also passing.
@@ -179,3 +179,13 @@ The `replica_configuration` block contains: | |||
* `server_ca_cert.0.expiration_time` - Expiration time of the CA Cert. | |||
|
|||
* `server_ca_cert.0.sha1_fingerprint` - SHA Fingerprint of the CA Cert. | |||
|
|||
The `settings.insights_config` subblock for instances declares [Query Insights](https://cloud.google.com/sql/docs/postgres/insights-overview) configuration. It contains: |
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.
Can we move this sub block just above the replica_configuration
block (line 129)? To be closer with other settings
blocks
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.
Agreed 8464a20
@@ -1322,6 +1346,26 @@ resource "google_sql_database_instance" "instance" { | |||
} | |||
` | |||
|
|||
var testGoogleSqlDatabaseInstance_insights = ` | |||
resource "google_sql_database_instance" "instance" { | |||
name = "tf-lw-%d" |
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.
name = "tf-lw-%d" | |
name = "tf-test-%d" |
Allows any hanging database instances to be swept (some other test configs in this file are outdated)
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.
Fixed 42df0e2
/gcbrun |
I have triggered VCR tests based on this PR's diffs. See the results here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=171761" |
I have triggered VCR tests in RECORDING mode for the following tests that failed during VCR: TestAccEssentialContactsContact_essentialContactExample|TestAccSqlDatabaseInstance_insights You can view the result here: "https://ci-oss.hashicorp.engineering/viewQueued.html?itemId=171763" |
Thanks! |
* Support Query Insights * Fix test instance name * Move doc of settings.insights_config closer with other settings blocks
Fixes hashicorp/terraform-provider-google#8328
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
to ensure it passes unit and linter tests.Release Note Template for Downstream PRs (will be copied)