Format with goimport and refactor consts

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
Ulysses Souza 2020-05-13 08:54:48 +02:00
parent 14fb12c8c8
commit 7ff1899021
1 changed files with 9 additions and 8 deletions

View File

@ -5,17 +5,18 @@ import (
"log" "log"
"github.com/Azure/azure-sdk-for-go/profiles/2019-03-01/resources/mgmt/resources" "github.com/Azure/azure-sdk-for-go/profiles/2019-03-01/resources/mgmt/resources"
"github.com/Azure/go-autorest/autorest/to"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/docker/api/azure" "github.com/docker/api/azure"
. "github.com/docker/api/tests/framework" . "github.com/docker/api/tests/framework"
) )
const resourceGroupName = "resourceGroupTest" const (
resourceGroupName = "resourceGroupTest"
var location = "westeurope" location = "westeurope"
contextName = "acitest"
const contextName = "acitest" )
func main() { func main() {
SetupTest() SetupTest()
@ -142,7 +143,7 @@ func setupTestResourecGroup(groupName string) {
Expect(err).To(BeNil()) Expect(err).To(BeNil())
gc := azure.GetGroupsClient(subscriptionID) gc := azure.GetGroupsClient(subscriptionID)
_, err = gc.CreateOrUpdate(ctx, groupName, resources.Group{ _, err = gc.CreateOrUpdate(ctx, groupName, resources.Group{
Location: &location, Location: to.StringPtr(location),
}) })
Expect(err).To(BeNil()) Expect(err).To(BeNil())
} }