Skip to content

Added Edition field in settings block of sql_database_instance#8277

Merged
zli82016 merged 12 commits into
GoogleCloudPlatform:mainfrom
ibhaskar2:main
Jul 11, 2023
Merged

Added Edition field in settings block of sql_database_instance#8277
zli82016 merged 12 commits into
GoogleCloudPlatform:mainfrom
ibhaskar2:main

Conversation

@ibhaskar2

@ibhaskar2 ibhaskar2 commented Jul 6, 2023

Copy link
Copy Markdown
Contributor

Added Edition field in settings block of sql_database_instance.

b/276260732

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).
  • 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).
  • Generated Terraform providers, and ran make test and make lint in the generated providers to ensure it passes unit and linter tests.
  • Ran relevant acceptance tests using my own Google Cloud project and credentials (If the acceptance tests do not yet pass or you are unable to run them, please let your reviewer know).
  • Read Write release notes before writing my release note below.

Release Note Template for Downstream PRs (will be copied)

sql: added 'settings.edition' field to 'sql_database_instance' resource.
sql: added 'settings.data_cache_config' to 'sql_database_instance' resource.

@modular-magician
modular-magician requested a review from zli82016 July 6, 2023 16:03
@modular-magician

Copy link
Copy Markdown
Collaborator

Hello! I am a robot who works on Magic Modules PRs.

I've detected that you're a community contributor. @zli82016, a repository maintainer, has been assigned to assist you and help review your changes.

❓ First time contributing? Click here for more details

Your assigned reviewer will help review your code by:

  • Ensuring it's backwards compatible, covers common error cases, etc.
  • Summarizing the change into a user-facing changelog note.
  • Passes tests, either our "VCR" suite, a set of presubmit tests, or with manual test runs.

You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails.

If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox.


@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 4 files changed, 103 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 4 files changed, 103 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: settings.edition

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2844
Passed tests 2442
Skipped tests: 295
Affected tests: 107

Action taken

