Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.storage.tests.test_cassandra.TestCassandraStorageGeneratedData::test_origin_list[1000]
Failed

TEST RESULT

Run At
Aug 1 2020, 2:54 PM
Details
self = <swh.storage.tests.test_cassandra.TestCassandraStorageGeneratedData object at 0x7f931f6f9fd0> swh_storage = <swh.storage.cassandra.storage.CassandraStorage object at 0x7f93cc21c668> swh_origins = [Origin(url='http://some.long.host.name/path/with/anchor#id=42'), Origin(url='deb://xn--n28h.tld/stuff'), Origin(url='...l='https://xn--n28h.tld/path/with/anchor#id=42'), Origin(url='https://some.long.host.name/path/with/qargs?q=1&b'), ...] limit = 1000 @pytest.mark.parametrize("limit", [1, 7, 10, 100, 1000]) def test_origin_list(self, swh_storage, swh_origins, limit): returned_origins = [] page_token = None i = 0 while True: actual_page = swh_storage.origin_list(page_token=page_token, limit=limit) assert len(actual_page.results) <= limit returned_origins.extend(actual_page.results) i += 1 page_token = actual_page.next_page_token if page_token is None: assert i * limit >= len(swh_origins) break else: assert len(actual_page.results) == limit > assert returned_origins == swh_origins E AssertionError: assert [Origin(url='...e.com/'), ...] == [Origin(url='...?q=1&b'), ...] E At index 0 diff: Origin(url='deb://xn--n28h.tld/path/to/resource') != Origin(url='http://some.long.host.name/path/with/anchor#id=42') E Full diff: E [ E + Origin(url='deb://xn--n28h.tld/path/to/resource'), E + Origin(url='git://xn--n28h.tld/stuff'), E + Origin(url='https://xn--n28h.tld/stuff/'), E - Origin(url='http://some.long.host.name/path/with/anchor#id=42'),... E E ...Full output truncated (214 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/storage/tests/test_storage.py:3993: AssertionError