From 2471d80124f3733be308dd0d6031f8ab169c377a Mon Sep 17 00:00:00 2001 From: "Stephen Lewis (Burrows)" Date: Mon, 11 May 2026 14:12:23 -0700 Subject: [PATCH] Revert "Added short sleep to google_chronicle_rule test_check_destroy (#17505)" This reverts commit 1c1377de5b2cec9cd9cb0256fa3bac088ce37431. --- mmv1/products/chronicle/Rule.yaml | 1 - .../chronicle_rule.go.tmpl | 25 ------------------- 2 files changed, 26 deletions(-) delete mode 100644 mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl diff --git a/mmv1/products/chronicle/Rule.yaml b/mmv1/products/chronicle/Rule.yaml index 1259b9a81ae6..b6107bd7b6ee 100644 --- a/mmv1/products/chronicle/Rule.yaml +++ b/mmv1/products/chronicle/Rule.yaml @@ -54,7 +54,6 @@ examples: custom_code: pre_delete: 'templates/terraform/pre_delete/chronicle_rule.go.tmpl' - test_check_destroy: 'templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl' virtual_fields: - name: 'deletion_policy' diff --git a/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl b/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl deleted file mode 100644 index 83274259d028..000000000000 --- a/mmv1/templates/terraform/custom_check_destroy/chronicle_rule.go.tmpl +++ /dev/null @@ -1,25 +0,0 @@ -// Delete is eventually-consistent; wait for a moment. -time.Sleep(10*time.Second) - -config := acctest.GoogleProviderConfig(t) -url, err := tpgresource.ReplaceVarsForTest(config, rs, fmt.Sprintf("%s%s", transport_tpg.BaseUrl(chronicle.Product, config), "projects/{{"{{"}}project{{"}}"}}/locations/{{"{{"}}location{{"}}"}}/instances/{{"{{"}}instance{{"}}"}}/rules/{{"{{"}}rule_id{{"}}"}}")) -if err != nil { - return err -} - -billingProject := "" - -if config.BillingProject != "" { - billingProject = config.BillingProject -} - -_, err = transport_tpg.SendRequest(transport_tpg.SendRequestOptions{ - Config: config, - Method: "GET", - Project: billingProject, - RawURL: url, - UserAgent: config.UserAgent, -}) -if err == nil { - return fmt.Errorf("ChronicleRule still exists at %s", url) -} \ No newline at end of file