[ARVADOS] updated: 1.3.0-3027-g4706c89f0

Git user git at public.arvados.org
Fri Aug 28 12:30:17 UTC 2020


Summary of changes:
 lib/cloud/azure/azure_test.go                 | 4 ++--
 lib/cloud/ec2/ec2.go                          | 8 ++++----
 lib/cloud/ec2/ec2_test.go                     | 8 ++++----
 lib/controller/handler_test.go                | 4 ++--
 lib/dispatchcloud/scheduler/run_queue_test.go | 2 +-
 services/keepstore/proxy_remote_test.go       | 2 +-
 services/ws/service_test.go                   | 2 +-
 7 files changed, 15 insertions(+), 15 deletions(-)

       via  4706c89f091563cc56a6d4f819e025850031a009 (commit)
      from  ecff7e34ea7d5e8321c2821cae476355bffbc248 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 4706c89f091563cc56a6d4f819e025850031a009
Author: Ward Vandewege <ward at curii.com>
Date:   Fri Aug 28 08:29:57 2020 -0400

    Fix more gofmt warnings.
    
    No issue #
    
    Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <ward at curii.com>

diff --git a/lib/cloud/azure/azure_test.go b/lib/cloud/azure/azure_test.go
index 7b5a34df5..96d6dca69 100644
--- a/lib/cloud/azure/azure_test.go
+++ b/lib/cloud/azure/azure_test.go
@@ -127,7 +127,7 @@ var live = flag.String("live-azure-cfg", "", "Test with real azure API, provide
 func GetInstanceSet() (cloud.InstanceSet, cloud.ImageID, arvados.Cluster, error) {
 	cluster := arvados.Cluster{
 		InstanceTypes: arvados.InstanceTypeMap(map[string]arvados.InstanceType{
-			"tiny": arvados.InstanceType{
+			"tiny": {
 				Name:         "tiny",
 				ProviderType: "Standard_D1_v2",
 				VCPUs:        1,
@@ -259,7 +259,7 @@ func (*AzureInstanceSetSuite) TestWrapError(c *check.C) {
 			DetailedError: autorest.DetailedError{
 				Response: &http.Response{
 					StatusCode: 429,
-					Header:     map[string][]string{"Retry-After": []string{"123"}},
+					Header:     map[string][]string{"Retry-After": {"123"}},
 				},
 			},
 			ServiceError: &azure.ServiceError{},
diff --git a/lib/cloud/ec2/ec2.go b/lib/cloud/ec2/ec2.go
index 2de82b1dc..c329c1f88 100644
--- a/lib/cloud/ec2/ec2.go
+++ b/lib/cloud/ec2/ec2.go
@@ -128,7 +128,7 @@ func (instanceSet *ec2InstanceSet) Create(
 	var ok bool
 	if keyname, ok = instanceSet.keys[md5keyFingerprint]; !ok {
 		keyout, err := instanceSet.client.DescribeKeyPairs(&ec2.DescribeKeyPairsInput{
-			Filters: []*ec2.Filter{&ec2.Filter{
+			Filters: []*ec2.Filter{{
 				Name:   aws.String("fingerprint"),
 				Values: []*string{&md5keyFingerprint, &sha1keyFingerprint},
 			}},
@@ -174,7 +174,7 @@ func (instanceSet *ec2InstanceSet) Create(
 		KeyName:      &keyname,
 
 		NetworkInterfaces: []*ec2.InstanceNetworkInterfaceSpecification{
-			&ec2.InstanceNetworkInterfaceSpecification{
+			{
 				AssociatePublicIpAddress: aws.Bool(false),
 				DeleteOnTermination:      aws.Bool(true),
 				DeviceIndex:              aws.Int64(0),
@@ -184,7 +184,7 @@ func (instanceSet *ec2InstanceSet) Create(
 		DisableApiTermination:             aws.Bool(false),
 		InstanceInitiatedShutdownBehavior: aws.String("terminate"),
 		TagSpecifications: []*ec2.TagSpecification{
-			&ec2.TagSpecification{
+			{
 				ResourceType: aws.String("instance"),
 				Tags:         ec2tags,
 			}},
@@ -192,7 +192,7 @@ func (instanceSet *ec2InstanceSet) Create(
 	}
 
 	if instanceType.AddedScratch > 0 {
-		rii.BlockDeviceMappings = []*ec2.BlockDeviceMapping{&ec2.BlockDeviceMapping{
+		rii.BlockDeviceMappings = []*ec2.BlockDeviceMapping{{
 			DeviceName: aws.String("/dev/xvdt"),
 			Ebs: &ec2.EbsBlockDevice{
 				DeleteOnTermination: aws.Bool(true),
diff --git a/lib/cloud/ec2/ec2_test.go b/lib/cloud/ec2/ec2_test.go
index 638f4a77a..6aa6e857f 100644
--- a/lib/cloud/ec2/ec2_test.go
+++ b/lib/cloud/ec2/ec2_test.go
@@ -65,7 +65,7 @@ func (e *ec2stub) DescribeKeyPairs(input *ec2.DescribeKeyPairsInput) (*ec2.Descr
 }
 
 func (e *ec2stub) RunInstances(input *ec2.RunInstancesInput) (*ec2.Reservation, error) {
-	return &ec2.Reservation{Instances: []*ec2.Instance{&ec2.Instance{
+	return &ec2.Reservation{Instances: []*ec2.Instance{{
 		InstanceId: aws.String("i-123"),
 		Tags:       input.TagSpecifications[0].Tags,
 	}}}, nil
@@ -86,7 +86,7 @@ func (e *ec2stub) TerminateInstances(input *ec2.TerminateInstancesInput) (*ec2.T
 func GetInstanceSet() (cloud.InstanceSet, cloud.ImageID, arvados.Cluster, error) {
 	cluster := arvados.Cluster{
 		InstanceTypes: arvados.InstanceTypeMap(map[string]arvados.InstanceType{
-			"tiny": arvados.InstanceType{
+			"tiny": {
 				Name:         "tiny",
 				ProviderType: "t2.micro",
 				VCPUs:        1,
@@ -95,7 +95,7 @@ func GetInstanceSet() (cloud.InstanceSet, cloud.ImageID, arvados.Cluster, error)
 				Price:        .02,
 				Preemptible:  false,
 			},
-			"tiny-with-extra-scratch": arvados.InstanceType{
+			"tiny-with-extra-scratch": {
 				Name:         "tiny",
 				ProviderType: "t2.micro",
 				VCPUs:        1,
@@ -104,7 +104,7 @@ func GetInstanceSet() (cloud.InstanceSet, cloud.ImageID, arvados.Cluster, error)
 				Preemptible:  false,
 				AddedScratch: 20000000000,
 			},
-			"tiny-preemptible": arvados.InstanceType{
+			"tiny-preemptible": {
 				Name:         "tiny",
 				ProviderType: "t2.micro",
 				VCPUs:        1,
diff --git a/lib/controller/handler_test.go b/lib/controller/handler_test.go
index ef6b9195f..7d8266a85 100644
--- a/lib/controller/handler_test.go
+++ b/lib/controller/handler_test.go
@@ -334,7 +334,7 @@ func (s *HandlerSuite) TestGetObjects(c *check.C) {
 		"api_clients/" + arvadostest.TrustedWorkbenchAPIClientUUID:     nil,
 		"api_client_authorizations/" + arvadostest.AdminTokenUUID:      nil,
 		"authorized_keys/" + arvadostest.AdminAuthorizedKeysUUID:       nil,
-		"collections/" + arvadostest.CollectionWithUniqueWordsUUID:     map[string]bool{"href": true},
+		"collections/" + arvadostest.CollectionWithUniqueWordsUUID:     {"href": true},
 		"containers/" + arvadostest.RunningContainerUUID:               nil,
 		"container_requests/" + arvadostest.QueuedContainerRequestUUID: nil,
 		"groups/" + arvadostest.AProjectUUID:                           nil,
@@ -343,7 +343,7 @@ func (s *HandlerSuite) TestGetObjects(c *check.C) {
 		"logs/" + arvadostest.CrunchstatForRunningJobLogUUID:           nil,
 		"nodes/" + arvadostest.IdleNodeUUID:                            nil,
 		"repositories/" + arvadostest.ArvadosRepoUUID:                  nil,
-		"users/" + arvadostest.ActiveUserUUID:                          map[string]bool{"href": true},
+		"users/" + arvadostest.ActiveUserUUID:                          {"href": true},
 		"virtual_machines/" + arvadostest.TestVMUUID:                   nil,
 		"workflows/" + arvadostest.WorkflowWithDefinitionYAMLUUID:      nil,
 	}
diff --git a/lib/dispatchcloud/scheduler/run_queue_test.go b/lib/dispatchcloud/scheduler/run_queue_test.go
index 992edddfb..fbc73ef50 100644
--- a/lib/dispatchcloud/scheduler/run_queue_test.go
+++ b/lib/dispatchcloud/scheduler/run_queue_test.go
@@ -352,7 +352,7 @@ func (*SchedulerSuite) TestKillNonexistentContainer(c *check.C) {
 			test.InstanceType(2): 0,
 		},
 		running: map[string]time.Time{
-			test.ContainerUUID(2): time.Time{},
+			test.ContainerUUID(2): {},
 		},
 	}
 	queue := test.Queue{
diff --git a/services/keepstore/proxy_remote_test.go b/services/keepstore/proxy_remote_test.go
index a244561df..00161bf23 100644
--- a/services/keepstore/proxy_remote_test.go
+++ b/services/keepstore/proxy_remote_test.go
@@ -91,7 +91,7 @@ func (s *ProxyRemoteSuite) SetUpTest(c *check.C) {
 	s.cluster.Collections.BlobSigningKey = knownKey
 	s.cluster.SystemRootToken = arvadostest.SystemRootToken
 	s.cluster.RemoteClusters = map[string]arvados.RemoteCluster{
-		s.remoteClusterID: arvados.RemoteCluster{
+		s.remoteClusterID: {
 			Host:     strings.Split(s.remoteAPI.URL, "//")[1],
 			Proxy:    true,
 			Scheme:   "http",
diff --git a/services/ws/service_test.go b/services/ws/service_test.go
index 13726836a..4e68d09da 100644
--- a/services/ws/service_test.go
+++ b/services/ws/service_test.go
@@ -72,7 +72,7 @@ func (*serviceSuite) testConfig(c *check.C) (*arvados.Cluster, error) {
 	cluster.TLS.Insecure = client.Insecure
 	cluster.PostgreSQL.Connection = testDBConfig()
 	cluster.PostgreSQL.ConnectionPool = 12
-	cluster.Services.Websocket.InternalURLs = map[arvados.URL]arvados.ServiceInstance{arvados.URL{Host: ":"}: arvados.ServiceInstance{}}
+	cluster.Services.Websocket.InternalURLs = map[arvados.URL]arvados.ServiceInstance{{Host: ":"}: {}}
 	cluster.ManagementToken = arvadostest.ManagementToken
 	return cluster, nil
 }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list