@@ -24,7 +24,7 @@ def test_upload_bundle_analysis_success(db, client, mocker, mock_redis):
24
24
"upload.views.bundle_analysis.BUNDLE_ANALYSIS_UPLOAD_VIEWS_COUNTER.labels"
25
25
)
26
26
create_presigned_put = mocker .patch (
27
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
27
+ "shared.storage.MinioStorageService .create_presigned_put" ,
28
28
return_value = "test-presigned-put" ,
29
29
)
30
30
@@ -112,7 +112,7 @@ def test_upload_bundle_analysis_success_shelter(db, client, mocker, mock_redis):
112
112
"upload.views.bundle_analysis.BUNDLE_ANALYSIS_UPLOAD_VIEWS_COUNTER.labels"
113
113
)
114
114
create_presigned_put = mocker .patch (
115
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
115
+ "shared.storage.MinioStorageService .create_presigned_put" ,
116
116
return_value = "test-presigned-put" ,
117
117
)
118
118
@@ -198,7 +198,7 @@ def test_upload_bundle_analysis_success_shelter(db, client, mocker, mock_redis):
198
198
def test_upload_bundle_analysis_org_token (db , client , mocker , mock_redis ):
199
199
mocker .patch .object (TaskService , "upload" )
200
200
mocker .patch (
201
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
201
+ "shared.storage.MinioStorageService .create_presigned_put" ,
202
202
return_value = "test-presigned-put" ,
203
203
)
204
204
mock_metrics = mocker .patch (
@@ -236,7 +236,7 @@ def test_upload_bundle_analysis_org_token(db, client, mocker, mock_redis):
236
236
def test_upload_bundle_analysis_existing_commit (db , client , mocker , mock_redis ):
237
237
upload = mocker .patch .object (TaskService , "upload" )
238
238
mocker .patch (
239
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
239
+ "shared.storage.MinioStorageService .create_presigned_put" ,
240
240
return_value = "test-presigned-put" ,
241
241
)
242
242
mock_metrics = mocker .patch (
@@ -282,7 +282,7 @@ def test_upload_bundle_analysis_existing_commit(db, client, mocker, mock_redis):
282
282
def test_upload_bundle_analysis_missing_args (db , client , mocker , mock_redis ):
283
283
upload = mocker .patch .object (TaskService , "upload" )
284
284
mocker .patch (
285
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
285
+ "shared.storage.MinioStorageService .create_presigned_put" ,
286
286
return_value = "test-presigned-put" ,
287
287
)
288
288
mock_metrics = mocker .patch (
@@ -331,7 +331,7 @@ def test_upload_bundle_analysis_missing_args(db, client, mocker, mock_redis):
331
331
def test_upload_bundle_analysis_invalid_token (db , client , mocker , mock_redis ):
332
332
upload = mocker .patch .object (TaskService , "upload" )
333
333
mocker .patch (
334
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
334
+ "shared.storage.MinioStorageService .create_presigned_put" ,
335
335
return_value = "test-presigned-put" ,
336
336
)
337
337
@@ -361,7 +361,7 @@ def test_upload_bundle_analysis_github_oidc_auth(
361
361
):
362
362
mocker .patch .object (TaskService , "upload" )
363
363
mocker .patch (
364
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
364
+ "shared.storage.MinioStorageService .create_presigned_put" ,
365
365
return_value = "test-presigned-put" ,
366
366
)
367
367
mock_metrics = mocker .patch (
@@ -405,7 +405,7 @@ def test_upload_bundle_analysis_measurement_datasets_created(
405
405
):
406
406
mocker .patch .object (TaskService , "upload" )
407
407
mocker .patch (
408
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
408
+ "shared.storage.MinioStorageService .create_presigned_put" ,
409
409
return_value = "test-presigned-put" ,
410
410
)
411
411
mock_metrics = mocker .patch (
@@ -466,7 +466,7 @@ def test_upload_bundle_analysis_measurement_timeseries_disabled(
466
466
):
467
467
mocker .patch .object (TaskService , "upload" )
468
468
mocker .patch (
469
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
469
+ "shared.storage.MinioStorageService .create_presigned_put" ,
470
470
return_value = "test-presigned-put" ,
471
471
)
472
472
mock_metrics = mocker .patch (
@@ -525,7 +525,7 @@ def test_upload_bundle_analysis_no_repo(db, client, mocker, mock_redis):
525
525
upload = mocker .patch .object (TaskService , "upload" )
526
526
mocker .patch .object (TaskService , "upload" )
527
527
mocker .patch (
528
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
528
+ "shared.storage.MinioStorageService .create_presigned_put" ,
529
529
return_value = "test-presigned-put" ,
530
530
)
531
531
mock_metrics = mocker .patch (
@@ -570,7 +570,7 @@ def test_upload_bundle_analysis_tokenless_success(db, client, mocker, mock_redis
570
570
)
571
571
572
572
create_presigned_put = mocker .patch (
573
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
573
+ "shared.storage.MinioStorageService .create_presigned_put" ,
574
574
return_value = "test-presigned-put" ,
575
575
)
576
576
@@ -621,7 +621,7 @@ def test_upload_bundle_analysis_true_tokenless_success(db, client, mocker, mock_
621
621
upload = mocker .patch .object (TaskService , "upload" )
622
622
623
623
create_presigned_put = mocker .patch (
624
- "shared.api_archive.archive.StorageService .create_presigned_put" ,
624
+ "shared.storage.MinioStorageService .create_presigned_put" ,
625
625
return_value = "test-presigned-put" ,
626
626
)
627
627
0 commit comments