Merge pull request #1191 from cloudskiff/chore/state-reader-test

Fix fake provider configuration in state reader tests
main
Elie 2021-10-28 14:20:30 +02:00 committed by GitHub
commit 05c16831b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -272,7 +272,7 @@ func TestTerraformStateReader_Github_Resources(t *testing.T) {
if shouldUpdate {
var err error
realProvider, err = github.NewGithubTerraformProvider("", progress, "")
realProvider, err = github.NewGithubTerraformProvider("", progress, os.TempDir())
if err != nil {
t.Fatal(err)
}
@ -367,7 +367,7 @@ func TestTerraformStateReader_Google_Resources(t *testing.T) {
var realProvider *google.GCPTerraformProvider
providerVersion := "3.78.0"
var err error
realProvider, err = google.NewGCPTerraformProvider(providerVersion, progress, "")
realProvider, err = google.NewGCPTerraformProvider(providerVersion, progress, os.TempDir())
if err != nil {
t.Fatal(err)
}
@ -453,7 +453,7 @@ func TestTerraformStateReader_Azure_Resources(t *testing.T) {
var realProvider *azurerm.AzureTerraformProvider
providerVersion := "2.71.0"
var err error
realProvider, err = azurerm.NewAzureTerraformProvider(providerVersion, progress, "")
realProvider, err = azurerm.NewAzureTerraformProvider(providerVersion, progress, os.TempDir())
if err != nil {
t.Fatal(err)
}