Skip to content

Commit 2d96c1c

Browse files
committed
chore: add missing requester_pays attribute
1 parent 91715ff commit 2d96c1c

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

scripts/update_stac_storage_tier.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,27 +62,31 @@ def _build_storage_schemes(region: str) -> dict:
6262
"platform": STORAGE_SCHEMES_PLATFORM,
6363
"bucket": STORAGE_SCHEMES_BUCKET,
6464
"region": region,
65+
"requester_pays": False,
6566
"storage_class": "STANDARD",
6667
},
6768
"performance": {
6869
"type": "custom-s3",
6970
"platform": STORAGE_SCHEMES_PLATFORM,
7071
"bucket": STORAGE_SCHEMES_BUCKET,
7172
"region": region,
73+
"requester_pays": False,
7274
"storage_class": "EXPRESS_ONEZONE",
7375
},
7476
"glacier": {
7577
"type": "custom-s3",
7678
"platform": STORAGE_SCHEMES_PLATFORM,
7779
"bucket": STORAGE_SCHEMES_BUCKET,
7880
"region": region,
81+
"requester_pays": False,
7982
"storage_class": "STANDARD_IA",
8083
},
8184
"mixed": {
8285
"type": "custom-s3",
8386
"platform": STORAGE_SCHEMES_PLATFORM,
8487
"bucket": STORAGE_SCHEMES_BUCKET,
8588
"region": region,
89+
"requester_pays": False,
8690
"storage_class": "MIXED", # mixed storage class that contains objects with different storage classes
8791
},
8892
}

tests/fixtures/update_storage_tier/stac_item_after_tier_change.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,31 @@
1212
"platform": "https://s3.de.io.cloud.ovh.net/",
1313
"bucket": "esa-zarr-sentinel-explorer-fra",
1414
"region": "de",
15+
"requester_pays": false,
1516
"storage_class": "STANDARD"
1617
},
1718
"performance": {
1819
"type": "custom-s3",
1920
"platform": "https://s3.de.io.cloud.ovh.net/",
2021
"bucket": "esa-zarr-sentinel-explorer-fra",
2122
"region": "de",
23+
"requester_pays": false,
2224
"storage_class": "EXPRESS_ONEZONE"
2325
},
2426
"glacier": {
2527
"type": "custom-s3",
2628
"platform": "https://s3.de.io.cloud.ovh.net/",
2729
"bucket": "esa-zarr-sentinel-explorer-fra",
2830
"region": "de",
31+
"requester_pays": false,
2932
"storage_class": "STANDARD_IA"
3033
},
3134
"mixed": {
3235
"type": "custom-s3",
3336
"platform": "https://s3.de.io.cloud.ovh.net/",
3437
"bucket": "esa-zarr-sentinel-explorer-fra",
3538
"region": "de",
39+
"requester_pays": false,
3640
"storage_class": "MIXED"
3741
}
3842
}

tests/fixtures/update_storage_tier/stac_item_before.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,31 @@
1212
"platform": "https://s3.de.io.cloud.ovh.net/",
1313
"bucket": "esa-zarr-sentinel-explorer-fra",
1414
"region": "de",
15+
"requester_pays": false,
1516
"storage_class": "STANDARD"
1617
},
1718
"performance": {
1819
"type": "custom-s3",
1920
"platform": "https://s3.de.io.cloud.ovh.net/",
2021
"bucket": "esa-zarr-sentinel-explorer-fra",
2122
"region": "de",
23+
"requester_pays": false,
2224
"storage_class": "EXPRESS_ONEZONE"
2325
},
2426
"glacier": {
2527
"type": "custom-s3",
2628
"platform": "https://s3.de.io.cloud.ovh.net/",
2729
"bucket": "esa-zarr-sentinel-explorer-fra",
2830
"region": "de",
31+
"requester_pays": false,
2932
"storage_class": "STANDARD_IA"
3033
},
3134
"mixed": {
3235
"type": "custom-s3",
3336
"platform": "https://s3.de.io.cloud.ovh.net/",
3437
"bucket": "esa-zarr-sentinel-explorer-fra",
3538
"region": "de",
39+
"requester_pays": false,
3640
"storage_class": "MIXED"
3741
}
3842
}

tests/fixtures/update_storage_tier/stac_item_legacy_storage_scheme_after_update.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,31 @@
1212
"platform": "https://s3.de.io.cloud.ovh.net/",
1313
"bucket": "esa-zarr-sentinel-explorer-fra",
1414
"region": "de",
15+
"requester_pays": false,
1516
"storage_class": "STANDARD"
1617
},
1718
"performance": {
1819
"type": "custom-s3",
1920
"platform": "https://s3.de.io.cloud.ovh.net/",
2021
"bucket": "esa-zarr-sentinel-explorer-fra",
2122
"region": "de",
23+
"requester_pays": false,
2224
"storage_class": "EXPRESS_ONEZONE"
2325
},
2426
"glacier": {
2527
"type": "custom-s3",
2628
"platform": "https://s3.de.io.cloud.ovh.net/",
2729
"bucket": "esa-zarr-sentinel-explorer-fra",
2830
"region": "de",
31+
"requester_pays": false,
2932
"storage_class": "STANDARD_IA"
3033
},
3134
"mixed": {
3235
"type": "custom-s3",
3336
"platform": "https://s3.de.io.cloud.ovh.net/",
3437
"bucket": "esa-zarr-sentinel-explorer-fra",
3538
"region": "de",
39+
"requester_pays": false,
3640
"storage_class": "MIXED"
3741
}
3842
}

tests/fixtures/update_storage_tier/stac_item_mixed_storage.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,31 @@
1212
"platform": "https://s3.de.io.cloud.ovh.net/",
1313
"bucket": "esa-zarr-sentinel-explorer-fra",
1414
"region": "de",
15+
"requester_pays": false,
1516
"storage_class": "STANDARD"
1617
},
1718
"performance": {
1819
"type": "custom-s3",
1920
"platform": "https://s3.de.io.cloud.ovh.net/",
2021
"bucket": "esa-zarr-sentinel-explorer-fra",
2122
"region": "de",
23+
"requester_pays": false,
2224
"storage_class": "EXPRESS_ONEZONE"
2325
},
2426
"glacier": {
2527
"type": "custom-s3",
2628
"platform": "https://s3.de.io.cloud.ovh.net/",
2729
"bucket": "esa-zarr-sentinel-explorer-fra",
2830
"region": "de",
31+
"requester_pays": false,
2932
"storage_class": "STANDARD_IA"
3033
},
3134
"mixed": {
3235
"type": "custom-s3",
3336
"platform": "https://s3.de.io.cloud.ovh.net/",
3437
"bucket": "esa-zarr-sentinel-explorer-fra",
3538
"region": "de",
39+
"requester_pays": false,
3640
"storage_class": "MIXED"
3741
}
3842
}

0 commit comments

Comments
 (0)