Page MenuHomeSoftware Heritage

D6701.diff
No OneTemporary

D6701.diff

diff --git a/swh/objstorage/tests/test_objstorage_http.py b/swh/objstorage/tests/test_objstorage_http.py
--- a/swh/objstorage/tests/test_objstorage_http.py
+++ b/swh/objstorage/tests/test_objstorage_http.py
@@ -108,3 +108,9 @@
len(sto_front)
with pytest.raises(exc.NonIterableObjStorage):
iter(sto_front)
+
+
+def test_http_cannonical_url():
+ url = "http://127.0.0.1/content"
+ sto = get_objstorage(cls="http", url=url)
+ assert sto.root_path == url + "/"

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 17, 10:03 PM (1 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3224281

Event Timeline