Skip to content

Commit eb1c700

Browse files
modular-magiciandanawillow
authored andcommitted
fix sql user tests after changing import format (hashicorp#275)
<!-- This change is generated by MagicModules. --> /cc @danawillow
1 parent 95a55cf commit eb1c700

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

google-beta/resource_sql_user_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func TestAccSqlUser_mysql(t *testing.T) {
3535
},
3636
{
3737
ResourceName: "google_sql_user.user2",
38-
ImportStateId: instance + "/gmail.com/admin",
38+
ImportStateId: fmt.Sprintf("%s/%s/gmail.com/admin", getTestProjectFromEnv(), instance),
3939
ImportState: true,
4040
ImportStateVerify: true,
4141
ImportStateVerifyIgnore: []string{"password"},
@@ -68,7 +68,7 @@ func TestAccSqlUser_postgres(t *testing.T) {
6868
},
6969
{
7070
ResourceName: "google_sql_user.user",
71-
ImportStateId: instance + "/admin",
71+
ImportStateId: fmt.Sprintf("%s/%s/admin", getTestProjectFromEnv(), instance),
7272
ImportState: true,
7373
ImportStateVerify: true,
7474
ImportStateVerifyIgnore: []string{"password"},

0 commit comments

Comments
 (0)