Page MenuHomeSoftware Heritage

Jenkins > .tox.py3.lib.python3.7.site-packages.swh.web.tests.add_forge_now.test_views::test_add_forge_request_list_datatables_user_requests
Failed

TEST RESULT

Run At
Mar 29 2022, 12:52 PM
Details
client = <django.test.client.Client object at 0x7fac5699fac8> regular_user = <User: johndoe>, regular_user2 = <User: janedoe> @pytest.mark.django_db(transaction=True, reset_sequences=True) def test_add_forge_request_list_datatables_user_requests( client, regular_user, regular_user2 ): > create_add_forge_requests(client, regular_user, regular_user2) .tox/py3/lib/python3.7/site-packages/swh/web/tests/add_forge_now/test_views.py:181: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ .tox/py3/lib/python3.7/site-packages/swh/web/tests/add_forge_now/test_views.py:29: in create_add_forge_requests client, regular_user, data=request, .tox/py3/lib/python3.7/site-packages/swh/web/tests/api/views/test_add_forge_now.py:196: in create_add_forge_request return check_api_post_response(api_client, url, data=data, status_code=201,) .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:160: in check_api_post_response content_type=content_type, _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ response = <Response status_code=500, "application/json">, status_code = 201 content_type = '*/*' def _assert_http_response( response: HttpResponse, status_code: int, content_type: str ) -> HttpResponse: if isinstance(response, Response): drf_response = cast(Response, response) error_context = ( drf_response.data.pop("traceback") if isinstance(drf_response.data, dict) and "traceback" in drf_response.data else drf_response.data ) elif isinstance(response, StreamingHttpResponse): error_context = getattr(response, "traceback", response.streaming_content) else: error_context = getattr(response, "traceback", response.content) > assert response.status_code == status_code, error_context E AssertionError: Traceback (most recent call last): E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute E return self.cursor.execute(sql, params) E psycopg2.errors.UndefinedTable: relation "request" does not exist E LINE 1: ...act_name", "request"."forge_contact_comment" FROM "request" ... E ^ E E E The above exception was the direct cause of the following exception: E E Traceback (most recent call last): E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/rest_framework/views.py", line 506, in dispatch E response = handler(request, *args, **kwargs) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/rest_framework/decorators.py", line 50, in handler E return func(*args, **kwargs) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/swh/web/api/apiurls.py", line 96, in api_view_f E response = f(request, **kwargs) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/swh/web/api/apidoc.py", line 376, in documented_view E raise exc E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/swh/web/api/apidoc.py", line 373, in documented_view E return {"data": f(request, **kwargs), "doc_data": doc_data} E File "/usr/lib/python3.7/contextlib.py", line 74, in inner E return func(*args, **kwds) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/swh/web/api/views/add_forge_now.py", line 138, in api_add_forge_request_create E forge_url=add_forge_request.forge_url E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/manager.py", line 82, in manager_method E return getattr(self.get_queryset(), name)(*args, **kwargs) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/query.py", line 402, in get E num = len(clone) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/query.py", line 256, in __len__ E self._fetch_all() E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/query.py", line 1242, in _fetch_all E self._result_cache = list(self._iterable_class(self)) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/query.py", line 55, in __iter__ E results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1142, in execute_sql E cursor.execute(sql, params) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py", line 67, in execute E return self._execute_with_wrappers(sql, params, many=False, executor=self._execute) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py", line 76, in _execute_with_wrappers E return executor(sql, params, many, context) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute E return self.cursor.execute(sql, params) E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/utils.py", line 89, in __exit__ E raise dj_exc_value.with_traceback(traceback) from exc_value E File "/var/lib/jenkins/workspace/DWAPPS/tests-on-diff@3/.tox/py3/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute E return self.cursor.execute(sql, params) E django.db.utils.ProgrammingError: relation "request" does not exist E LINE 1: ...act_name", "request"."forge_contact_comment" FROM "request" ... E ^ E E E assert 500 == 201 E +500 E -201 .tox/py3/lib/python3.7/site-packages/swh/web/tests/utils.py:34: AssertionError