@@ -482,7 +482,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo
482
482
Expect (vol .GetVolume ()).NotTo (BeNil ())
483
483
Expect (vol .GetVolume ().GetVolumeId ()).NotTo (BeEmpty ())
484
484
cl .RegisterVolume (name , VolumeInfo {VolumeID : vol .GetVolume ().GetVolumeId ()})
485
- Expect (vol .GetVolume ().GetCapacityBytes ()).To (BeNumerically (">=" , TestVolumeSize (sc )))
485
+ Expect (vol .GetVolume ().GetCapacityBytes ()).To (Or ( BeNumerically (">=" , TestVolumeSize (sc )), BeZero ( )))
486
486
487
487
By ("cleaning up deleting the volume" )
488
488
@@ -521,7 +521,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo
521
521
Expect (vol1 .GetVolume ()).NotTo (BeNil ())
522
522
Expect (vol1 .GetVolume ().GetVolumeId ()).NotTo (BeEmpty ())
523
523
cl .RegisterVolume (name , VolumeInfo {VolumeID : vol1 .GetVolume ().GetVolumeId ()})
524
- Expect (vol1 .GetVolume ().GetCapacityBytes ()).To (BeNumerically (">=" , size ))
524
+ Expect (vol1 .GetVolume ().GetCapacityBytes ()).To (Or ( BeNumerically (">=" , size ), BeZero () ))
525
525
526
526
vol2 , err := c .CreateVolume (
527
527
context .Background (),
@@ -541,7 +541,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo
541
541
Expect (vol2 ).NotTo (BeNil ())
542
542
Expect (vol2 .GetVolume ()).NotTo (BeNil ())
543
543
Expect (vol2 .GetVolume ().GetVolumeId ()).NotTo (BeEmpty ())
544
- Expect (vol2 .GetVolume ().GetCapacityBytes ()).To (BeNumerically (">=" , size ))
544
+ Expect (vol2 .GetVolume ().GetCapacityBytes ()).To (Or ( BeNumerically (">=" , size ), BeZero () ))
545
545
Expect (vol1 .GetVolume ().GetVolumeId ()).To (Equal (vol2 .GetVolume ().GetVolumeId ()))
546
546
547
547
By ("cleaning up deleting the volume" )
@@ -646,7 +646,7 @@ var _ = DescribeSanity("Controller Service [Controller Server]", func(sc *TestCo
646
646
Expect (vol .GetVolume ()).NotTo (BeNil ())
647
647
Expect (vol .GetVolume ().GetVolumeId ()).NotTo (BeEmpty ())
648
648
cl .RegisterVolume (name , VolumeInfo {VolumeID : vol .GetVolume ().GetVolumeId ()})
649
- Expect (vol .GetVolume ().GetCapacityBytes ()).To (BeNumerically (">=" , size ))
649
+ Expect (vol .GetVolume ().GetCapacityBytes ()).To (Or ( BeNumerically (">=" , size ), BeZero () ))
650
650
651
651
By ("cleaning up deleting the volume" )
652
652
0 commit comments