File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -261,7 +261,10 @@ def test_add_custom_storage_doesnt_verify(admin_auth_headers):
261
261
},
262
262
)
263
263
assert r .status_code == 400
264
- assert r .json ()["detail" ] == "Could not verify custom storage. Check credentials are valid?"
264
+ assert (
265
+ r .json ()["detail" ]
266
+ == "Could not verify custom storage. Check credentials are valid?"
267
+ )
265
268
266
269
267
270
def test_add_custom_storage (admin_auth_headers ):
@@ -298,6 +301,16 @@ def test_add_custom_storage(admin_auth_headers):
298
301
assert data ["added" ]
299
302
assert data ["name" ] == CUSTOM_REPLICA_STORAGE_NAME
300
303
304
+ # verify custom storages are now available on org
305
+ r = requests .get (
306
+ f"{ API_PREFIX } /orgs/{ new_oid } /all-storages" ,
307
+ headers = admin_auth_headers ,
308
+ )
309
+ assert r .status_code == 200
310
+ all_storages = r .json ()["allStorages" ]
311
+ assert {"name" : CUSTOM_PRIMARY_STORAGE_NAME , "custom" : True } in all_storages
312
+ assert {"name" : CUSTOM_REPLICA_STORAGE_NAME , "custom" : True } in all_storages
313
+
301
314
# set org to use custom storage moving forward
302
315
r = requests .post (
303
316
f"{ API_PREFIX } /orgs/{ new_oid } /storage" ,
You can’t perform that action at this time.
0 commit comments