@@ -292,9 +292,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
292292 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
293293 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
294294
295- ginkgo .By ("Checking for conditions on pvc" )
296- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
297- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
295+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
296+ if ! isPrivateNetwork {
297+ ginkgo .By ("Checking for conditions on pvc" )
298+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
299+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
300+ }
298301
299302 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
300303 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
@@ -543,9 +546,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
543546 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
544547 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
545548
546- ginkgo .By ("Checking for conditions on pvc" )
547- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
548- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
549+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
550+ if ! isPrivateNetwork {
551+ ginkgo .By ("Checking for conditions on pvc" )
552+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
553+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
554+ }
549555
550556 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
551557 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
@@ -677,9 +683,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
677683 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
678684 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
679685
680- ginkgo .By ("Checking for conditions on pvc" )
681- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
682- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
686+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
687+ if ! isPrivateNetwork {
688+ ginkgo .By ("Checking for conditions on pvc" )
689+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
690+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
691+ }
683692
684693 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
685694 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
@@ -775,9 +784,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
775784 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
776785 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
777786
778- ginkgo .By ("Checking for conditions on pvc" )
779- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
780- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
787+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
788+ if ! isPrivateNetwork {
789+ ginkgo .By ("Checking for conditions on pvc" )
790+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
791+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
792+ }
781793
782794 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
783795 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
@@ -1053,9 +1065,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
10531065 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
10541066 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
10551067
1056- ginkgo .By ("Checking for conditions on pvc" )
1057- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
1058- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1068+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
1069+ if ! isPrivateNetwork {
1070+ ginkgo .By ("Checking for conditions on pvc" )
1071+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
1072+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
1073+ }
10591074
10601075 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
10611076 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
@@ -2295,9 +2310,12 @@ var _ = ginkgo.Describe("[csi-guest] Volume Expansion Test", func() {
22952310 err = waitForSvcPvcToReachFileSystemResizePendingCondition (ctx , svcPVCName , pollTimeout )
22962311 gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
22972312
2298- ginkgo .By ("Checking for conditions on pvc" )
2299- pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
2300- gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
2313+ isPrivateNetwork := GetBoolEnvVarOrDefault ("IS_PRIVATE_NETWORK" , false )
2314+ if ! isPrivateNetwork {
2315+ ginkgo .By ("Checking for conditions on pvc" )
2316+ pvclaim , err = waitForPVCToReachFileSystemResizePendingCondition (client , namespace , pvclaim .Name , pollTimeout )
2317+ gomega .Expect (err ).NotTo (gomega .HaveOccurred ())
2318+ }
23012319
23022320 ginkgo .By (fmt .Sprintf ("Invoking QueryCNSVolumeWithResult with VolumeID: %s" , volHandle ))
23032321 queryResult , err := e2eVSphere .queryCNSVolumeWithResult (volHandle )
0 commit comments