@@ -225,13 +225,13 @@ describe('reportHandler.getCapabilities', () => {
225225 locationTypeCephRadosGW : true ,
226226 locationTypeHyperdriveV2 : true ,
227227 locationTypeLocal : true ,
228- locationTypes : [
228+ locationTypes : new Set ( [
229229 'location-gcp-v1' ,
230230 'location-scality-sproxyd-v1' ,
231231 'location-ceph-radosgw-s3-v1' ,
232232 'location-file-v1' ,
233233 'location-scality-artesca-s3-v1' ,
234- ] ,
234+ ] ) ,
235235 } ,
236236 supportedLifecycleRules : [ 'Expiration' ] ,
237237 } ;
@@ -248,28 +248,6 @@ describe('reportHandler.getCapabilities', () => {
248248 assert . strictEqual ( caps . locationTypeLocal , true ) ;
249249 } ) ;
250250
251- it ( 'should update locationTypes capabilities when locationTypes is a Set' , ( ) => {
252- const cfg = {
253- capabilities : {
254- locationTypeAzure : true ,
255- locationTypeGCP : true ,
256- locationTypeDigitalOcean : true ,
257- locationTypeLocal : true ,
258- locationTypes : new Set ( [
259- 'location-gcp-v1' ,
260- 'location-file-v1' ,
261- ] ) ,
262- } ,
263- supportedLifecycleRules : [ 'Expiration' ] ,
264- } ;
265- const caps = getCapabilities ( cfg ) ;
266-
267- assert . strictEqual ( caps . locationTypeAzure , false ) ;
268- assert . strictEqual ( caps . locationTypeGCP , true ) ;
269- assert . strictEqual ( caps . locationTypeDigitalOcean , false ) ;
270- assert . strictEqual ( caps . locationTypeLocal , true ) ;
271- } ) ;
272-
273251 it ( 'should handle multiple consistency checks together' , ( ) => {
274252 process . env . LOCAL_VOLUME_CAPABILITY = '0' ;
275253 const cfg = {
0 commit comments