@@ -23,7 +23,6 @@ import (
2323
2424 . "github.com/onsi/ginkgo"
2525 csi_util "github.com/oracle/oci-cloud-controller-manager/pkg/csi-util"
26- "github.com/oracle/oci-cloud-controller-manager/pkg/volume/provisioner/plugin"
2726 "github.com/oracle/oci-cloud-controller-manager/test/e2e/framework"
2827)
2928
@@ -392,7 +391,8 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
392391 pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
393392
394393 f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
395- err := pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
394+ err := pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
395+ if err != nil {
396396 framework .Failf ("Error deleting pod: %v" , err )
397397 }
398398 _ = f .DeleteStorageClass (scName )
@@ -407,7 +407,8 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
407407 pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
408408
409409 f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
410- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
410+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
411+ if err != nil {
411412 framework .Failf ("Error deleting pod: %v" , err )
412413 }
413414 _ = f .DeleteStorageClass (scName )
@@ -422,14 +423,15 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
422423 pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
423424
424425 f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
425- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
426+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
427+ if err != nil {
426428 framework .Failf ("Error deleting pod: %v" , err )
427429 }
428430 _ = f .DeleteStorageClass (scName )
429431 By ("Completed test: Create CSI block volume with UHP Performance Level and xfs file system" )
430432
431433 By ("Running test: Static Provisioning CSI UHP" )
432- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-4" , "blockvolume.csi.oraclecloud.com" ,
434+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-4" , "blockvolume.csi.oraclecloud.com" ,
433435 map [string ]string {framework .AttachmentType : framework .AttachmentTypeParavirtualized , csi_util .VpusPerGB : "30" },
434436 pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
435437
@@ -439,15 +441,16 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
439441 pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
440442
441443 pvcJig .CheckVolumeCapacity ("50Gi" , pvc .Name , f .Namespace .Name )
442- err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName ); if err != nil {
444+ err = pvcJig .DeleteAndAwaitPod (f .Namespace .Name , podName )
445+ if err != nil {
443446 framework .Failf ("Error deleting pod: %v" , err )
444447 }
445448 f .VolumeIds = append (f .VolumeIds , volumeId )
446449 _ = f .DeleteStorageClass (scName )
447450 By ("Completed test: Static Provisioning CSI UHP" )
448451
449452 By ("Running test: Basic Pod Delete UHP" )
450- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-5" , "blockvolume.csi.oraclecloud.com" ,
453+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-5" , "blockvolume.csi.oraclecloud.com" ,
451454 map [string ]string {framework .AttachmentType : framework .AttachmentTypeISCSI , csi_util .VpusPerGB : "30" },
452455 pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
453456 pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -476,7 +479,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
476479 framework .AttachmentType : framework .AttachmentTypeISCSI ,
477480 csi_util .VpusPerGB : "30" ,
478481 }
479- scName = f .CreateStorageClassOrFail (framework .ClassOCIKMS + "-1" , "blockvolume.csi.oraclecloud.com" , scParameter , pvcJig .Labels , "WaitForFirstConsumer" , false , "Delete" , nil )
482+ scName = f .CreateStorageClassOrFail (framework .ClassOCIKMS + "-1" , "blockvolume.csi.oraclecloud.com" , scParameter , pvcJig .Labels , "WaitForFirstConsumer" , false , "Delete" , nil )
480483 pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
481484 podName = pvcJig .NewPodForCSI ("app1" , f .Namespace .Name , pvc .Name , setupF .AdLabel )
482485 pvcJig .VerifyMultipathEnabled (ctx , f .ComputeClient , pvc .Name , f .Namespace .Name , compartmentId )
@@ -501,7 +504,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
501504 By ("Running test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for iSCSI UHP volume" )
502505 pvcJig .Name = "csi-uhp-pvc-expand-to-100gi"
503506 var size = "100Gi"
504- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-6" , "blockvolume.csi.oraclecloud.com" ,
507+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-6" , "blockvolume.csi.oraclecloud.com" ,
505508 map [string ]string {framework .AttachmentType : framework .AttachmentTypeISCSI , csi_util .VpusPerGB : "30" },
506509 pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
507510 pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -519,7 +522,7 @@ var _ = Describe("CSI Ultra High Performance Volumes", func() {
519522 By ("Completed test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for iSCSI UHP volume" )
520523
521524 By ("Running test: Expand PVC VolumeSize from 50Gi to 100Gi and asserts size, file existence and file corruptions for Paravirtualized UHP volume" )
522- scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-7" , "blockvolume.csi.oraclecloud.com" ,
525+ scName = f .CreateStorageClassOrFail (framework .ClassOCIUHP + "-7" , "blockvolume.csi.oraclecloud.com" ,
523526 map [string ]string {framework .AttachmentType : framework .AttachmentTypeParavirtualized , csi_util .VpusPerGB : "30" },
524527 pvcJig .Labels , "WaitForFirstConsumer" , true , "Delete" , nil )
525528 pvc = pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , scName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
@@ -751,8 +754,8 @@ func testTwoPVCSetup(f *framework.CloudProviderFramework, storageclass1params ma
751754 nodeHostname := pvcJig .GetNodeHostnameFromPod (podName , f .Namespace .Name )
752755
753756 nodeLabels := map [string ]string {
754- plugin . LabelZoneFailureDomain : setupF .AdLabel ,
755- framework .NodeHostnameLabel : nodeHostname ,
757+ v1 . LabelTopologyZone : setupF .AdLabel ,
758+ framework .NodeHostnameLabel : nodeHostname ,
756759 }
757760
758761 lowPerfScName := f .CreateStorageClassOrFail ("storage-class-two" , "blockvolume.csi.oraclecloud.com" ,
@@ -761,7 +764,6 @@ func testTwoPVCSetup(f *framework.CloudProviderFramework, storageclass1params ma
761764 pvcTwo := pvcJig .CreateAndAwaitPVCOrFailCSI (f .Namespace .Name , framework .MinVolumeBlock , lowPerfScName , nil , v1 .PersistentVolumeFilesystem , v1 .ReadWriteOnce , v1 .ClaimPending )
762765 podName2 := pvcJig .NewPodWithLabels ("pvc-two-app" , f .Namespace .Name , pvcTwo .Name , nodeLabels )
763766
764-
765767 pvcJig .DeleteAndAwaitPodOrFail (f .Namespace .Name , podName )
766768 pvcJig .DeleteAndAwaitPodOrFail (f .Namespace .Name , podName2 )
767769 f .VolumeIds = append (f .VolumeIds , pvc .Spec .VolumeName )
0 commit comments