@@ -21,10 +21,10 @@ import (
21
21
"fmt"
22
22
"testing"
23
23
24
- cloudProvider "github.com/IBM/ibm-csi-common/pkg/ibmcloudprovider"
25
24
"github.com/IBM/ibm-csi-common/pkg/utils"
26
25
"github.com/IBM/ibmcloud-volume-interface/config"
27
26
"github.com/IBM/ibmcloud-volume-interface/lib/provider"
27
+ cloudProvider "github.com/IBM/ibmcloud-volume-vpc/pkg/ibmcloudprovider"
28
28
csi "github.com/container-storage-interface/spec/lib/go/csi"
29
29
"github.com/stretchr/testify/assert"
30
30
)
@@ -177,9 +177,8 @@ func TestGetVolumeParameters(t *testing.T) {
177
177
},
178
178
expectedVolume : & provider.Volume {Name : & volumeName ,
179
179
Capacity : & volumeSize ,
180
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
181
- Tags : []string {createdByIBM },
182
- },
180
+ VPCVolume : provider.VPCVolume {
181
+ Tags : []string {createdByIBM },
183
182
Profile : & provider.Profile {Name : "general-purpose" },
184
183
ResourceGroup : & provider.ResourceGroup {ID : "myresourcegroups" },
185
184
},
@@ -312,9 +311,8 @@ func TestGetVolumeParameters(t *testing.T) {
312
311
},
313
312
expectedVolume : & provider.Volume {Name : & volumeName ,
314
313
Capacity : & volumeSize ,
315
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
316
- Tags : []string {createdByIBM },
317
- },
314
+ VPCVolume : provider.VPCVolume {
315
+ Tags : []string {createdByIBM },
318
316
Profile : & provider.Profile {Name : "general-purpose" },
319
317
ResourceGroup : & provider.ResourceGroup {ID : "myresourcegroups" },
320
318
},
@@ -444,9 +442,8 @@ func TestOverrideParams(t *testing.T) {
444
442
},
445
443
expectedVolume : & provider.Volume {Name : & volumeName ,
446
444
Capacity : & volumeSize ,
447
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
448
- Tags : []string {createdByIBM },
449
- },
445
+ VPCVolume : provider.VPCVolume {
446
+ Tags : []string {createdByIBM },
450
447
Profile : & provider.Profile {Name : "general-purpose" },
451
448
ResourceGroup : & provider.ResourceGroup {ID : "secret-rg" },
452
449
},
@@ -530,9 +527,8 @@ func TestOverrideParams(t *testing.T) {
530
527
},
531
528
expectedVolume : & provider.Volume {Name : & volumeName ,
532
529
Capacity : & volumeSize ,
533
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
534
- Tags : []string {createdByIBM },
535
- },
530
+ VPCVolume : provider.VPCVolume {
531
+ Tags : []string {createdByIBM },
536
532
Profile : & provider.Profile {Name : "custom" },
537
533
ResourceGroup : & provider.ResourceGroup {ID : "myresourcegroups" },
538
534
},
@@ -650,9 +646,8 @@ func TestCreateCSIVolumeResponse(t *testing.T) {
650
646
{
651
647
testCaseName : "Valid volume response" ,
652
648
requestVol : provider.Volume {VolumeID : volumeID ,
653
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
654
- Tags : []string {createdByIBM },
655
- },
649
+ VPCVolume : provider.VPCVolume {
650
+ Tags : []string {createdByIBM },
656
651
Profile : & provider.Profile {Name : "general-purpose" },
657
652
ResourceGroup : & provider.ResourceGroup {ID : "myresourcegroups" },
658
653
},
@@ -682,9 +677,8 @@ func TestCreateCSIVolumeResponse(t *testing.T) {
682
677
{
683
678
testCaseName : "Valid volume response with region in vol request empty" ,
684
679
requestVol : provider.Volume {VolumeID : volumeID ,
685
- VPCVolume : provider.VPCVolume {VPCBlockVolume : provider.VPCBlockVolume {
686
- Tags : []string {createdByIBM },
687
- },
680
+ VPCVolume : provider.VPCVolume {
681
+ Tags : []string {createdByIBM },
688
682
Profile : & provider.Profile {Name : "general-purpose" },
689
683
ResourceGroup : & provider.ResourceGroup {ID : "myresourcegroups" },
690
684
},
0 commit comments