@@ -1491,7 +1491,7 @@ describe('DatasetsRepository', () => {
14911491 beforeAll ( async ( ) => {
14921492 await createCollectionViaApi ( testStorageDriverCollectionAlias )
14931493 await publishCollectionViaApi ( testStorageDriverCollectionAlias )
1494- // await setStorageDriverViaApi(testStorageDriverCollectionAlias, 'LocalStack')
1494+ await setStorageDriverViaApi ( testStorageDriverCollectionAlias , 'LocalStack' )
14951495
14961496 const { numericId } = await createDataset . execute (
14971497 TestConstants . TEST_NEW_DATASET_DTO ,
@@ -1511,16 +1511,19 @@ describe('DatasetsRepository', () => {
15111511 console . log ( actual )
15121512
15131513 expect ( actual ) . toBeDefined ( )
1514- expect ( actual . name ) . toBe ( 'local ' )
1514+ expect ( actual . name ) . toBe ( 'localstack1 ' )
15151515 expect ( actual . type ) . toBe ( 's3' )
1516- expect ( actual . label ) . toBe ( 'Local' )
1516+ expect ( actual . label ) . toBe ( 'LocalStack' )
1517+ // TODO: waiting to add test for default storage and local stack storage after Jim's PR fixes https://github.com/IQSS/dataverse/pull/11940
15171518
15181519 /*
1519-
1520+ With our current docker-compose JVM args setup:
15201521 -Ddataverse.files.localstack1.type=s3
15211522 -Ddataverse.files.localstack1.label=LocalStack
15221523 -Ddataverse.files.localstack1.upload-redirect=true
15231524 -Ddataverse.files.localstack1.download-redirect=true
1525+
1526+ If setting setStorageDriverViaApi(testStorageDriverCollectionAlias, 'LocalStack'), we are receiving this 👇, directUpload should be true
15241527 {
15251528 name: 'localstack1',
15261529 type: 's3',
@@ -1529,14 +1532,14 @@ describe('DatasetsRepository', () => {
15291532 directDownload: true
15301533 }
15311534
1535+ Also without setting the storage driver via API, the default 'local' driver label is returned as 'Local' but should be 'LocalStack' as per JVM args.
15321536 {
15331537 name: 'local',
15341538 type: 'file',
15351539 label: 'Local',
15361540 directUpload: false,
15371541 directDownload: false
15381542 }
1539-
15401543 */
15411544 } )
15421545
0 commit comments