@@ -163,7 +163,7 @@ func Test_Run_Positive_VolumeAttachAndMount(t *testing.T) {
163
163
volumeSpec := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
164
164
podName := util .GetUniquePodName (pod )
165
165
generatedVolumeName , err := dsw .AddPodToVolume (
166
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
166
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
167
167
168
168
// Assert
169
169
if err != nil {
@@ -269,7 +269,7 @@ func Test_Run_Positive_VolumeAttachAndMountMigrationEnabled(t *testing.T) {
269
269
pod ,
270
270
migratedSpec ,
271
271
migratedSpec .Name (),
272
- "" , /* volumeGidValue */
272
+ "" , /* volumeGIDValue */
273
273
nil , /* SELinuxContexts */
274
274
)
275
275
@@ -361,7 +361,7 @@ func Test_Run_Positive_VolumeMountControllerAttachEnabled(t *testing.T) {
361
361
volumeSpec := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
362
362
podName := util .GetUniquePodName (pod )
363
363
generatedVolumeName , err := dsw .AddPodToVolume (
364
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
364
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
365
365
dsw .MarkVolumesReportedInUse ([]v1.UniqueVolumeName {generatedVolumeName })
366
366
367
367
// Assert
@@ -441,7 +441,7 @@ func Test_Run_Negative_VolumeMountControllerAttachEnabled(t *testing.T) {
441
441
volumeSpec := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
442
442
podName := util .GetUniquePodName (pod )
443
443
generatedVolumeName , err := dsw .AddPodToVolume (
444
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
444
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
445
445
446
446
// Assert
447
447
if err != nil {
@@ -520,7 +520,7 @@ func Test_Run_Positive_VolumeAttachMountUnmountDetach(t *testing.T) {
520
520
volumeSpec := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
521
521
podName := util .GetUniquePodName (pod )
522
522
generatedVolumeName , err := dsw .AddPodToVolume (
523
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
523
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
524
524
525
525
// Assert
526
526
if err != nil {
@@ -623,7 +623,7 @@ func Test_Run_Positive_VolumeUnmountControllerAttachEnabled(t *testing.T) {
623
623
volumeSpec := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
624
624
podName := util .GetUniquePodName (pod )
625
625
generatedVolumeName , err := dsw .AddPodToVolume (
626
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
626
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
627
627
628
628
// Assert
629
629
if err != nil {
@@ -731,7 +731,7 @@ func Test_Run_Positive_VolumeAttachAndMap(t *testing.T) {
731
731
}
732
732
podName := util .GetUniquePodName (pod )
733
733
generatedVolumeName , err := dsw .AddPodToVolume (
734
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
734
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
735
735
736
736
// Assert
737
737
if err != nil {
@@ -844,7 +844,7 @@ func Test_Run_Positive_BlockVolumeMapControllerAttachEnabled(t *testing.T) {
844
844
845
845
podName := util .GetUniquePodName (pod )
846
846
generatedVolumeName , err := dsw .AddPodToVolume (
847
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
847
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
848
848
dsw .MarkVolumesReportedInUse ([]v1.UniqueVolumeName {generatedVolumeName })
849
849
850
850
// Assert
@@ -942,7 +942,7 @@ func Test_Run_Positive_BlockVolumeAttachMapUnmapDetach(t *testing.T) {
942
942
943
943
podName := util .GetUniquePodName (pod )
944
944
generatedVolumeName , err := dsw .AddPodToVolume (
945
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
945
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
946
946
947
947
// Assert
948
948
if err != nil {
@@ -1067,7 +1067,7 @@ func Test_Run_Positive_VolumeUnmapControllerAttachEnabled(t *testing.T) {
1067
1067
1068
1068
podName := util .GetUniquePodName (pod )
1069
1069
generatedVolumeName , err := dsw .AddPodToVolume (
1070
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
1070
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
1071
1071
1072
1072
// Assert
1073
1073
if err != nil {
@@ -1349,7 +1349,7 @@ func Test_Run_Positive_VolumeFSResizeControllerAttachEnabled(t *testing.T) {
1349
1349
volumeSpec := & volume.Spec {PersistentVolume : pv }
1350
1350
podName := util .GetUniquePodName (pod )
1351
1351
volumeName , err := dsw .AddPodToVolume (
1352
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
1352
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
1353
1353
// Assert
1354
1354
if err != nil {
1355
1355
t .Fatalf ("AddPodToVolume failed. Expected: <no error> Actual: <%v>" , err )
@@ -1370,7 +1370,7 @@ func Test_Run_Positive_VolumeFSResizeControllerAttachEnabled(t *testing.T) {
1370
1370
// Simulate what DSOWP does
1371
1371
pvWithSize .Spec .Capacity [v1 .ResourceStorage ] = tc .newPVSize
1372
1372
volumeSpec = & volume.Spec {PersistentVolume : pvWithSize }
1373
- dsw .AddPodToVolume (podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxContexts */ )
1373
+ dsw .AddPodToVolume (podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxContexts */ )
1374
1374
1375
1375
t .Logf ("Changing size of the volume to %s" , tc .newPVSize .String ())
1376
1376
newSize := tc .newPVSize .DeepCopy ()
@@ -1604,7 +1604,7 @@ func Test_UncertainDeviceGlobalMounts(t *testing.T) {
1604
1604
volumeSpec := & volume.Spec {PersistentVolume : pv }
1605
1605
podName := util .GetUniquePodName (pod )
1606
1606
volumeName , err := dsw .AddPodToVolume (
1607
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
1607
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
1608
1608
// Assert
1609
1609
if err != nil {
1610
1610
t .Fatalf ("AddPodToVolume failed. Expected: <no error> Actual: <%v>" , err )
@@ -1827,7 +1827,7 @@ func Test_UncertainVolumeMountState(t *testing.T) {
1827
1827
volumeSpec := & volume.Spec {PersistentVolume : pv }
1828
1828
podName := util .GetUniquePodName (pod )
1829
1829
volumeName , err := dsw .AddPodToVolume (
1830
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
1830
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
1831
1831
// Assert
1832
1832
if err != nil {
1833
1833
t .Fatalf ("AddPodToVolume failed. Expected: <no error> Actual: <%v>" , err )
@@ -2166,7 +2166,7 @@ func Test_Run_Positive_VolumeMountControllerAttachEnabledRace(t *testing.T) {
2166
2166
volumeSpecCopy := & volume.Spec {Volume : & pod .Spec .Volumes [0 ]}
2167
2167
podName := util .GetUniquePodName (pod )
2168
2168
generatedVolumeName , err := dsw .AddPodToVolume (
2169
- podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
2169
+ podName , pod , volumeSpec , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
2170
2170
dsw .MarkVolumesReportedInUse ([]v1.UniqueVolumeName {generatedVolumeName })
2171
2171
2172
2172
if err != nil {
@@ -2193,7 +2193,7 @@ func Test_Run_Positive_VolumeMountControllerAttachEnabledRace(t *testing.T) {
2193
2193
klog .InfoS ("UnmountDevice called" )
2194
2194
var generatedVolumeNameCopy v1.UniqueVolumeName
2195
2195
generatedVolumeNameCopy , err = dsw .AddPodToVolume (
2196
- podName , pod , volumeSpecCopy , volumeSpec .Name (), "" /* volumeGidValue */ , nil /* seLinuxLabel */ )
2196
+ podName , pod , volumeSpecCopy , volumeSpec .Name (), "" /* volumeGIDValue */ , nil /* seLinuxLabel */ )
2197
2197
dsw .MarkVolumesReportedInUse ([]v1.UniqueVolumeName {generatedVolumeNameCopy })
2198
2198
return nil
2199
2199
}
0 commit comments