Asyncio userver client, typically retrieved from plugins.service_client.service_client fixture.
Compatible with werkzeug interface.
Definition at line 1115 of file client.py.
|
| | run_periodic_task (self, name) |
| |
| None | suspend_periodic_tasks (self, typing.List[str] names) |
| |
| None | resume_periodic_tasks (self, typing.List[str] names) |
| |
| None | resume_all_periodic_tasks (self) |
| |
| None | write_cache_dumps (self, typing.List[str] names, *, testsuite_skip_prepare=False) |
| |
| None | read_cache_dumps (self, typing.List[str] names, *, testsuite_skip_prepare=False) |
| |
| None | run_task (self, str name) |
| |
| None | run_distlock_task (self, str name) |
| |
| None | reset_metrics (self) |
| | Calls ResetMetric(metric); for each metric that has such C++ function.
|
| |
| typing.Dict[str, typing.List[typing.Dict[str, str]]] | metrics_portability (self, *, typing.Optional[str] prefix=None) |
| | Reports metrics related issues that could be encountered on different monitoring systems.
|
| |
| typing.List[str] | list_tasks (self) |
| |
| | spawn_task (self, str name) |
| |
| | capture_logs (self, *, str log_level='DEBUG', bool testsuite_skip_prepare=False) |
| | Captures logs from the service.
|
| |
| | log_flush (self, typing.Optional[str] logger_name=None) |
| | Flush service logs.
|
| |
| None | invalidate_caches (self, *, bool clean_update=True, typing.Optional[typing.List[str]] cache_names=None, bool testsuite_skip_prepare=False) |
| | Send request to service to update caches.
|
| |
| typing.Dict[str, typing.Any] | tests_control (self, bool invalidate_caches=True, bool clean_update=True, typing.Optional[typing.List[str]] cache_names=None, typing.Optional[typing.List[str]] http_allowed_urls_extra=None) |
| |
| None | update_server_state (self) |
| | Update service-side state through http call to 'tests/control':
|
| |
| None | enable_testpoints (self, bool no_auto_cache_cleanup=False) |
| | Send list of handled testpoint pats to service.
|
| |
| typing.Dict[str, typing.Any] | get_dynamic_config_defaults (self) |
| |
| http.ClientResponse | post (self, str path, JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| | Make a HTTP POST request.
|
| |
| http.ClientResponse | put (self, path, JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| | Make a HTTP PUT request.
|
| |
| http.ClientResponse | patch (self, path, JsonAnyOptional json=None, typing.Any data=None, typing.Optional[typing.Dict[str, str]] params=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, typing.Optional[typing.Dict[str, str]] headers=None, **kwargs) |
| | Make a HTTP PATCH request.
|
| |
| http.ClientResponse | get (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| | Make a HTTP GET request.
|
| |
| http.ClientResponse | delete (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| | Make a HTTP DELETE request.
|
| |
| http.ClientResponse | options (self, str path, typing.Optional[typing.Dict[str, str]] headers=None, typing.Optional[str] bearer=None, typing.Optional[str] x_real_ip=None, **kwargs) |
| | Make a HTTP OPTIONS request.
|
| |
| http.ClientResponse | request (self, str http_method, str path, **kwargs) |
| | Make a HTTP request with the specified method.
|
| |
| | raw_aiohttp_client (self) |
| |