Skip to content

Commit 7592dc1

Browse files
committed
run hack/update-gofmt.sh
1 parent 2ea318a commit 7592dc1

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

pkg/gce-pd-csi-driver/controller_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2294,56 +2294,56 @@ func TestControllerPublishBackoffMissingInstance(t *testing.T) {
22942294
})
22952295
}
22962296

2297-
func TestCleanSelfLink(t *testing.T){
2297+
func TestCleanSelfLink(t *testing.T) {
22982298
testCases := []struct {
2299-
name string
2300-
in string
2301-
want string
2299+
name string
2300+
in string
2301+
want string
23022302
}{
23032303
{
23042304
name: "v1 full standard w/ endpoint prefix",
2305-
in: "https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk",
2305+
in: "https://www.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk",
23062306
want: "projects/project/zones/zone/disks/disk",
23072307
},
23082308
{
23092309
name: "beta full standard w/ endpoint prefix",
2310-
in: "https://www.googleapis.com/compute/beta/projects/project/zones/zone/disks/disk",
2310+
in: "https://www.googleapis.com/compute/beta/projects/project/zones/zone/disks/disk",
23112311
want: "projects/project/zones/zone/disks/disk",
23122312
},
23132313
{
23142314
name: "alpha full standard w/ endpoint prefix",
2315-
in: "https://www.googleapis.com/compute/alpha/projects/project/zones/zone/disks/disk",
2315+
in: "https://www.googleapis.com/compute/alpha/projects/project/zones/zone/disks/disk",
23162316
want: "projects/project/zones/zone/disks/disk",
23172317
},
23182318
{
23192319
name: "no prefix",
2320-
in: "projects/project/zones/zone/disks/disk",
2320+
in: "projects/project/zones/zone/disks/disk",
23212321
want: "projects/project/zones/zone/disks/disk",
23222322
},
23232323

23242324
{
23252325
name: "no prefix + project omitted",
2326-
in: "zones/zone/disks/disk",
2326+
in: "zones/zone/disks/disk",
23272327
want: "zones/zone/disks/disk",
23282328
},
23292329
{
23302330
name: "Compute prefix, google api",
2331-
in: "https://www.compute.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk",
2331+
in: "https://www.compute.googleapis.com/compute/v1/projects/project/zones/zone/disks/disk",
23322332
want: "projects/project/zones/zone/disks/disk",
23332333
},
23342334
{
23352335
name: "Compute prefix, partner api",
2336-
in: "https://www.compute.PARTNERapis.com/compute/v1/projects/project/zones/zone/disks/disk",
2336+
in: "https://www.compute.PARTNERapis.com/compute/v1/projects/project/zones/zone/disks/disk",
23372337
want: "projects/project/zones/zone/disks/disk",
23382338
},
23392339
{
23402340
name: "Partner beta api",
2341-
in: "https://www.PARTNERapis.com/compute/beta/projects/project/zones/zone/disks/disk",
2341+
in: "https://www.PARTNERapis.com/compute/beta/projects/project/zones/zone/disks/disk",
23422342
want: "projects/project/zones/zone/disks/disk",
23432343
},
23442344
{
23452345
name: "Partner alpha api",
2346-
in: "https://www.partnerapis.com/compute/alpha/projects/project/zones/zone/disks/disk",
2346+
in: "https://www.partnerapis.com/compute/alpha/projects/project/zones/zone/disks/disk",
23472347
want: "projects/project/zones/zone/disks/disk",
23482348
},
23492349
}

0 commit comments

Comments
 (0)