Format with goimport and refactor consts
@@ -5,17 +5,18 @@ import (
"log"
"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/docker/api/azure"
. "github.com/docker/api/tests/framework"
)
-const resourceGroupName = "resourceGroupTest"
-
-var location = "westeurope"
-
-const contextName = "acitest"
+const (
+ resourceGroupName = "resourceGroupTest"
+ location = "westeurope"
+ contextName = "acitest"
+)
func main() {
SetupTest()
@@ -142,7 +143,7 @@ func setupTestResourecGroup(groupName string) {
Expect(err).To(BeNil())
gc := azure.GetGroupsClient(subscriptionID)
_, err = gc.CreateOrUpdate(ctx, groupName, resources.Group{
- Location: &location,
+ Location: to.StringPtr(location),
})
Expect(err).To(BeNil())
}
