@@ -825,7 +825,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
825
825
volReq .VolumeContentSource = & csi.VolumeContentSource {
826
826
Type : & csi.VolumeContentSource_Volume {
827
827
Volume : & csi.VolumeContentSource_VolumeSource {
828
- VolumeId : "non-existing-volume-id" ,
828
+ VolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () ,
829
829
},
830
830
},
831
831
}
@@ -864,7 +864,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
864
864
_ , err := c .DeleteVolume (
865
865
context .Background (),
866
866
& csi.DeleteVolumeRequest {
867
- VolumeId : "reallyfakevolumeid" ,
867
+ VolumeId : sc . Config . IDGen . GenerateInvalidVolumeID () ,
868
868
Secrets : sc .Secrets .DeleteVolumeSecret ,
869
869
},
870
870
)
@@ -1061,7 +1061,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
1061
1061
_ , err := c .ValidateVolumeCapabilities (
1062
1062
context .Background (),
1063
1063
& csi.ValidateVolumeCapabilitiesRequest {
1064
- VolumeId : "some-vol-id" ,
1064
+ VolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () ,
1065
1065
VolumeCapabilities : []* csi.VolumeCapability {
1066
1066
{
1067
1067
AccessType : & csi.VolumeCapability_Mount {
@@ -1110,7 +1110,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
1110
1110
_ , err := c .ControllerPublishVolume (
1111
1111
context .Background (),
1112
1112
& csi.ControllerPublishVolumeRequest {
1113
- VolumeId : "id" ,
1113
+ VolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () ,
1114
1114
Secrets : sc .Secrets .ControllerPublishVolumeSecret ,
1115
1115
},
1116
1116
)
@@ -1126,8 +1126,8 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
1126
1126
_ , err := c .ControllerPublishVolume (
1127
1127
context .Background (),
1128
1128
& csi.ControllerPublishVolumeRequest {
1129
- VolumeId : "id" ,
1130
- NodeId : "fakenode" ,
1129
+ VolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () ,
1130
+ NodeId : sc . Config . IDGen . GenerateUniqueValidNodeID () ,
1131
1131
Secrets : sc .Secrets .ControllerPublishVolumeSecret ,
1132
1132
},
1133
1133
)
@@ -1287,8 +1287,8 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
1287
1287
conpubvol , err := c .ControllerPublishVolume (
1288
1288
context .Background (),
1289
1289
& csi.ControllerPublishVolumeRequest {
1290
- VolumeId : "some-vol-id" ,
1291
- NodeId : "some-node-id" ,
1290
+ VolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () ,
1291
+ NodeId : sc . Config . IDGen . GenerateUniqueValidNodeID () ,
1292
1292
VolumeCapability : & csi.VolumeCapability {
1293
1293
AccessType : & csi.VolumeCapability_Mount {
1294
1294
Mount : & csi.VolumeCapability_MountVolume {},
@@ -1346,7 +1346,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *Sanity
1346
1346
context .Background (),
1347
1347
& csi.ControllerPublishVolumeRequest {
1348
1348
VolumeId : vol .GetVolume ().GetVolumeId (),
1349
- NodeId : "some-fake-node-id" ,
1349
+ NodeId : sc . Config . IDGen . GenerateUniqueValidNodeID () ,
1350
1350
VolumeCapability : & csi.VolumeCapability {
1351
1351
AccessType : & csi.VolumeCapability_Mount {
1352
1352
Mount : & csi.VolumeCapability_MountVolume {},
@@ -1711,7 +1711,7 @@ var _ = DescribeSanity("ListSnapshots [Controller Server]", func(sc *SanityConte
1711
1711
1712
1712
snapshots , err := c .ListSnapshots (
1713
1713
context .Background (),
1714
- & csi.ListSnapshotsRequest {SourceVolumeId : "none-exist-volume-id" })
1714
+ & csi.ListSnapshotsRequest {SourceVolumeId : sc . Config . IDGen . GenerateUniqueValidVolumeID () })
1715
1715
Expect (err ).NotTo (HaveOccurred ())
1716
1716
Expect (snapshots ).NotTo (BeNil ())
1717
1717
Expect (snapshots .GetEntries ()).To (BeEmpty ())
0 commit comments