Skip to content

Commit

Permalink
Fix some sql instance names to start with tf-test (#6933) (#13213)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <magic-modules@google.com>

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Dec 9, 2022
1 parent 83f87df commit 348619f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .changelog/6933.txt
@@ -0,0 +1,2 @@
```release-note:none
```
5 changes: 3 additions & 2 deletions google/data_source_sql_database_instance_test.go
@@ -1,8 +1,9 @@
package google

import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
)

func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
Expand Down Expand Up @@ -36,7 +37,7 @@ func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
func testAccDataSourceSqlDatabaseInstance_basic(context map[string]interface{}) string {
return Nprintf(`
resource "google_sql_database_instance" "main" {
name = "main-instance-%{random_suffix}"
name = "tf-test-instance-%{random_suffix}"
database_version = "POSTGRES_11"
region = "us-central1"
Expand Down
10 changes: 5 additions & 5 deletions google/resource_sql_user_test.go
Expand Up @@ -13,7 +13,7 @@ func TestAccSqlUser_mysql(t *testing.T) {
skipIfVcr(t)
t.Parallel()

instance := fmt.Sprintf("i-%d", randInt(t))
instance := fmt.Sprintf("tf-test-%d", randInt(t))
vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Expand Down Expand Up @@ -50,7 +50,7 @@ func TestAccSqlUser_iamUser(t *testing.T) {
skipIfVcr(t)
t.Parallel()

instance := fmt.Sprintf("i-%d", randInt(t))
instance := fmt.Sprintf("tf-test-%d", randInt(t))
vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Expand All @@ -75,7 +75,7 @@ func TestAccSqlUser_iamUser(t *testing.T) {
func TestAccSqlUser_postgres(t *testing.T) {
t.Parallel()

instance := fmt.Sprintf("i-%d", randInt(t))
instance := fmt.Sprintf("tf-test-%d", randInt(t))
vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Expand Down Expand Up @@ -108,7 +108,7 @@ func TestAccSqlUser_postgres(t *testing.T) {
func TestAccSqlUser_postgresIAM(t *testing.T) {
t.Parallel()

instance := fmt.Sprintf("i-%d", randInt(t))
instance := fmt.Sprintf("tf-test-%d", randInt(t))
vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Expand All @@ -134,7 +134,7 @@ func TestAccSqlUser_postgresIAM(t *testing.T) {
func TestAccSqlUser_postgresAbandon(t *testing.T) {
t.Parallel()

instance := fmt.Sprintf("i-%d", randInt(t))
instance := fmt.Sprintf("tf-test-%d", randInt(t))
userName := "admin"
vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Expand Down

0 comments on commit 348619f

Please sign in to comment.