testIT-500-3

 avatar
unknown
python
a year ago
10 kB
11
Indexable
INTERNALERROR> E           AssertionError: Traceback (most recent call last):
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/_pytest/main.py", line 271, in wrap_session
INTERNALERROR> E                 session.exitstatus = doit(config, session) or 0
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/_pytest/main.py", line 325, in _main
INTERNALERROR> E                 config.hook.pytest_runtestloop(session=session)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 152, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_result.py", line 114, in get_result
INTERNALERROR> E                 raise exc.with_traceback(exc.__traceback__)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/xdist/remote.py", line 157, in pytest_runtestloop
INTERNALERROR> E                 self.run_one_test()
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/xdist/remote.py", line 174, in run_one_test
INTERNALERROR> E                 self.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 152, in _multicall
INTERNALERROR> E                 return outcome.get_result()
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_result.py", line 114, in get_result
INTERNALERROR> E                 raise exc.with_traceback(exc.__traceback__)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pytest_rerunfailures.py", line 549, in pytest_runtest_protocol
INTERNALERROR> E                 item.ihook.pytest_runtest_logfinish(nodeid=item.nodeid, location=item.location)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 493, in __call__
INTERNALERROR> E                 return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_manager.py", line 115, in _hookexec
INTERNALERROR> E                 return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 113, in _multicall
INTERNALERROR> E                 raise exception.with_traceback(exception.__traceback__)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 77, in _multicall
INTERNALERROR> E                 res = hook_impl.function(*args)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_adapter_pytest/listener.py", line 237, in pytest_runtest_logfinish
INTERNALERROR> E                 self.__test_result_ids[self.__executable_test['externalID']] = self.__adapter_manager.write_test(
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_python_commons/services/logger.py", line 22, in wrapper
INTERNALERROR> E                 result = function(*args, **kwargs)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_python_commons/services/adapter_manager.py", line 46, in write_test
INTERNALERROR> E                 return self.__api_client.write_test(test_result)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_python_commons/services/logger.py", line 22, in wrapper
INTERNALERROR> E                 result = function(*args, **kwargs)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_python_commons/client/api_client.py", line 114, in write_test
INTERNALERROR> E                 response = self.__test_run_api.set_auto_test_results_for_test_run(
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api/test_runs_api.py", line 1959, in set_auto_test_results_for_test_run
INTERNALERROR> E                 return self.set_auto_test_results_for_test_run_endpoint.call_with_http_info(**kwargs)
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 881, in call_with_http_info
INTERNALERROR> E                 return self.api_client.call_api(
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 423, in call_api
INTERNALERROR> E                 return self.__call_api(resource_path, method,
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 205, in __call_api
INTERNALERROR> E                 raise e
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 198, in __call_api
INTERNALERROR> E                 response_data = self.request(
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/api_client.py", line 469, in request
INTERNALERROR> E                 return self.rest_client.POST(url,
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/rest.py", line 274, in POST
INTERNALERROR> E                 return self.request("POST", url,
INTERNALERROR> E               File "/builds/passport/.cache/venv/lib/python3.9/site-packages/testit_api_client/rest.py", line 231, in request
INTERNALERROR> E                 raise ServiceException(http_resp=r)
INTERNALERROR> E             testit_api_client.exceptions.ServiceException: Status Code: 500
INTERNALERROR> E             Reason: Internal Server Error
INTERNALERROR> E             HTTP response headers: HTTPHeaderDict({'Date': 'Tue, 16 Jan 2024 07:03:12 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'X-Correlation-Id': 'b33416cf-ec28-4c1e-aa49-014a941d3d74', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains'})
INTERNALERROR> E             HTTP response body: {"error":{"type":"InvalidOperationException","key":"InternalServerError (report to a program administrator)","stack":["   at Microsoft.EntityFrameworkCore.Infrastructure.Internal.ConcurrencyDetector.EnterCriticalSection()\n   at Microsoft.EntityFrameworkCore.Query.Internal.SplitQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync()\n   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at Microsoft.EntityFrameworkCore.Query.ShapedQueryCompilingExpressionVisitor.SingleOrDefaultAsync[TSource](IAsyncEnumerable`1 asyncEnumerable, CancellationToken cancellationToken)\n   at WebApi.Infrastructure.Authentication.Permissions.CommonPolicyHandler.GetSelectedFieldByEntityId[TEntity](Expression`1 fieldSelector, Nullable`1 entityId)\n   at WebApi.Infrastructure.Authentication.Permissions.Policies.TestRuns.TestRunTesterRequirementHandler.HandleRequirementAsync(AuthorizationHandlerContext context, TestRunTesterRequirement requirement)\n   at Microsoft.AspNetCore.Authorization.AuthorizationHandler`1.HandleAsync(AuthorizationHandlerContext context)\n   at Microsoft.AspNetCore.Authorization.DefaultAuthorizationService.AuthorizeAsync(ClaimsPrincipal user, Object resource, IEnumerable`1 requirements)\n   at Microsoft.AspNetCore.Authorization.Policy.PolicyEvaluator.AuthorizeAsync(AuthorizationPolicy policy, AuthenticateResult authenticationResult, HttpContext context, Object resource)\n   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\n   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)\n   at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context)\n   at Sentry.AspNetCore.SentryTracingMiddleware.InvokeAsync(HttpContext context)\n   at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)\n   at WebApi.Infrastructure.Middleware.GlobalExceptionsMiddleware.Invoke(HttpContext httpContext)"],"path":"/api/v2/testRuns/cbe4bde7-c98a-4277-a2df-784ce721c138/testResults","context":{}}}
Editor is loading...
Leave a Comment