Found 107 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccSqlDatabaseInstance_maintenanceVersion|TestAccSqlDatabaseInstance_activationPolicy|TestAccSqlUser_postgresAbandon|TestAccSqlDatabaseInstance_ReplicaPromoteSkippedWithNoMasterInstanceNameAndNoReplicaConfigurationPresent|TestAccSqlUser_postgres|TestAccSqlClientCert_postgres|TestAccSqlDatabase_basic|TestAccSqlDatabase_update|TestAccSqlClientCert_mysql|TestAccSqlUser_postgresIAM|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNameAndReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent|TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfilePostgresExample|TestAccSqlDatabaseInstance_settings_deletionProtection|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample|TestAccSqlDatabaseInstance_settings_secondary|TestAccSqlDatabaseInstance_settings_basic|TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica|TestAccSqlDatabaseInstance_basicMSSQL|TestAccSqlDatabaseInstance_basicSecondGen|TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample|TestAccSQLDatabase_sqlDatabaseBasicExample|TestAccDataSourceSqlDatabases_basic|TestAccDataSourceSqlDatabase_basic|TestAccDataSourceSqlDatabaseInstances_tierFilter|TestAccDataSourceSqlDatabaseInstances_regionFilter|TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip|TestAccComputeRegionInstanceTemplate_guestAccelerator|TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange|TestAccComputeRegionInstanceTemplate_primaryAliasIpRange|TestAccComputeRegionInstanceTemplate_metadata_startup_script|TestAccComputeRegionInstanceTemplate_subnet_custom|TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter|TestAccDataSourceSqlDatabaseInstances_basic|TestAccComputeRegionInstanceTemplate_subnet_auto|TestAccComputeRegionInstanceTemplate_regionDisks|TestAccDataSourceSqlDatabaseInstance_basic|TestAccComputeRegionInstanceTemplate_minCpuPlatform|TestAccComputeInstanceTemplate_minCpuPlatform|TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample|TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeInstanceTemplate_with18TbScratchDisk|TestAccComputeInstanceTemplate_withScratchDisk|TestAccContainerAwsNodePool_BasicHandWritten|TestAccContainerAwsCluster_BetaBasicHandWritten|TestAccComputeInstanceTemplate_disks|TestAccContainerAwsCluster_BasicHandWritten|TestAccComputeRegionInstanceTemplate_with18TbScratchDisk|TestAccComputeRegionInstanceTemplate_withScratchDisk|TestAccDataSourceGoogleSQLCaCerts_basic|TestAccComputeInstanceTemplate_NetworkAttachment|TestAccCloudbuildv2Connection_GlePrivUpdateConnection|TestAccCloudbuildv2Connection_GlePrivConnection|TestAccComputeFirewallPolicyRule_multipleRules|TestAccCloudRunService_cloudRunServiceSqlExample|TestAccCloudbuildv2Connection_GleConnection|TestAccComputeInstanceFromTemplate_012_removableFields|TestAccClouddeployDeliveryPipeline_DeliveryPipeline|TestAccComputeInstanceFromTemplate_overrideScratchDisk|TestAccComputeInstanceFromTemplate_overrideAttachedDisk|TestAccComputeInstanceTemplate_guestAcceleratorSkip|TestAccClouddeployDeliveryPipeline_CanaryrunDeliveryPipeline|TestAccCloudRunV2Job_cloudrunv2JobSqlExample|TestAccComputeInstanceFromTemplate_overrideBootDisk|TestAccComputeInstanceFromRegionTemplate_basic|TestAccComputeInstanceFromTemplate_self_link_unique|TestAccComputeInstanceFromTemplate_basic|TestAccCloudbuildv2Connection_GleOldConnection|TestAccComputeInstanceTemplate_guestAccelerator|TestAccCloudbuildv2Connection_GitlabConnection|TestAccComputeInstanceTemplate_secondaryAliasIpRange|TestAccComputeInstanceTemplate_primaryAliasIpRange|TestAccClouddeployDeliveryPipeline_CanaryServiceNetworkingDeliveryPipeline|TestAccClouddeployDeliveryPipeline_CanaryDeliveryPipeline|TestAccComputeInstanceTemplate_metadata_startup_script|TestAccComputeInstanceTemplate_subnet_custom|TestAccComputeInstanceTemplate_subnet_auto|TestAccComputeInstanceTemplate_regionDisks|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample|TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable|TestAccSQLDatabaseInstance_basicEdition|TestAccSqlDatabaseInstance_Timezone|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer|TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled|TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample|TestAccSqlDatabaseInstance_BackupRetention|TestAccSQLDatabaseInstance_DenyMaintenancePeriod|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled|TestAccSqlDatabaseInstance_encryptionKey|TestAccSqlDatabaseInstance_multipleOperations|TestAccSqlDatabaseInstance_replica|TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket|TestAccSqlDatabaseInstance_basic_with_user_labels|TestAccSqlDatabaseInstance_highAvailability|TestAccSqlDatabaseInstance_settingsDowngrade|TestAccSqlDatabaseInstance_slave|TestAccSqlDatabaseInstance_settings_upgrade|TestAccSqlDatabaseInstance_diskspecs|TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange|TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled|TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion|TestAccSqlDatabaseInstance_Smt|TestAccSqlDatabaseInstance_insights|TestAccSqlDatabaseInstance_authNets|TestAccSqlDatabaseInstance_maintenance

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccComputeRegionInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccComputeRegionInstanceTemplate_guestAccelerator[Debug log]
TestAccComputeRegionInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccComputeRegionInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_custom[Debug log]
TestAccComputeRegionInstanceTemplate_subnet_auto[Debug log]
TestAccComputeRegionInstanceTemplate_regionDisks[Debug log]
TestAccComputeRegionInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeInstanceTemplate_minCpuPlatform[Debug log]
TestAccComputeRegionAutoscaler_regionAutoscalerBasicExample[Debug log]
TestAccComputeInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputeInstanceTemplate_withScratchDisk[Debug log]
TestAccContainerAwsNodePool_BasicHandWritten[Debug log]
TestAccContainerAwsCluster_BetaBasicHandWritten[Debug log]
TestAccComputeInstanceTemplate_disks[Debug log]
TestAccContainerAwsCluster_BasicHandWritten[Debug log]
TestAccComputeRegionInstanceTemplate_with18TbScratchDisk[Debug log]
TestAccComputeRegionInstanceTemplate_withScratchDisk[Debug log]
TestAccComputeInstanceTemplate_NetworkAttachment[Debug log]
TestAccCloudbuildv2Connection_GlePrivUpdateConnection[Debug log]
TestAccCloudbuildv2Connection_GlePrivConnection[Debug log]
TestAccCloudbuildv2Connection_GleConnection[Debug log]
TestAccComputeInstanceFromTemplate_012_removableFields[Debug log]
TestAccClouddeployDeliveryPipeline_DeliveryPipeline[Debug log]
TestAccComputeInstanceFromTemplate_overrideScratchDisk[Debug log]
TestAccComputeInstanceFromTemplate_overrideAttachedDisk[Debug log]
TestAccComputeInstanceTemplate_guestAcceleratorSkip[Debug log]
TestAccClouddeployDeliveryPipeline_CanaryrunDeliveryPipeline[Debug log]
TestAccComputeInstanceFromTemplate_overrideBootDisk[Debug log]
TestAccComputeInstanceFromRegionTemplate_basic[Debug log]
TestAccComputeInstanceFromTemplate_self_link_unique[Debug log]
TestAccComputeInstanceFromTemplate_basic[Debug log]
TestAccCloudbuildv2Connection_GleOldConnection[Debug log]
TestAccComputeInstanceTemplate_guestAccelerator[Debug log]
TestAccCloudbuildv2Connection_GitlabConnection[Debug log]
TestAccComputeInstanceTemplate_secondaryAliasIpRange[Debug log]
TestAccComputeInstanceTemplate_primaryAliasIpRange[Debug log]
TestAccClouddeployDeliveryPipeline_CanaryServiceNetworkingDeliveryPipeline[Debug log]
TestAccClouddeployDeliveryPipeline_CanaryDeliveryPipeline[Debug log]
TestAccComputeInstanceTemplate_metadata_startup_script[Debug log]
TestAccComputeInstanceTemplate_subnet_custom[Debug log]
TestAccComputeInstanceTemplate_subnet_auto[Debug log]
TestAccComputeInstanceTemplate_regionDisks[Debug log]
TestAccSQLDatabaseInstance_basicEdition[Debug log]

