Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 1 addition & 19 deletions tests/test_sumo_thin_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ def _upload_blob(conn, blob, url=None, object_id=None):
return response


def _get_blob_uri(conn, object_id):
response = conn.get(f"/objects('{object_id}')/blob/authuri")

print("Blob save " + str(response.status_code), flush=True)
if not 200 <= response.status_code < 202:
raise Exception(
f"get blob uri for {object_id}"
f" returned {response.text} {response.status_code}"
)
return response


def _download_object(conn, object_id):
json = conn.get(f"/objects('{object_id}')").json()

Expand All @@ -67,12 +55,6 @@ def _delete_object(conn, object_id):
return response


class ValueKeeper:
"""Class for keeping/passing values between tests"""

pass


""" TESTS """


Expand Down Expand Up @@ -234,7 +216,7 @@ def test_upload_duplicate_ensemble(token):
# time-to-live of 60 seconds. If there are multiple replicas
# running, we might get the situation where we have just deleted
# the case via one replica, then ask for the object from another
# replica which still has it ins cache. Thus, the magic value 61,
# replica which still has it in cache. Thus, the magic value 61,
# below.
sleep(61)

Expand Down