Skip to content

Commit

Permalink
Merge pull request #25658 from kamilturek/b-skaff-provider-factories
Browse files Browse the repository at this point in the history
skaff: Use ProviderFactories instead of Providers
  • Loading branch information
ewbankkit authored Jul 5, 2022
2 parents 13dfabe + ace4e02 commit 65f3a0d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions skaff/resource/resourcetest.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ func TestAcc{{ .Service }}{{ .Resource }}_basic(t *testing.T) {
acctest.PreCheckPartitionHasService({{ .ServicePackage }}.EndpointsID, t)
testAccPreCheck(t)
},
ErrorCheck: acctest.ErrorCheck(t, {{ .ServicePackage }}.EndpointsID),
Providers: acctest.Providers,
CheckDestroy: testAccCheck{{ .Resource }}Destroy,
ErrorCheck: acctest.ErrorCheck(t, {{ .ServicePackage }}.EndpointsID),
ProviderFactories: acctest.ProviderFactories,
CheckDestroy: testAccCheck{{ .Resource }}Destroy,
Steps: []resource.TestStep{
{
Config: testAcc{{ .Resource }}Config_basic(rName),
Expand Down Expand Up @@ -201,9 +201,9 @@ func TestAcc{{ .Service }}{{ .Resource }}_disappears(t *testing.T) {
acctest.PreCheckPartitionHasService({{ .ServicePackage }}.EndpointsID, t)
testAccPreCheck(t)
},
ErrorCheck: acctest.ErrorCheck(t, {{ .ServicePackage }}.EndpointsID),
Providers: acctest.Providers,
CheckDestroy: testAccCheck{{ .Resource }}Destroy,
ErrorCheck: acctest.ErrorCheck(t, {{ .ServicePackage }}.EndpointsID),
ProviderFactories: acctest.ProviderFactories,
CheckDestroy: testAccCheck{{ .Resource }}Destroy,
Steps: []resource.TestStep{
{
Config: testAcc{{ .Resource }}Config_basic(rName, testAcc{{ .Resource }}VersionNewer),
Expand Down

0 comments on commit 65f3a0d

Please sign in to comment.