@@ -379,7 +379,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
379
379
})
380
380
381
381
It ("should fail when no volume capabilities are provided" , func () {
382
- name := uniqueString ("sanity-controller-create-no-volume-capabilities" )
382
+ name := UniqueString ("sanity-controller-create-no-volume-capabilities" )
383
383
vol , err := c .CreateVolume (
384
384
context .Background (),
385
385
& csi.CreateVolumeRequest {
@@ -399,7 +399,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
399
399
It ("should return appropriate values SingleNodeWriter NoCapacity Type:Mount" , func () {
400
400
401
401
By ("creating a volume" )
402
- name := uniqueString ("sanity-controller-create-single-no-capacity" )
402
+ name := UniqueString ("sanity-controller-create-single-no-capacity" )
403
403
404
404
vol , err := c .CreateVolume (
405
405
context .Background (),
@@ -441,7 +441,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
441
441
It ("should return appropriate values SingleNodeWriter WithCapacity 1Gi Type:Mount" , func () {
442
442
443
443
By ("creating a volume" )
444
- name := uniqueString ("sanity-controller-create-single-with-capacity" )
444
+ name := UniqueString ("sanity-controller-create-single-with-capacity" )
445
445
446
446
vol , err := c .CreateVolume (
447
447
context .Background (),
@@ -490,7 +490,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
490
490
It ("should not fail when requesting to create a volume with already existing name and same capacity." , func () {
491
491
492
492
By ("creating a volume" )
493
- name := uniqueString ("sanity-controller-create-twice" )
493
+ name := UniqueString ("sanity-controller-create-twice" )
494
494
size := TestVolumeSize (sc )
495
495
496
496
vol1 , err := c .CreateVolume (
@@ -564,7 +564,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
564
564
It ("should fail when requesting to create a volume with already existing name and different capacity." , func () {
565
565
566
566
By ("creating a volume" )
567
- name := uniqueString ("sanity-controller-create-twice-different" )
567
+ name := UniqueString ("sanity-controller-create-twice-different" )
568
568
size1 := TestVolumeSize (sc )
569
569
570
570
vol1 , err := c .CreateVolume (
@@ -693,21 +693,21 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
693
693
}
694
694
695
695
By ("creating a volume" )
696
- vol1Name := uniqueString ("sanity-controller-source-vol" )
696
+ vol1Name := UniqueString ("sanity-controller-source-vol" )
697
697
vol1Req := MakeCreateVolumeReq (sc , vol1Name )
698
698
volume1 , err := c .CreateVolume (context .Background (), vol1Req )
699
699
Expect (err ).NotTo (HaveOccurred ())
700
700
701
701
By ("creating a snapshot" )
702
- snapName := uniqueString ("sanity-controller-snap-from-vol" )
702
+ snapName := UniqueString ("sanity-controller-snap-from-vol" )
703
703
snapReq := MakeCreateSnapshotReq (sc , snapName , volume1 .GetVolume ().GetVolumeId (), nil )
704
704
snap , err := c .CreateSnapshot (context .Background (), snapReq )
705
705
Expect (err ).NotTo (HaveOccurred ())
706
706
Expect (snap ).NotTo (BeNil ())
707
707
verifySnapshotInfo (snap .GetSnapshot ())
708
708
709
709
By ("creating a volume from source snapshot" )
710
- vol2Name := uniqueString ("sanity-controller-vol-from-snap" )
710
+ vol2Name := UniqueString ("sanity-controller-vol-from-snap" )
711
711
vol2Req := MakeCreateVolumeReq (sc , vol2Name )
712
712
vol2Req .VolumeContentSource = & csi.VolumeContentSource {
713
713
Type : & csi.VolumeContentSource_Snapshot {
@@ -741,7 +741,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
741
741
}
742
742
743
743
By ("creating a volume from source snapshot" )
744
- volName := uniqueString ("sanity-controller-vol-from-snap" )
744
+ volName := UniqueString ("sanity-controller-vol-from-snap" )
745
745
volReq := MakeCreateVolumeReq (sc , volName )
746
746
volReq .VolumeContentSource = & csi.VolumeContentSource {
747
747
Type : & csi.VolumeContentSource_Snapshot {
@@ -763,13 +763,13 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
763
763
}
764
764
765
765
By ("creating a volume" )
766
- vol1Name := uniqueString ("sanity-controller-source-vol" )
766
+ vol1Name := UniqueString ("sanity-controller-source-vol" )
767
767
vol1Req := MakeCreateVolumeReq (sc , vol1Name )
768
768
volume1 , err := c .CreateVolume (context .Background (), vol1Req )
769
769
Expect (err ).NotTo (HaveOccurred ())
770
770
771
771
By ("creating a volume from source volume" )
772
- vol2Name := uniqueString ("sanity-controller-vol-from-vol" )
772
+ vol2Name := UniqueString ("sanity-controller-vol-from-vol" )
773
773
vol2Req := MakeCreateVolumeReq (sc , vol2Name )
774
774
vol2Req .VolumeContentSource = & csi.VolumeContentSource {
775
775
Type : & csi.VolumeContentSource_Volume {
@@ -798,7 +798,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
798
798
}
799
799
800
800
By ("creating a volume from source snapshot" )
801
- volName := uniqueString ("sanity-controller-vol-from-snap" )
801
+ volName := UniqueString ("sanity-controller-vol-from-snap" )
802
802
volReq := MakeCreateVolumeReq (sc , volName )
803
803
volReq .VolumeContentSource = & csi.VolumeContentSource {
804
804
Type : & csi.VolumeContentSource_Volume {
@@ -853,7 +853,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
853
853
854
854
// Create Volume First
855
855
By ("creating a volume" )
856
- name := uniqueString ("sanity-controller-create-appropriate" )
856
+ name := UniqueString ("sanity-controller-create-appropriate" )
857
857
858
858
vol , err := c .CreateVolume (
859
859
context .Background (),
@@ -913,7 +913,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
913
913
914
914
// Create Volume First
915
915
By ("creating a single node writer volume" )
916
- name := uniqueString ("sanity-controller-validate-nocaps" )
916
+ name := UniqueString ("sanity-controller-validate-nocaps" )
917
917
918
918
vol , err := c .CreateVolume (
919
919
context .Background (),
@@ -968,7 +968,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
968
968
969
969
// Create Volume First
970
970
By ("creating a single node writer volume" )
971
- name := uniqueString ("sanity-controller-validate" )
971
+ name := UniqueString ("sanity-controller-validate" )
972
972
973
973
vol , err := c .CreateVolume (
974
974
context .Background (),
@@ -1120,7 +1120,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
1120
1120
1121
1121
// Create Volume First
1122
1122
By ("creating a single node writer volume" )
1123
- name := uniqueString ("sanity-controller-publish" )
1123
+ name := UniqueString ("sanity-controller-publish" )
1124
1124
1125
1125
vol , err := c .CreateVolume (
1126
1126
context .Background (),
@@ -1228,14 +1228,14 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
1228
1228
createdVols := map [string ]string {}
1229
1229
By ("creating volumes" )
1230
1230
for i := int64 (0 ); i < nodeInfo .MaxVolumesPerNode ; i ++ {
1231
- name := uniqueString (fmt .Sprintf ("sanity-max-attach-limit-vol-%d" , i ))
1231
+ name := UniqueString (fmt .Sprintf ("sanity-max-attach-limit-vol-%d" , i ))
1232
1232
volID , err := CreateAndControllerPublishVolume (sc , c , name , nid )
1233
1233
Expect (err ).NotTo (HaveOccurred ())
1234
1234
cl .RegisterVolume (name , VolumeInfo {VolumeID : volID , NodeID : nid })
1235
1235
createdVols [name ] = volID
1236
1236
}
1237
1237
1238
- extraVolName := uniqueString ("sanity-max-attach-limit-vol+1" )
1238
+ extraVolName := UniqueString ("sanity-max-attach-limit-vol+1" )
1239
1239
_ , err = CreateAndControllerPublishVolume (sc , c , extraVolName , nid )
1240
1240
Expect (err ).To (HaveOccurred ())
1241
1241
@@ -1280,7 +1280,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
1280
1280
1281
1281
// Create Volume First
1282
1282
By ("creating a single node writer volume" )
1283
- name := uniqueString ("sanity-controller-wrong-node" )
1283
+ name := UniqueString ("sanity-controller-wrong-node" )
1284
1284
1285
1285
vol , err := c .CreateVolume (
1286
1286
context .Background (),
@@ -1353,7 +1353,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
1353
1353
1354
1354
// Create Volume First
1355
1355
By ("creating a single node writer volume" )
1356
- name := uniqueString ("sanity-controller-published-incompatible" )
1356
+ name := UniqueString ("sanity-controller-published-incompatible" )
1357
1357
1358
1358
vol , err := c .CreateVolume (
1359
1359
context .Background (),
@@ -1475,7 +1475,7 @@ var _ = DescribeSanity("Controller Service", func(sc *SanityContext) {
1475
1475
1476
1476
// Create Volume First
1477
1477
By ("creating a single node writer volume" )
1478
- name := uniqueString ("sanity-controller-unpublish" )
1478
+ name := UniqueString ("sanity-controller-unpublish" )
1479
1479
1480
1480
vol , err := c .CreateVolume (
1481
1481
context .Background (),
0 commit comments