Skip to content

Commit 951570a

Browse files
Fix some sql instance names to start with tf-test (#6933) (#4967)
Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
1 parent 8750154 commit 951570a

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

.changelog/6933.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
```release-note:none
2+
```

google-beta/data_source_sql_database_instance_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package google
22

33
import (
4-
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
54
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
67
)
78

89
func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
@@ -36,7 +37,7 @@ func TestAccDataSourceSqlDatabaseInstance_basic(t *testing.T) {
3637
func testAccDataSourceSqlDatabaseInstance_basic(context map[string]interface{}) string {
3738
return Nprintf(`
3839
resource "google_sql_database_instance" "main" {
39-
name = "main-instance-%{random_suffix}"
40+
name = "tf-test-instance-%{random_suffix}"
4041
database_version = "POSTGRES_11"
4142
region = "us-central1"
4243

google-beta/resource_sql_user_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestAccSqlUser_mysql(t *testing.T) {
1313
skipIfVcr(t)
1414
t.Parallel()
1515

16-
instance := fmt.Sprintf("i-%d", randInt(t))
16+
instance := fmt.Sprintf("tf-test-%d", randInt(t))
1717
vcrTest(t, resource.TestCase{
1818
PreCheck: func() { testAccPreCheck(t) },
1919
Providers: testAccProviders,
@@ -50,7 +50,7 @@ func TestAccSqlUser_iamUser(t *testing.T) {
5050
skipIfVcr(t)
5151
t.Parallel()
5252

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

78-
instance := fmt.Sprintf("i-%d", randInt(t))
78+
instance := fmt.Sprintf("tf-test-%d", randInt(t))
7979
vcrTest(t, resource.TestCase{
8080
PreCheck: func() { testAccPreCheck(t) },
8181
Providers: testAccProviders,
@@ -108,7 +108,7 @@ func TestAccSqlUser_postgres(t *testing.T) {
108108
func TestAccSqlUser_postgresIAM(t *testing.T) {
109109
t.Parallel()
110110

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

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

0 commit comments

Comments
 (0)