make azure fail if feature gates are not registered

This commit is contained in:
David Eads
2019-11-07 10:57:34 -05:00
parent 20c956c046
commit 7d897d5f77
4 changed files with 14 additions and 24 deletions

View File

@@ -87,14 +87,10 @@ func getAzureTestCloud(t *testing.T) *azure.Cloud {
"aadClientSecret": "--aad-client-secret--"
}`
configReader := strings.NewReader(config)
cloud, err := azure.NewCloud(configReader)
azureCloud, err := azure.NewCloudWithoutFeatureGates(configReader)
if err != nil {
t.Error(err)
}
azureCloud, ok := cloud.(*azure.Cloud)
if !ok {
t.Error("NewCloud returned incorrect type")
}
return azureCloud
}