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

Added support persistence_config field to google_redis_instance resource. #6528

Merged

Conversation

googlerjk
Copy link
Contributor

@googlerjk googlerjk commented Sep 9, 2022

Put a description of what this PR is for here, along with any references to issues that this resolves or contributes to -->
Added support persistence_config field to 'google_redis_instance' resource.
Fixes this update

If this PR is for Terraform, I acknowledge that I have:

  • Searched through the issue tracker for an open issue that this either resolves or contributes to, commented on it to claim it, and written "fixes {url}" or "part of {url}" in this PR description. If there were no relevant open issues, I opened one and commented that I would like to work on it (not necessary for very small changes).
  • Generated Terraform, and ran make test and make lint to ensure it passes unit and linter tests.
  • Ensured that all new fields I added that can be set by a user appear in at least one example (for generated resources) or third_party test (for handwritten resources or update tests).
  • Ran relevant acceptance tests (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read the Release Notes Guide before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

redis: Added `persistence_config` field to the `google_redis_instance` resource.

@googlerjk googlerjk self-assigned this Sep 9, 2022
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 305 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 305 insertions(+), 14 deletions(-))
TF Validator: Diff ( 3 files changed, 65 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 126 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2171
Passed tests 1923
Skipped tests: 236
Failed tests: 12

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccRedisInstance_redisInstanceAuthEnabled|TestAccComputeInstance_soleTenantNodeAffinities|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccRedisInstance_regionFromLocation|TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp|TestAccRedisInstance_updateReadReplicasMode|TestAccRedisInstance_update|TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample|TestAccRedisInstance_redisInstanceFullExample|TestAccRedisInstance_redisInstanceBasicExample|TestAccRedisInstanceDatasource_basic|TestAccRedisInstance_downgradeRedisVersion

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample[Debug log]

Tests failed during RECORDING mode:
TestAccRedisInstance_redisInstanceAuthEnabled[Error message] [Debug log]
TestAccComputeInstance_soleTenantNodeAffinities[Error message] [Debug log]
TestAccRedisInstance_regionFromLocation[Error message] [Debug log]
TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp[Error message] [Debug log]
TestAccRedisInstance_updateReadReplicasMode[Error message] [Debug log]
TestAccRedisInstance_update[Error message] [Debug log]
TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample[Error message] [Debug log]
TestAccRedisInstance_redisInstanceFullExample[Error message] [Debug log]
TestAccRedisInstance_redisInstanceBasicExample[Error message] [Debug log]
TestAccRedisInstanceDatasource_basic[Error message] [Debug log]
TestAccRedisInstance_downgradeRedisVersion[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 276 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 276 insertions(+), 14 deletions(-))
TF Validator: Diff ( 3 files changed, 65 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 112 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2171
Passed tests 1923
Skipped tests: 236
Failed tests: 12

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccRedisInstanceDatasource_basic|TestAccRedisInstance_redisInstanceAuthEnabled|TestAccRedisInstance_regionFromLocation|TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp|TestAccRedisInstance_update|TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample|TestAccRedisInstance_redisInstanceFullExample|TestAccRedisInstance_downgradeRedisVersion|TestAccRedisInstance_updateReadReplicasMode|TestAccRedisInstance_redisInstanceBasicExample|TestAccComputeInstance_soleTenantNodeAffinities|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample[Debug log]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample[Debug log]

Tests failed during RECORDING mode:
TestAccRedisInstanceDatasource_basic[Error message] [Debug log]
TestAccRedisInstance_redisInstanceAuthEnabled[Error message] [Debug log]
TestAccRedisInstance_regionFromLocation[Error message] [Debug log]
TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp[Error message] [Debug log]
TestAccRedisInstance_update[Error message] [Debug log]
TestAccRedisInstance_redisInstanceFullExample[Error message] [Debug log]
TestAccRedisInstance_downgradeRedisVersion[Error message] [Debug log]
TestAccRedisInstance_updateReadReplicasMode[Error message] [Debug log]
TestAccRedisInstance_redisInstanceBasicExample[Error message] [Debug log]
TestAccComputeInstance_soleTenantNodeAffinities[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@googlerjk googlerjk marked this pull request as ready for review September 12, 2022 19:29
@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 281 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 281 insertions(+), 14 deletions(-))
TF Validator: Diff ( 3 files changed, 65 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 113 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2172
Passed tests 1921
Skipped tests: 237
Failed tests: 14

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample|TestAccRedisInstance_updateReadReplicasMode|TestAccRedisInstance_update|TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp|TestAccRedisInstance_redisInstanceAuthEnabled|TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample|TestAccFirebaserulesRelease_BasicRelease|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCloudFunctionsFunction_vpcConnector|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccAppEngineStandardAppVersion_update|TestAccVPCAccessConnector_cloudrunVPCAccessConnectorExample|TestAccVPCAccessConnector_vpcAccessConnectorSharedVPCExample|TestAccVPCAccessConnector_vpcAccessConnectorExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccRedisInstance_updateReadReplicasMode[Debug log]
TestAccRedisInstance_update[Debug log]
TestAccRedisInstance_updateReadReplicasModeWithAutoSecondaryIp[Debug log]
TestAccRedisInstance_redisInstanceAuthEnabled[Debug log]
TestAccPrivatecaCertificateAuthority_privatecaCertificateAuthoritySubordinateExample[Debug log]
TestAccFirebaserulesRelease_BasicRelease[Debug log]

Tests failed during RECORDING mode:
TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample[Error message] [Debug log]
TestAccComputeInstance_soleTenantNodeAffinities[Error message] [Debug log]
TestAccCloudFunctionsFunction_vpcConnector[Error message] [Debug log]
TestAccCloudRunService_cloudRunServiceStaticOutboundExample[Error message] [Debug log]
TestAccAppEngineStandardAppVersion_update[Error message] [Debug log]
TestAccVPCAccessConnector_cloudrunVPCAccessConnectorExample[Error message] [Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorSharedVPCExample[Error message] [Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorExample[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@c2thorn
Copy link
Member

c2thorn commented Sep 13, 2022

rdb_snapshot_start_time needs to default to api as well?

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 282 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 282 insertions(+), 14 deletions(-))
TF Validator: Diff ( 3 files changed, 65 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 113 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2172
Passed tests 1924
Skipped tests: 238
Failed tests: 10

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccVPCAccessConnector_vpcAccessConnectorExample|TestAccVPCAccessConnector_vpcAccessConnectorSharedVPCExample|TestAccVPCAccessConnector_cloudrunVPCAccessConnectorExample|TestAccComputeForwardingRule_update|TestAccComputeInstance_soleTenantNodeAffinities|TestAccCloudFunctionsFunction_vpcConnector|TestAccCloudRunService_cloudRunServiceStaticOutboundExample|TestAccCGCSnippet_eventarcWorkflowsExample|TestAccAppEngineStandardAppVersion_update|TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeForwardingRule_update[Debug log]
TestAccRedisInstance_redisInstanceFullWithPersistenceConfigExample[Debug log]

Tests failed during RECORDING mode:
TestAccVPCAccessConnector_vpcAccessConnectorExample[Error message] [Debug log]
TestAccVPCAccessConnector_vpcAccessConnectorSharedVPCExample[Error message] [Debug log]
TestAccVPCAccessConnector_cloudrunVPCAccessConnectorExample[Error message] [Debug log]
TestAccComputeInstance_soleTenantNodeAffinities[Error message] [Debug log]
TestAccCloudFunctionsFunction_vpcConnector[Error message] [Debug log]
TestAccCloudRunService_cloudRunServiceStaticOutboundExample[Error message] [Debug log]
TestAccCGCSnippet_eventarcWorkflowsExample[Error message] [Debug log]
TestAccAppEngineStandardAppVersion_update[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

description: |
Optional. Controls whether Persistence features are enabled. If not provided, the existing value will be used.

- PERSISTENCE_MODE_UNSPECIFIED: Not set.
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove the PERSISTENCE_MODE_UNSPECIFIED and SNAPSHOT_PERIOD_UNSPECIFIED values/references?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@modular-magician
Copy link
Collaborator

Hi! I'm the modular magician. Your PR generated some diffs in downstreams - here they are.

Diff report:

Terraform GA: Diff ( 3 files changed, 278 insertions(+), 14 deletions(-))
Terraform Beta: Diff ( 3 files changed, 278 insertions(+), 14 deletions(-))
TF Validator: Diff ( 3 files changed, 65 insertions(+), 3 deletions(-))
TF OiCS: Diff ( 4 files changed, 113 insertions(+))

@modular-magician
Copy link
Collaborator

Tests analytics

Total tests: 2172
Passed tests 1931
Skipped tests: 238
Failed tests: 3

Action taken

Triggering VCR tests in RECORDING mode for the tests that failed during VCR. Click here to see the failed tests
TestAccComputeInstance_soleTenantNodeAffinities|TestAccComputeForwardingRule_update|TestAccCGCSnippet_eventarcWorkflowsExample

@modular-magician
Copy link
Collaborator

Tests passed during RECORDING mode:
TestAccComputeForwardingRule_update[Debug log]

Tests failed during RECORDING mode:
TestAccComputeInstance_soleTenantNodeAffinities[Error message] [Debug log]
TestAccCGCSnippet_eventarcWorkflowsExample[Error message] [Debug log]

Please fix these to complete your PR
View the build log or the debug log for each test

@c2thorn c2thorn merged commit e3f8828 into GoogleCloudPlatform:main Sep 15, 2022
@googlerjk
Copy link
Contributor Author

googlerjk commented Oct 11, 2022 via email

@jcanseco
Copy link
Member

Hi @googlerjk @c2thorn. Quick question: Is the rdb_snapshot_period field supposed to be optional, not required? It's optional in the API docs. Just want to check to make sure I understand correctly.

@c2thorn
Copy link
Member

c2thorn commented Oct 20, 2022

Hi @googlerjk @c2thorn. Quick question: Is the rdb_snapshot_period field supposed to be optional, not required? It's optional in the API docs. Just want to check to make sure I understand correctly.

Looks like a miss on my review. Our own documentation states it as optional. Luckily required -> optional is a non-breaking change. @googlerjk Can you correct this in a new PR? @c2thorn sure thing.

@jcanseco
Copy link
Member

Great, thank you for confirming! Do you want me to file an issue?

@c2thorn
Copy link
Member

c2thorn commented Oct 21, 2022

@jcanseco that would be helpful, thank you!

@jcanseco
Copy link
Member

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.

4 participants