@@ -34,7 +34,7 @@ func verifyVolumeInfo(v *csi.Volume) {
34
34
Expect (v .GetId ()).NotTo (BeEmpty ())
35
35
}
36
36
37
- func isCapabilitySupported (
37
+ func isControllerCapabilitySupported (
38
38
c csi.ControllerClient ,
39
39
capType csi.ControllerServiceCapability_RPC_Type ,
40
40
) bool {
@@ -97,7 +97,7 @@ var _ = Describe("GetCapacity [Controller Server]", func() {
97
97
BeforeEach (func () {
98
98
c = csi .NewControllerClient (conn )
99
99
100
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_GET_CAPACITY ) {
100
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_GET_CAPACITY ) {
101
101
Skip ("GetCapacity not supported" )
102
102
}
103
103
})
@@ -121,7 +121,7 @@ var _ = Describe("ListVolumes [Controller Server]", func() {
121
121
BeforeEach (func () {
122
122
c = csi .NewControllerClient (conn )
123
123
124
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_LIST_VOLUMES ) {
124
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_LIST_VOLUMES ) {
125
125
Skip ("ListVolumes not supported" )
126
126
}
127
127
})
@@ -152,7 +152,7 @@ var _ = Describe("CreateVolume [Controller Server]", func() {
152
152
BeforeEach (func () {
153
153
c = csi .NewControllerClient (conn )
154
154
155
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ) {
155
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ) {
156
156
Skip ("CreateVolume not supported" )
157
157
}
158
158
})
@@ -419,7 +419,7 @@ var _ = Describe("DeleteVolume [Controller Server]", func() {
419
419
BeforeEach (func () {
420
420
c = csi .NewControllerClient (conn )
421
421
422
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ) {
422
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME ) {
423
423
Skip ("DeleteVolume not supported" )
424
424
}
425
425
})
@@ -585,7 +585,7 @@ var _ = Describe("ControllerPublishVolume [Controller Server]", func() {
585
585
c = csi .NewControllerClient (conn )
586
586
n = csi .NewNodeClient (conn )
587
587
588
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ) {
588
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ) {
589
589
Skip ("ControllerPublishVolume not supported" )
590
590
}
591
591
})
@@ -715,7 +715,7 @@ var _ = Describe("ControllerUnpublishVolume [Controller Server]", func() {
715
715
c = csi .NewControllerClient (conn )
716
716
n = csi .NewNodeClient (conn )
717
717
718
- if ! isCapabilitySupported (c , csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ) {
718
+ if ! isControllerCapabilitySupported (c , csi .ControllerServiceCapability_RPC_PUBLISH_UNPUBLISH_VOLUME ) {
719
719
Skip ("ControllerUnpublishVolume not supported" )
720
720
}
721
721
})
0 commit comments