-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
acctest: disabling Binary Testing for now
This requires further co-ordination with the Plugin SDK team, since we shouldn't require adding a TestMain to each package - as such we're going to feature-toggle this off for the moment.
- Loading branch information
1 parent
0fa4bc8
commit 993afe3
Showing
2 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package acceptance | ||
|
||
import ( | ||
"os" | ||
"sync" | ||
|
||
"github.com/hashicorp/terraform-plugin-sdk/helper/schema" | ||
"github.com/hashicorp/terraform-plugin-sdk/terraform" | ||
"github.com/terraform-providers/terraform-provider-azuread/azuread" | ||
"github.com/terraform-providers/terraform-provider-azurerm/azurerm/internal/provider" | ||
) | ||
|
||
var once sync.Once | ||
|
||
func EnsureProvidersAreInited() { | ||
// NOTE: (@tombuildsstuff) - opting-out of Binary Testing for the moment | ||
os.Setenv("TF_DISABLE_BINARY_TESTING", "true") | ||
|
||
once.Do(func() { | ||
azureProvider := provider.TestAzureProvider().(*schema.Provider) | ||
|
||
AzureProvider = azureProvider | ||
SupportedProviders = map[string]terraform.ResourceProvider{ | ||
"azurerm": azureProvider, | ||
"azuread": azuread.Provider().(*schema.Provider), | ||
} | ||
|
||
//binarytestfuntime.UseBinaryDriver("azurerm", provider.TestAzureProvider) | ||
//binarytestfuntime.UseBinaryDriver("azuread", azuread.Provider) | ||
}) | ||
} |