@@ -1731,16 +1731,16 @@ var _ = utils.SIGDescribe("CSI mock volume", func() {
1731
1731
},
1732
1732
}
1733
1733
for _ , t := range tests {
1734
- test := t
1735
- ginkgo .It (test .name , func () {
1734
+ t := t
1735
+ ginkgo .It (t .name , func () {
1736
1736
var nodeStageFsGroup , nodePublishFsGroup string
1737
1737
if framework .NodeOSDistroIs ("windows" ) {
1738
1738
e2eskipper .Skipf ("FSGroupPolicy is only applied on linux nodes -- skipping" )
1739
1739
}
1740
1740
init (testParameters {
1741
1741
disableAttach : true ,
1742
1742
registerDriver : true ,
1743
- enableVolumeMountGroup : test .enableVolumeMountGroup ,
1743
+ enableVolumeMountGroup : t .enableVolumeMountGroup ,
1744
1744
hooks : createFSGroupRequestPreHook (& nodeStageFsGroup , & nodePublishFsGroup ),
1745
1745
})
1746
1746
defer cleanup ()
@@ -2479,14 +2479,14 @@ func createPreHook(method string, callback func(counter int64) error) *drivers.H
2479
2479
func createFSGroupRequestPreHook (nodeStageFsGroup , nodePublishFsGroup * string ) * drivers.Hooks {
2480
2480
return & drivers.Hooks {
2481
2481
Pre : func (ctx context.Context , fullMethod string , request interface {}) (reply interface {}, err error ) {
2482
- nodeStageRequest , ok := request .(csipbv1.NodeStageVolumeRequest )
2482
+ nodeStageRequest , ok := request .(* csipbv1.NodeStageVolumeRequest )
2483
2483
if ok {
2484
2484
mountVolume := nodeStageRequest .GetVolumeCapability ().GetMount ()
2485
2485
if mountVolume != nil {
2486
2486
* nodeStageFsGroup = mountVolume .VolumeMountGroup
2487
2487
}
2488
2488
}
2489
- nodePublishRequest , ok := request .(csipbv1.NodePublishVolumeRequest )
2489
+ nodePublishRequest , ok := request .(* csipbv1.NodePublishVolumeRequest )
2490
2490
if ok {
2491
2491
mountVolume := nodePublishRequest .GetVolumeCapability ().GetMount ()
2492
2492
if mountVolume != nil {
0 commit comments