Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.scheduler.tests.test_api_client::test_site_map
Failed

TEST RESULT

Run At
Jan 12 2021, 12:17 PM
Details
flask_app_client = <FlaskClient <SchedulerServerApp 'swh.scheduler.api.server'>> def test_site_map(flask_app_client): sitemap = flask_app_client.get(url_for("site_map")) assert sitemap.headers["Content-Type"] == "application/json" rules = set(x["rule"] for x in sitemap.json) # we expect at least these rules expected_rules = set( "/" + rule for rule in ( "lister/get_or_create", "lister/update", "origins/get", "origins/record", "priority_ratios/get", "task/create", "task/delete_archived", "task/disable", "task/filter_for_archive", "task/get", "task/grab_ready", "task/peek_ready", "task/search", "task/set_status", "task_run/end", "task_run/get", "task_run/schedule", "task_run/schedule_one", "task_run/start", "task_type/create", "task_type/get", "task_type/get_all", ) ) > assert rules == expected_rules E AssertionError: assert {'/lister/get.../create', ...} == {'/lister/get.../create', ...} E Extra items in the left set: E '/visit_info/upsert' E '/visit_info/get' E Full diff: E { E '/lister/get_or_create', E '/lister/update',... E E ...Full output truncated (24 lines hidden), use '-vv' to show .tox/py3/lib/python3.7/site-packages/swh/scheduler/tests/test_api_client.py:69: AssertionError