From 7b292958f37097d82263897e2258ee6984a56874 Mon Sep 17 00:00:00 2001 From: The Magician Date: Tue, 3 May 2022 13:28:41 -0700 Subject: [PATCH] Added Cloud SQL user example (#5996) (#11634) * Added Cloud SQL user example * Add skip_vcr: true Signed-off-by: Modular Magician --- .changelog/5996.txt | 2 ++ google/resource_cgc_snippet_generated_test.go | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .changelog/5996.txt diff --git a/.changelog/5996.txt b/.changelog/5996.txt new file mode 100644 index 00000000000..e4e22fc1e47 --- /dev/null +++ b/.changelog/5996.txt @@ -0,0 +1,2 @@ +```release-note:none +``` diff --git a/google/resource_cgc_snippet_generated_test.go b/google/resource_cgc_snippet_generated_test.go index be819c70514..5454c826dba 100644 --- a/google/resource_cgc_snippet_generated_test.go +++ b/google/resource_cgc_snippet_generated_test.go @@ -170,6 +170,7 @@ resource "google_compute_instance" "spot_vm_instance" { } func TestAccCGCSnippet_sqlDatabaseInstanceSqlserverExample(t *testing.T) { + skipIfVcr(t) t.Parallel() context := map[string]interface{}{ @@ -208,6 +209,17 @@ resource "google_sql_database_instance" "instance" { deletion_protection = "%{deletion_protection}" } # [END cloud_sql_sqlserver_instance_80_db_n1_s2] + +resource "random_password" "pwd" { + length = 16 + special = false +} + +resource "google_sql_user" "user" { + name = "user" + instance = google_sql_database_instance.instance.name + password = random_password.pwd.result +} `, context) }