From 08ab9e43f1dc4ece679ef7ee749e861513150f9c Mon Sep 17 00:00:00 2001 From: Zhenhua Li Date: Wed, 21 Jun 2023 09:40:26 -0700 Subject: [PATCH] Modify the CheckDestroy functions (#8168) * Modify the CheckDestroy function for cloudbuild trigger tests * Remove CheckDestroy function --- .../tests/data_source_alloydb_supported_database_flags_test.go | 1 - .../tests/data_source_google_cloudbuild_trigger_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/tests/data_source_alloydb_supported_database_flags_test.go b/mmv1/third_party/terraform/tests/data_source_alloydb_supported_database_flags_test.go index 27ec57bc9419..54a84c7d27a0 100644 --- a/mmv1/third_party/terraform/tests/data_source_alloydb_supported_database_flags_test.go +++ b/mmv1/third_party/terraform/tests/data_source_alloydb_supported_database_flags_test.go @@ -21,7 +21,6 @@ func TestAccDataSourceAlloydbSupportedDatabaseFlags_basic(t *testing.T) { VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, ProtoV5ProviderFactories: ProtoV5ProviderFactories(t), - CheckDestroy: testAccSqlDatabaseDestroyProducer(t), Steps: []resource.TestStep{ { Config: testAccDataSourceAlloydbSupportedDatabaseFlags_basic(context), diff --git a/mmv1/third_party/terraform/tests/data_source_google_cloudbuild_trigger_test.go b/mmv1/third_party/terraform/tests/data_source_google_cloudbuild_trigger_test.go index 759c10b62e72..0e235ffa1d35 100644 --- a/mmv1/third_party/terraform/tests/data_source_google_cloudbuild_trigger_test.go +++ b/mmv1/third_party/terraform/tests/data_source_google_cloudbuild_trigger_test.go @@ -17,7 +17,7 @@ func TestAccDataSourceGoogleCloudBuildTrigger_basic(t *testing.T) { VcrTest(t, resource.TestCase{ PreCheck: func() { acctest.AccTestPreCheck(t) }, ProtoV5ProviderFactories: ProtoV5ProviderFactories(t), - CheckDestroy: testAccCheckCloudRunServiceDestroyProducer(t), + CheckDestroy: testAccCheckCloudBuildTriggerDestroyProducer(t), Steps: []resource.TestStep{ { Config: testAccDataSourceGoogleCloudBuildTrigger_basic(context),