Rerun these tests in REPLAYING mode to catch issues

Tests failed when rerunning REPLAYING mode:
TestAccClouddeployDeliveryPipeline_DeliveryPipeline[Error message] [Debug log]

Tests failed due to non-determinism or randomness when the VCR replayed the response after the HTTP request was made.

Please fix these to complete your PR. If you do not know how VCR tests work, please work with the code reviewer to figure out the reason why the tests failed and fix the tests.


Tests failed during RECORDING mode:
TestAccSqlDatabaseInstance_maintenanceVersion[Error message] [Debug log]
TestAccSqlUser_postgresIAM[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_secondary[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_basic[Error message] [Debug log]
TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicMSSQL[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicSecondGen[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseBasicExample[Error message] [Debug log]
TestAccDataSourceSqlDatabases_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabase_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_tierFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_regionFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstance_basic[Error message] [Debug log]
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccDataSourceGoogleSQLCaCerts_basic[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccCloudRunService_cloudRunServiceSqlExample[Error message] [Debug log]
TestAccCloudRunV2Job_cloudrunv2JobSqlExample[Error message] [Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Error message] [Debug log]
TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable[Error message] [Debug log]
TestAccSqlDatabaseInstance_Timezone[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer[Error message] [Debug log]
TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample[Error message] [Debug log]
TestAccSqlDatabaseInstance_BackupRetention[Error message] [Debug log]
TestAccSQLDatabaseInstance_DenyMaintenancePeriod[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey[Error message] [Debug log]
TestAccSqlDatabaseInstance_multipleOperations[Error message] [Debug log]
TestAccSqlDatabaseInstance_replica[Error message] [Debug log]
TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket[Error message] [Debug log]
TestAccSqlDatabaseInstance_basic_with_user_labels[Error message] [Debug log]
TestAccSqlDatabaseInstance_highAvailability[Error message] [Debug log]
TestAccSqlDatabaseInstance_settingsDowngrade[Error message] [Debug log]
TestAccSqlDatabaseInstance_slave[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_upgrade[Error message] [Debug log]
TestAccSqlDatabaseInstance_diskspecs[Error message] [Debug log]
TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion[Error message] [Debug log]
TestAccSqlDatabaseInstance_Smt[Error message] [Debug log]
TestAccSqlDatabaseInstance_insights[Error message] [Debug log]
TestAccSqlDatabaseInstance_authNets[Error message] [Debug log]
TestAccSqlDatabaseInstance_maintenance[Error message] [Debug log]

Several tests got terminated during RECORDING mode.
Please fix these to complete your PR
View the build log or the debug log for each test

Comment thread mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.erb Outdated
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: clone.preferred_zone, settings.edition, settings.data_cache_config.data_cache_enabled

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: clone.preferred_zone, settings.data_cache_config.data_cache_enabled, settings.edition

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2834
Passed tests 2473
Skipped tests: 296
Affected tests: 65

Action taken

Found 65 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket|TestAccSqlUser_postgres|TestAccSqlDatabaseInstance_ReplicaPromoteSkippedWithNoMasterInstanceNameAndNoReplicaConfigurationPresent|TestAccSqlUser_postgresAbandon|TestAccSqlDatabase_update|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNameAndReplicaConfigurationPresent|TestAccSqlClientCert_mysql|TestAccSqlDatabase_basic|TestAccSqlClientCert_postgres|TestAccSqlUser_postgresIAM|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent|TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful|TestAccSqlDatabaseInstance_activationPolicy|TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable|TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled|TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample|TestAccSqlDatabaseInstance_Timezone|TestAccSqlDatabaseInstance_Smt|TestAccDataSourceSqlDatabases_basic|TestAccDataSourceSqlDatabase_basic|TestAccDataSourceSqlDatabaseInstances_tierFilter|TestAccDataSourceSqlDatabaseInstances_regionFilter|TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfilePostgresExample|TestAccDataSourceSqlDatabaseInstances_basic|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample|TestAccDataSourceSqlDatabaseInstance_basic|TestAccSQLDatabaseInstance_sqlMysqlDataCacheConfig|TestAccSqlDatabaseInstance_EnterpriseEdition|TestAccSqlDatabaseInstance_EnterprisePlusEdition|TestAccSQLDatabaseInstance_DenyMaintenancePeriod|TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled|TestAccSqlDatabaseInstance_BackupRetention|TestAccSqlDatabaseInstance_basic_with_user_labels|TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange|TestAccSqlDatabaseInstance_multipleOperations|TestAccSqlDatabaseInstance_authNets|TestAccDataSourceGoogleSQLCaCerts_basic|TestAccSqlDatabaseInstance_settingsDowngrade|TestAccSqlDatabaseInstance_settings_upgrade|TestAccSqlDatabaseInstance_encryptionKey|TestAccSqlDatabaseInstance_highAvailability|TestAccSqlDatabaseInstance_maintenance|TestAccSqlDatabaseInstance_slave|TestAccSqlDatabaseInstance_diskspecs|TestAccSqlDatabaseInstance_insights|TestAccSqlDatabaseInstance_replica|TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled|TestAccSqlDatabaseInstance_maintenanceVersion|TestAccSqlDatabaseInstance_settings_deletionProtection|TestAccSqlDatabaseInstance_settings_secondary|TestAccSqlDatabaseInstance_settings_basic|TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica|TestAccSqlDatabaseInstance_basicMSSQL|TestAccSqlDatabaseInstance_basicSecondGen|TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample|TestAccSQLDatabase_sqlDatabaseBasicExample|TestAccComputeFirewallPolicyRule_multipleRules|TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccCloudRunService_cloudRunServiceSqlExample|TestAccCloudRunV2Job_cloudrunv2JobSqlExample|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests passed during RECORDING mode:
TestAccSQLDatabaseInstance_sqlMysqlDataCacheConfig[Debug log]
TestAccSqlDatabaseInstance_EnterpriseEdition[Debug log]
TestAccSqlDatabaseInstance_EnterprisePlusEdition[Debug log]

Tests failed during RECORDING mode:
TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket[Error message] [Debug log]
TestAccSqlUser_postgres[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteSkippedWithNoMasterInstanceNameAndNoReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlUser_postgresAbandon[Error message] [Debug log]
TestAccSqlDatabase_update[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNameAndReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlClientCert_mysql[Error message] [Debug log]
TestAccSqlDatabase_basic[Error message] [Debug log]
TestAccSqlClientCert_postgres[Error message] [Debug log]
TestAccSqlUser_postgresIAM[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful[Error message] [Debug log]
TestAccSqlDatabaseInstance_activationPolicy[Error message] [Debug log]
TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable[Error message] [Debug log]
TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample[Error message] [Debug log]
TestAccSqlDatabaseInstance_Timezone[Error message] [Debug log]
TestAccSqlDatabaseInstance_Smt[Error message] [Debug log]
TestAccDataSourceSqlDatabases_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabase_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_tierFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_regionFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfilePostgresExample[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_basic[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstance_basic[Error message] [Debug log]
TestAccSQLDatabaseInstance_DenyMaintenancePeriod[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_BackupRetention[Error message] [Debug log]
TestAccSqlDatabaseInstance_basic_with_user_labels[Error message] [Debug log]
TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange[Error message] [Debug log]
TestAccSqlDatabaseInstance_multipleOperations[Error message] [Debug log]
TestAccSqlDatabaseInstance_authNets[Error message] [Debug log]
TestAccDataSourceGoogleSQLCaCerts_basic[Error message] [Debug log]
TestAccSqlDatabaseInstance_settingsDowngrade[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_upgrade[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey[Error message] [Debug log]
TestAccSqlDatabaseInstance_highAvailability[Error message] [Debug log]
TestAccSqlDatabaseInstance_maintenance[Error message] [Debug log]
TestAccSqlDatabaseInstance_slave[Error message] [Debug log]
TestAccSqlDatabaseInstance_diskspecs[Error message] [Debug log]
TestAccSqlDatabaseInstance_insights[Error message] [Debug log]
TestAccSqlDatabaseInstance_replica[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_maintenanceVersion[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_deletionProtection[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_secondary[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_basic[Error message] [Debug log]
TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicMSSQL[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicSecondGen[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseBasicExample[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccCloudRunService_cloudRunServiceSqlExample[Error message] [Debug log]
TestAccCloudRunV2Job_cloudrunv2JobSqlExample[Error message] [Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Error message] [Debug log]

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

@zli82016

zli82016 commented Jul 7, 2023

Copy link
Copy Markdown
Member

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 263 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: clone.preferred_zone, settings.edition, settings.data_cache_config.data_cache_enabled

Please add acceptance tests which include these fields.


func TestAccSqlDatabaseInstance_cloneWithPreferredZone(t *testing.T) {
// Sqladmin client
acctest.SkipIfVcr(t)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the reason to skip this test in Vcr?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Every other tests related to Clone also skipped in Vcr. So i just followed them.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Have you run this test locally to see if it passed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I run this test locally and got this error

Invalid request: The preferred zone field isn't supported for the local-mediator-361721:tf-bootstrap-f0ruwbstwx instance..

Do you know how to fix it? Thanks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is the doc to run tests locally, in case you need it. https://googlecloudplatform.github.io/magic-modules/get-started/run-provider-tests/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dropped preferred_zone from this PR.

PreCheck: func() { acctest.AccTestPreCheck(t) },
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t),
Steps: []resource.TestStep{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can add more steps here to test the updating of the field preferred_zone?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can you elaborate on this , what other steps are needed? Since it's string field testing it for one zone should be suffice.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you please add more test steps to update it from one zone to another zone? Thanks.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The use case is first clone the instance to one zone, and then during the update, clone this instance to another zone. Is it allowed to clone the instance to another zone during the update?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got you point, since preferred zone is not P0, dropping it from this PR, will follow up later on that. So it won't affect timely merging of other changes in this PR

Comment thread mmv1/third_party/terraform/services/sql/resource_sql_database_instance.go.erb Outdated
@zli82016

zli82016 commented Jul 7, 2023

Copy link
Copy Markdown
Member

Tests failed during RECORDING mode

Can you please try to fix these tests? Thanks.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2835
Passed tests 2477
Skipped tests: 296
Affected tests: 62

Action taken

Found 62 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccSqlDatabaseInstance_settings_deletionProtection|TestAccSqlDatabaseInstance_maintenanceVersion|TestAccSqlDatabaseInstance_basicSecondGen|TestAccSqlDatabaseInstance_settings_secondary|TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica|TestAccSqlDatabaseInstance_settings_basic|TestAccSqlDatabaseInstance_basicMSSQL|TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample|TestAccSQLDatabase_sqlDatabaseBasicExample|TestAccDataSourceSqlDatabases_basic|TestAccDataSourceSqlDatabase_basic|TestAccDataSourceSqlDatabaseInstances_tierFilter|TestAccDataSourceSqlDatabaseInstances_regionFilter|TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter|TestAccDataSourceSqlDatabaseInstances_basic|TestAccDataSourceSqlDatabaseInstance_basic|TestAccDataSourceGoogleSQLCaCerts_basic|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfilePostgresExample|TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample|TestAccSqlUser_postgresAbandon|TestAccSqlUser_postgresIAM|TestAccSqlUser_postgres|TestAccSqlClientCert_postgres|TestAccSqlClientCert_mysql|TestAccSqlDatabase_update|TestAccSqlDatabase_basic|TestAccSqlDatabaseInstance_ReplicaPromoteSkippedWithNoMasterInstanceNameAndNoReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNameAndReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithReplicaConfigurationPresent|TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent|TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful|TestAccSqlDatabaseInstance_activationPolicy|TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable|TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample|TestAccSqlDatabaseInstance_Timezone|TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled|TestAccSqlDatabaseInstance_Smt|TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket|TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccSQLDatabaseInstance_DenyMaintenancePeriod|TestAccSqlDatabaseInstance_encryptionKey|TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion|TestAccSqlDatabaseInstance_insights|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer|TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled|TestAccSqlDatabaseInstance_BackupRetention|TestAccSqlDatabaseInstance_basic_with_user_labels|TestAccSqlDatabaseInstance_multipleOperations|TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange|TestAccSqlDatabaseInstance_authNets|TestAccSqlDatabaseInstance_settingsDowngrade|TestAccComputeFirewallPolicyRule_multipleRules|TestAccSqlDatabaseInstance_settings_upgrade|TestAccSqlDatabaseInstance_maintenance|TestAccSqlDatabaseInstance_diskspecs|TestAccSqlDatabaseInstance_highAvailability|TestAccSqlDatabaseInstance_slave|TestAccSqlDatabaseInstance_replica|TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled|TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample|TestAccCloudRunV2Job_cloudrunv2JobSqlExample|TestAccCloudRunService_cloudRunServiceSqlExample

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests failed during RECORDING mode:
TestAccSqlDatabaseInstance_settings_deletionProtection[Error message] [Debug log]
TestAccSqlDatabaseInstance_maintenanceVersion[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicSecondGen[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_secondary[Error message] [Debug log]
TestAccSqlDatabaseInstance_dontDeleteDefaultUserOnReplica[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_basic[Error message] [Debug log]
TestAccSqlDatabaseInstance_basicMSSQL[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseDeletionPolicyExample[Error message] [Debug log]
TestAccSQLDatabase_sqlDatabaseBasicExample[Error message] [Debug log]
TestAccDataSourceSqlDatabases_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabase_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_tierFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_regionFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_databaseVersionFilter[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstances_basic[Error message] [Debug log]
TestAccDataSourceSqlDatabaseInstance_basic[Error message] [Debug log]
TestAccDataSourceGoogleSQLCaCerts_basic[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfilePostgresExample[Error message] [Debug log]
TestAccDatabaseMigrationServiceConnectionProfile_databaseMigrationServiceConnectionProfileCloudsqlExample[Error message] [Debug log]
TestAccSqlUser_postgresAbandon[Error message] [Debug log]
TestAccSqlUser_postgresIAM[Error message] [Debug log]
TestAccSqlUser_postgres[Error message] [Debug log]
TestAccSqlClientCert_postgres[Error message] [Debug log]
TestAccSqlClientCert_mysql[Error message] [Debug log]
TestAccSqlDatabase_update[Error message] [Debug log]
TestAccSqlDatabase_basic[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteSkippedWithNoMasterInstanceNameAndNoReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNameAndReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithReplicaConfigurationPresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteFailedWithMasterInstanceNamePresent[Error message] [Debug log]
TestAccSqlDatabaseInstance_ReplicaPromoteSuccessful[Error message] [Debug log]
TestAccSqlDatabaseInstance_activationPolicy[Error message] [Debug log]
TestAccSqlDatabaseInstance_rootPasswordShouldBeUpdatable[Error message] [Debug log]
TestAccSqlDatabaseInstance_sqlMysqlInstancePvpExample[Error message] [Debug log]
TestAccSqlDatabaseInstance_Timezone[Error message] [Debug log]
TestAccSqlDatabaseInstance_updateReadReplicaWithBinaryLogEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_Smt[Error message] [Debug log]
TestAccSqlDatabaseInstance_SqlServerAuditOptionalBucket[Error message] [Debug log]
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccSQLDatabaseInstance_DenyMaintenancePeriod[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey[Error message] [Debug log]
TestAccSqlDatabaseInstance_encryptionKey_replicaInDifferentRegion[Error message] [Debug log]
TestAccSqlDatabaseInstance_insights[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabledForSqlServer[Error message] [Debug log]
TestAccSqlDatabaseInstance_PointInTimeRecoveryEnabled[Error message] [Debug log]
TestAccSqlDatabaseInstance_BackupRetention[Error message] [Debug log]
TestAccSqlDatabaseInstance_basic_with_user_labels[Error message] [Debug log]
TestAccSqlDatabaseInstance_multipleOperations[Error message] [Debug log]
TestAccSqlDatabaseInstance_withPrivateNetwork_withoutAllocatedIpRange[Error message] [Debug log]
TestAccSqlDatabaseInstance_authNets[Error message] [Debug log]
TestAccSqlDatabaseInstance_settingsDowngrade[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_upgrade[Error message] [Debug log]
TestAccSqlDatabaseInstance_maintenance[Error message] [Debug log]
TestAccSqlDatabaseInstance_diskspecs[Error message] [Debug log]
TestAccSqlDatabaseInstance_highAvailability[Error message] [Debug log]
TestAccSqlDatabaseInstance_slave[Error message] [Debug log]
TestAccSqlDatabaseInstance_replica[Error message] [Debug log]
TestAccSqlDatabaseInstance_settings_deletionProtectionEnabled[Error message] [Debug log]
TestAccCloudRunV2Service_cloudrunv2ServiceSqlExample[Error message] [Debug log]
TestAccCloudRunV2Job_cloudrunv2JobSqlExample[Error message] [Debug log]
TestAccCloudRunService_cloudRunServiceSqlExample[Error message] [Debug log]

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

Combined Enterprise and EnterprisePlus Edition tests. Corrected data_cache_config test.
@modular-magician
modular-magician requested a review from zli82016 July 8, 2023 08:11
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 255 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 255 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: settings.edition, settings.data_cache_config.data_cache_enabled, clone.preferred_zone

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2850
Passed tests 2552
Skipped tests: 296
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@ibhaskar2

Copy link
Copy Markdown
Contributor Author

/gcbrun

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 254 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 254 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: clone.preferred_zone, settings.edition, settings.data_cache_config.data_cache_enabled

Please add acceptance tests which include these fields.

1 similar comment
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 254 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 254 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

Missing test report

Your PR includes resource fields which are not covered by any test.

Resource: google_sql_database_instance (0 total tests)
Untested fields: clone.preferred_zone, settings.edition, settings.data_cache_config.data_cache_enabled

Please add acceptance tests which include these fields.

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2850
Passed tests 2552
Skipped tests: 296
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

1 similar comment
@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2850
Passed tests 2552
Skipped tests: 296
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@zli82016

Copy link
Copy Markdown
Member

Tests failed during RECORDING mode
TestAccContainerAwsNodePool_BetaBasicHandWritten
TestAccComputeFirewallPolicyRule_multipleRules


You can ignore these two failed tests.

"edition": {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{"EDITION_UNSPECIFIED", "ENTERPRISE", "ENTERPRISE_PLUS"}, false),

@zli82016 zli82016 Jul 10, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

EDITION_UNSPECIFIED can be deleted here.

We normally don't include UNSPECIFIED values for enums/strings because they're don't have a useful meaning.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed EDITION_UNSPECIFIED.


A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and "2014-10-02T15:01:23.045123456Z".

* `preferred_zone` - (Optional) (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.

@zli82016 zli82016 Jul 10, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you also add examples for these new fields to this section? Thanks.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added an example of Enterprise edition with data_cache_config.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 192 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 192 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes:

Diff report

Your PR generated some diffs in downstreams - here they are.

Terraform GA: Diff ( 5 files changed, 206 insertions(+), 49 deletions(-))
Terraform Beta: Diff ( 5 files changed, 206 insertions(+), 49 deletions(-))
TF Conversion: Diff ( 2 files changed, 50 insertions(+), 49 deletions(-))

@modular-magician

Copy link
Copy Markdown
Collaborator

Tests analytics

Total tests: 2850
Passed tests 2553
Skipped tests: 295
Affected tests: 2

Action taken

Found 2 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
TestAccContainerAwsNodePool_BetaBasicHandWritten|TestAccComputeFirewallPolicyRule_multipleRules

Get to know how VCR tests work

@modular-magician

Copy link
Copy Markdown
Collaborator

$\textcolor{red}{\textsf{Tests failed during RECORDING mode:}}$
TestAccContainerAwsNodePool_BetaBasicHandWritten[Error message] [Debug log]
TestAccComputeFirewallPolicyRule_multipleRules[Error message] [Debug log]

$\textcolor{red}{\textsf{Please fix these to complete your PR.}}$
View the build log or the debug log for each test

@zli82016 zli82016 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks for making the changes.

@zli82016
zli82016 merged commit 45abda4 into GoogleCloudPlatform:main Jul 11, 2023
Khaledmohamedrefaat pushed a commit to Khaledmohamedrefaat/magic-modules that referenced this pull request Jul 13, 2023
…eCloudPlatform#8277)

* Added support for sproviding edition in sql_database_instance

* Added settings.edition, settings.data_cache_config, clone.preferred_zone in sql_database_instance

* Update resource_sql_database_instance.go.erb

Re-formatted code

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

Combined Enterprise and EnterprisePlus Edition tests. Corrected data_cache_config test.

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

* Update sql_database_instance.html.markdown
ericayyliu pushed a commit to ericayyliu/magic-modules that referenced this pull request Jul 26, 2023
…eCloudPlatform#8277)

* Added support for sproviding edition in sql_database_instance

* Added settings.edition, settings.data_cache_config, clone.preferred_zone in sql_database_instance

* Update resource_sql_database_instance.go.erb

Re-formatted code

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

Combined Enterprise and EnterprisePlus Edition tests. Corrected data_cache_config test.

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

* Update sql_database_instance.html.markdown
wj-chen pushed a commit to wj-chen/magic-modules that referenced this pull request Aug 1, 2023
…eCloudPlatform#8277)

* Added support for sproviding edition in sql_database_instance

* Added settings.edition, settings.data_cache_config, clone.preferred_zone in sql_database_instance

* Update resource_sql_database_instance.go.erb

Re-formatted code

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

Combined Enterprise and EnterprisePlus Edition tests. Corrected data_cache_config test.

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

* Update sql_database_instance.html.markdown
hao-nan-li pushed a commit to hao-nan-li/magic-modules that referenced this pull request Aug 9, 2023
…eCloudPlatform#8277)

* Added support for sproviding edition in sql_database_instance

* Added settings.edition, settings.data_cache_config, clone.preferred_zone in sql_database_instance

* Update resource_sql_database_instance.go.erb

Re-formatted code

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

Combined Enterprise and EnterprisePlus Edition tests. Corrected data_cache_config test.

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance.go.erb

* Update resource_sql_database_instance_test.go

* Update sql_database_instance.html.markdown
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