Add tests for other cloud providers

This commit is contained in:
Cosmin Cojocar
2017-07-17 13:41:06 +02:00
parent 4378c7ae8e
commit 5c4290d4f2
2 changed files with 27 additions and 4 deletions

View File

@@ -284,7 +284,7 @@ func getAzureCloud(cloudProvider cloudprovider.Interface) (*azure.Cloud, error)
func getStorageEndpointSuffix(cloudprovider cloudprovider.Interface) string {
const publicCloudStorageEndpointSuffix = "core.windows.net"
azure, err := getAzureCloud(cloudprovider)
if err == nil {
if err != nil {
glog.Warningf("No Azure cloud provider found. Using the Azure public cloud endpoint: %s", publicCloudStorageEndpointSuffix)
return publicCloudStorageEndpointSuffix
}