Skip to content

Commit 4f75ed2

Browse files
committed
Removed 2nd arg "cs" from TestVolumeClient
as we assume it is always set to f.ClientSet and we can use its value from passed framework argument.
1 parent 0064349 commit 4f75ed2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

test/e2e/common/volumes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var _ = ginkgo.Describe("[sig-storage] GCP Volumes", func() {
9191
}
9292

9393
// Must match content of test/images/volumes-tester/nfs/index.html
94-
volume.TestVolumeClient(f, c, config, nil, "" /* fsType */, tests)
94+
volume.TestVolumeClient(f, config, nil, "" /* fsType */, tests)
9595
})
9696
})
9797

@@ -114,7 +114,7 @@ var _ = ginkgo.Describe("[sig-storage] GCP Volumes", func() {
114114
},
115115
}
116116
// Must match content of test/images/volume-tester/nfs/index.html
117-
volume.TestVolumeClient(f, c, config, nil, "" /* fsType */, tests)
117+
volume.TestVolumeClient(f, config, nil, "" /* fsType */, tests)
118118
})
119119
})
120120

@@ -147,7 +147,7 @@ var _ = ginkgo.Describe("[sig-storage] GCP Volumes", func() {
147147
ExpectedContent: "Hello from GlusterFS!",
148148
},
149149
}
150-
volume.TestVolumeClient(f, c, config, nil, "" /* fsType */, tests)
150+
volume.TestVolumeClient(f, config, nil, "" /* fsType */, tests)
151151
})
152152
})
153153
})

test/e2e/framework/volume/fixtures.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,13 +574,13 @@ func testVolumeContent(f *framework.Framework, pod *v1.Pod, fsGroup *int64, fsTy
574574
// and check that the pod sees expected data, e.g. from the server pod.
575575
// Multiple Tests can be specified to mount multiple volumes to a single
576576
// pod.
577-
func TestVolumeClient(f *framework.Framework, client clientset.Interface, config TestConfig, fsGroup *int64, fsType string, tests []Test) {
578-
clientPod, err := runVolumeTesterPod(client, config, "client", false, fsGroup, tests)
577+
func TestVolumeClient(f *framework.Framework, config TestConfig, fsGroup *int64, fsType string, tests []Test) {
578+
clientPod, err := runVolumeTesterPod(f.ClientSet, config, "client", false, fsGroup, tests)
579579
if err != nil {
580580
framework.Failf("Failed to create client pod: %v", err)
581581

582582
}
583-
framework.ExpectNoError(e2epod.WaitForPodRunningInNamespace(client, clientPod))
583+
framework.ExpectNoError(e2epod.WaitForPodRunningInNamespace(f.ClientSet, clientPod))
584584
testVolumeContent(f, clientPod, fsGroup, fsType, tests)
585585
}
586586

test/e2e/storage/flexvolume.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func testFlexVolume(driver string, cs clientset.Interface, config volume.TestCon
6262
ExpectedContent: "Hello from flexvolume!",
6363
},
6464
}
65-
volume.TestVolumeClient(f, cs, config, nil, "" /* fsType */, tests)
65+
volume.TestVolumeClient(f, config, nil, "" /* fsType */, tests)
6666

6767
volume.TestCleanup(f, config)
6868
}

test/e2e/storage/testsuites/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (t *volumesTestSuite) defineTests(driver TestDriver, pattern testpatterns.T
180180
// not before starting the second pod.
181181
volume.InjectContent(f, f.ClientSet, config, fsGroup, pattern.FsType, tests)
182182
if driver.GetDriverInfo().Capabilities[CapPersistence] {
183-
volume.TestVolumeClient(f, f.ClientSet, config, fsGroup, pattern.FsType, tests)
183+
volume.TestVolumeClient(f, config, fsGroup, pattern.FsType, tests)
184184
} else {
185185
ginkgo.By("Skipping persistence check for non-persistent volume")
186186
}

test/e2e/storage/volumes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var _ = utils.SIGDescribe("Volumes", func() {
108108
ExpectedContent: "this is the second file",
109109
},
110110
}
111-
volume.TestVolumeClient(f, cs, config, nil, "" /* fsType */, tests)
111+
volume.TestVolumeClient(f, config, nil, "" /* fsType */, tests)
112112
})
113113
})
114114
})

0 commit comments

Comments
 (0)