Skip to content

Commit efd7e33

Browse files
committed
turn off caching for all real https tests
1 parent ab49f31 commit efd7e33

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

tests/test_real_https.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ def test_https():
3636
# v2: declared storage type
3737
active = Active(test_file_uri, "ta",
3838
interface_type="https",
39-
active_storage_url=active_storage_url)
39+
active_storage_url=active_storage_url,
40+
option_disable_chunk_cache=True)
4041
active._version = 2
4142
result = active.min()[0:3, 4:6, 7:9]
4243
print("Result is", result)
4344
assert result == np.array([220.3180694580078], dtype="float32")
4445

4546
# v2: inferred storage type
4647
active = Active(test_file_uri, "ta",
47-
active_storage_url=active_storage_url)
48+
active_storage_url=active_storage_url,
49+
option_disable_chunk_cache=True)
4850
active._version = 2
4951
result = active.min()[0:3, 4:6, 7:9]
5052
print("Result is", result)
@@ -57,7 +59,8 @@ def test_https():
5759
# v2: inferred storage type, pop axis
5860
active = Active(test_file_uri, "ta",
5961
interface_type="https",
60-
active_storage_url=active_storage_url)
62+
active_storage_url=active_storage_url,
63+
option_disable_chunk_cache=True)
6164
active._version = 2
6265
result = active.min(axis=(0, 1))[:]
6366
print("Result is", result)
@@ -84,7 +87,8 @@ def test_https():
8487
active = Active(test_file_uri, "ta",
8588
interface_type="https",
8689
storage_options={"username": None, "password": None},
87-
active_storage_url=active_storage_url)
90+
active_storage_url=active_storage_url,
91+
option_disable_chunk_cache=True)
8892
active._version = 2
8993
result = active.min(axis=(0, 1))[:]
9094
print("Result is", result)
@@ -137,7 +141,9 @@ def test_https_bigger_file():
137141
"""Run a true test with a https FILE."""
138142
test_file_uri = "https://esgf.ceda.ac.uk/thredds/fileServer/esg_cmip6/CMIP6/AerChemMIP/MOHC/UKESM1-0-LL/ssp370SST-lowNTCF/r1i1p1f2/Amon/cl/gn/latest/cl_Amon_UKESM1-0-LL_ssp370SST-lowNTCF_r1i1p1f2_gn_205001-209912.nc"
139143
active_storage_url = "https://reductionist.jasmin.ac.uk/" # Wacasoft new Reductionist
140-
active = Active(test_file_uri, "cl", active_storage_url=active_storage_url)
144+
active = Active(test_file_uri, "cl",
145+
active_storage_url=active_storage_url,
146+
option_disable_chunk_cache=True)
141147
active._version = 2
142148
result = active.min()[0:3, 4:6, 7:9]
143149
print("Result is", result)

0 commit comments

Comments
 (0)