Skip to content

Commit

Permalink
Update multiple handwritten tests to use ProtoV5ProviderFactories (Go…
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyama1 authored and hao-nan-li committed Apr 11, 2023
1 parent 9102946 commit 4d73fd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ func TestAccInstanceTemplateDatasource_self_link_unique(t *testing.T) {
t.Parallel()

VcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: TestAccProviders,
PreCheck: func() { testAccPreCheck(t) },
ProtoV5ProviderFactories: ProtoV5ProviderFactories(t),
Steps: []resource.TestStep{
{
Config: testAccInstanceTemplate_self_link_unique(GetTestProjectFromEnv(), RandString(t, 10)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestAccComputeInstanceFromTemplate_self_link_unique(t *testing.T) {

VcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: TestAccProviders,
ProtoV5ProviderFactories: ProtoV5ProviderFactories(t),
CheckDestroy: testAccCheckComputeInstanceFromTemplateDestroyProducer(t),
Steps: []resource.TestStep{
{
Expand Down Expand Up @@ -82,7 +82,7 @@ func TestAccComputeInstanceFromRegionTemplate_basic(t *testing.T) {

VcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: TestAccProviders,
ProtoV5ProviderFactories: ProtoV5ProviderFactories(t),
CheckDestroy: testAccCheckComputeInstanceFromTemplateDestroyProducer(t),
Steps: []resource.TestStep{
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,9 @@ func TestAccSqlDatabaseInstance_cloneWithDatabaseNames(t *testing.T) {
}

VcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: TestAccProviders,
CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t),
PreCheck: func() { testAccPreCheck(t) },
ProtoV5ProviderFactories: ProtoV5ProviderFactories(t),
CheckDestroy: testAccSqlDatabaseInstanceDestroyProducer(t),
Steps: []resource.TestStep{
{
Config: testAccSqlDatabaseInstance_cloneWithDatabaseNames(context),
Expand Down

0 comments on commit 4d73fd2

Please sign in to comment.