@@ -138,10 +138,11 @@ func TestCreateVolume(t *testing.T) {
138138 CapacityBytes : 0 ,
139139 VolumeId : "" ,
140140 VolumeContext : map [string ]string {
141- "deleteVolume" : "false" ,
142- "fileSystemId" : "file-system-id" ,
143- "path" : "/" ,
144- "server" : "" ,
141+ "deleteVolume" : "false" ,
142+ "fileSystemId" : "file-system-id" ,
143+ "fileSystemType" : "" ,
144+ "path" : "/" ,
145+ "server" : "" ,
145146 },
146147 ContentSource : nil ,
147148 AccessibleTopology : nil ,
@@ -172,10 +173,11 @@ func TestCreateVolume(t *testing.T) {
172173 CapacityBytes : 0 ,
173174 VolumeId : "" ,
174175 VolumeContext : map [string ]string {
175- "deleteVolume" : "false" ,
176- "fileSystemId" : "file-system-id" ,
177- "path" : "/" ,
178- "server" : "" ,
176+ "deleteVolume" : "false" ,
177+ "fileSystemId" : "file-system-id" ,
178+ "fileSystemType" : "" ,
179+ "path" : "/" ,
180+ "server" : "" ,
179181 },
180182 ContentSource : nil ,
181183 AccessibleTopology : nil ,
@@ -192,10 +194,11 @@ func TestCreateVolume(t *testing.T) {
192194 CapacityBytes : 0 ,
193195 VolumeId : "" ,
194196 VolumeContext : map [string ]string {
195- "deleteVolume" : "false" ,
196- "fileSystemId" : "file-system-id" ,
197- "path" : "/" ,
198- "server" : "" ,
197+ "deleteVolume" : "false" ,
198+ "fileSystemId" : "file-system-id" ,
199+ "fileSystemType" : "" ,
200+ "path" : "/" ,
201+ "server" : "" ,
199202 },
200203 ContentSource : nil ,
201204 AccessibleTopology : nil ,
@@ -212,11 +215,12 @@ func TestCreateVolume(t *testing.T) {
212215 CapacityBytes : 100 * 1024 * 1024 * 1024 ,
213216 VolumeId : "" ,
214217 VolumeContext : map [string ]string {
215- "deleteVolume" : "false" ,
216- "fileSystemId" : "file-system-id" ,
217- "path" : "/share" ,
218- "server" : "test.mount.target.domain" ,
219- "vers" : "3" ,
218+ "deleteVolume" : "false" ,
219+ "fileSystemId" : "file-system-id" ,
220+ "fileSystemType" : "extreme" ,
221+ "path" : "/share" ,
222+ "server" : "test.mount.target.domain" ,
223+ "vers" : "3" ,
220224 },
221225 ContentSource : nil ,
222226 AccessibleTopology : nil ,
@@ -279,9 +283,9 @@ func createExtremeFileSystemRequest() *csi.CreateVolumeRequest {
279283 RequiredBytes : 100 * 1024 * 1024 * 1024 ,
280284 },
281285 Parameters : map [string ]string {
282- FileSystemType : "extreme" ,
283- VpcID : "vpc-id" ,
284- VSwitchID : "vswitch-id" ,
286+ filesystemTypeKey : "extreme" ,
287+ VpcID : "vpc-id" ,
288+ VSwitchID : "vswitch-id" ,
285289 },
286290 }
287291}
@@ -857,7 +861,7 @@ func TestGetNasVolumeOptions(t *testing.T) {
857861 name : "Invalid file system type" ,
858862 args : & csi.CreateVolumeRequest {
859863 Parameters : map [string ]string {
860- FileSystemType : "InvalidFileSystemType" ,
864+ filesystemTypeKey : "InvalidFileSystemType" ,
861865 },
862866 },
863867 expected : nil ,
@@ -870,7 +874,7 @@ func TestGetNasVolumeOptions(t *testing.T) {
870874 RequiredBytes : 1024 ,
871875 },
872876 Parameters : map [string ]string {
873- FileSystemType : "extreme" ,
877+ filesystemTypeKey : "extreme" ,
874878 },
875879 },
876880 expected : nil ,
@@ -911,8 +915,8 @@ func TestGetNasVolumeOptions(t *testing.T) {
911915 RequiredBytes : 100 * 1024 * 1024 * 1024 ,
912916 },
913917 Parameters : map [string ]string {
914- FileSystemType : "extreme" ,
915- StorageType : "InvalidStorageType" ,
918+ filesystemTypeKey : "extreme" ,
919+ StorageType : "InvalidStorageType" ,
916920 },
917921 },
918922 expected : nil ,
@@ -925,8 +929,8 @@ func TestGetNasVolumeOptions(t *testing.T) {
925929 RequiredBytes : 100 * 1024 * 1024 * 1024 ,
926930 },
927931 Parameters : map [string ]string {
928- FileSystemType : "extreme" ,
929- EncryptType : "InvalidEncryptType" ,
932+ filesystemTypeKey : "extreme" ,
933+ EncryptType : "InvalidEncryptType" ,
930934 },
931935 },
932936 expected : nil ,
0 commit comments