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 + "/"