@@ -139,7 +139,7 @@ func TestExtractAndDefaultParameters(t *testing.T) {
139
139
ReplicationType : "none" ,
140
140
DiskEncryptionKMSKey : "" ,
141
141
Tags : map [string ]string {tagKeyCreatedForClaimName : "testPVCName" , tagKeyCreatedForClaimNamespace : "testPVCNamespace" , tagKeyCreatedForVolumeName : "testPVName" , tagKeyCreatedBy : "testDriver" },
142
- Labels : map [string ]string {labelKeyCreatedForClaimName : "testPVCName" , labelKeyCreatedForClaimNamespace : "testPVCNamespace" , labelKeyCreatedForVolumeName : "testPVName" },
142
+ Labels : map [string ]string {},
143
143
},
144
144
},
145
145
{
@@ -178,30 +178,6 @@ func TestExtractAndDefaultParameters(t *testing.T) {
178
178
Labels : map [string ]string {"key1" : "value1" , "label-1" : "value-a" , "label-2" : "label-value-2" },
179
179
},
180
180
},
181
- {
182
- name : "PVC labels" ,
183
- parameters : map [string ]string {ParameterKeyPVCName : "testPVCName" , ParameterKeyPVCNamespace : "testPVCNamespace" , ParameterKeyPVName : "testPVName" },
184
- labels : map [string ]string {},
185
- expectParams : DiskParameters {
186
- DiskType : "pd-standard" ,
187
- ReplicationType : "none" ,
188
- DiskEncryptionKMSKey : "" ,
189
- Tags : map [string ]string {tagKeyCreatedForClaimName : "testPVCName" , tagKeyCreatedForClaimNamespace : "testPVCNamespace" , tagKeyCreatedForVolumeName : "testPVName" , tagKeyCreatedBy : "testDriver" },
190
- Labels : map [string ]string {labelKeyCreatedForClaimName : "testPVCName" , labelKeyCreatedForClaimNamespace : "testPVCNamespace" , labelKeyCreatedForVolumeName : "testPVName" },
191
- },
192
- },
193
- {
194
- name : "PVC labels-override" ,
195
- parameters : map [string ]string {ParameterKeyPVCName : "testPVCName" , ParameterKeyPVCNamespace : "testPVCNamespace" , ParameterKeyPVName : "testPVName" },
196
- labels : map [string ]string {labelKeyCreatedForClaimNamespace : "test-override" },
197
- expectParams : DiskParameters {
198
- DiskType : "pd-standard" ,
199
- ReplicationType : "none" ,
200
- DiskEncryptionKMSKey : "" ,
201
- Tags : map [string ]string {tagKeyCreatedForClaimName : "testPVCName" , tagKeyCreatedForClaimNamespace : "testPVCNamespace" , tagKeyCreatedForVolumeName : "testPVName" , tagKeyCreatedBy : "testDriver" },
202
- Labels : map [string ]string {labelKeyCreatedForClaimName : "testPVCName" , labelKeyCreatedForClaimNamespace : "testPVCNamespace" , labelKeyCreatedForVolumeName : "testPVName" },
203
- },
204
- },
205
181
}
206
182
207
183
for _ , tc := range tests {
0 commit comments