Skip to content

Commit

Permalink
extend etag test
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ11teen committed May 28, 2021
1 parent b9835c3 commit 17e1e6a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/tests/1_storageproviders.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ def test_etags_are_enforced(self, storage_provider: StorageProvider, test_id: st
storage_provider.download_data(encoded_key, "bad-etag")
with pytest.raises(KeySyncError):
storage_provider.upload_data(encoded_key, "bad-etag", b"data")
with pytest.raises(KeySyncError):
# No etag, not expecting data to overwrite
storage_provider.upload_data(encoded_key, None, b"data")
with pytest.raises(KeySyncError):
storage_provider.delete_data(encoded_key, "bad-etag")

Expand Down

0 comments on commit 17e1e6a

Please sign in to comment.