This commit is contained in:
Paul Meyer 2019-10-03 04:23:37 +00:00
parent 0694f2635b
commit 716f19a457
3 changed files with 10 additions and 11 deletions

View File

@ -1,16 +1,16 @@
package client package client
import ( import (
"errors"
"net/http"
"os" "os"
"testing" "testing"
"net/http"
"errors"
"github.com/Azure/go-autorest/autorest/azure/auth" "github.com/Azure/go-autorest/autorest/azure/auth"
) )
func GetTestClientSet(t *testing.T) (AzureClientSet, error) { func GetTestClientSet(t *testing.T) (AzureClientSet, error) {
if (os.Getenv("AZURE_INTEGRATION_TEST") == "") { if os.Getenv("AZURE_INTEGRATION_TEST") == "" {
t.Skip("AZURE_INTEGRATION_TEST not set") t.Skip("AZURE_INTEGRATION_TEST not set")
} else { } else {
a, err := auth.NewAuthorizerFromEnvironment() a, err := auth.NewAuthorizerFromEnvironment()
@ -28,4 +28,3 @@ func GetTestClientSet(t *testing.T) (AzureClientSet, error) {
return nil, errors.New("Couldn't create client set") return nil, errors.New("Couldn't create client set")
} }