Merge pull request #12504 from hashicorp/jbardin/arm-test-providers

Add MetaReset to azure provider
This commit is contained in:
James Bardin 2017-03-09 13:22:34 -05:00 committed by GitHub
commit 3c1ec9ddcd
1 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,12 @@ func providerConfigure(p *schema.Provider) schema.ConfigureFunc {
client.StopContext = p.StopContext()
// replaces the context between tests
p.MetaReset = func() error {
client.StopContext = p.StopContext()
return nil
}
// List all the available providers and their registration state to avoid unnecessary
// requests. This also lets us check if the provider credentials are correct.
providerList, err := client.providers.List(nil, "")