|
pathlib.Path | pytest_userver.plugins.base.service_source_dir (pytestconfig) |
| Returns the path to the service source directory that is set by command line --service-source-dir option.
|
|
pathlib.Path | pytest_userver.plugins.base.build_dir (pytestconfig) |
| Returns the build directory set by command line --build-dir option.
|
|
pathlib.Path | pytest_userver.plugins.base.service_binary (pytestconfig) |
| Returns the path to service binary set by command line --service-binary option.
|
|
int | pytest_userver.plugins.base.service_port (pytestconfig) |
| Returns the main listener port number of the service set by command line --service-port option.
|
|
int | pytest_userver.plugins.base.monitor_port (pytestconfig) |
| Returns the monitor listener port number of the service set by command line --monitor-port option.
|
|
InvalidationState | pytest_userver.plugins.caches.cache_invalidation_state () |
| A fixture for notifying the service of changes in cache data sources.
|
|
pathlib.Path | pytest_userver.plugins.config.service_config_path (pytestconfig) |
| Returns the path to service.yaml file set by command line --service-config option.
|
|
typing.Optional[pathlib.Path] | pytest_userver.plugins.config.service_config_vars_path (pytestconfig) |
| Returns the path to config_vars.yaml file set by command line --service-config-vars option.
|
|
typing.Optional[pathlib.Path] | pytest_userver.plugins.config.service_secdist_path (pytestconfig) |
| Returns the path to secure_data.json file set by command line --service-secdist option.
|
|
pathlib.Path | pytest_userver.plugins.config.config_fallback_path (pytestconfig) |
| Returns the path to dynamic config fallback file set by command line --config-fallback option.
|
|
| pytest_userver.plugins.config.service_tmpdir (service_binary, tmp_path_factory) |
| Returns the path for temporary files.
|
|
pathlib.Path | pytest_userver.plugins.config.service_config_path_temp (service_tmpdir, service_config_yaml) |
| Dumps the contents of the service_config_yaml into a static config for testsuite and returns the path to the config file.
|
|
dict | pytest_userver.plugins.config.service_config_yaml (_service_config) |
| Returns the static config values after the USERVER_CONFIG_HOOKS were applied (if any).
|
|
dict | pytest_userver.plugins.config.service_config_vars (_service_config) |
| Returns the static config variables (config_vars.yaml) values after the USERVER_CONFIG_HOOKS were applied (if any).
|
|
| pytest_userver.plugins.config.userver_config_http_server (service_port, monitor_port) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
typing.List[str] | pytest_userver.plugins.config.allowed_url_prefixes_extra () |
| By default, userver HTTP client is only allowed to talk to mockserver when running in testsuite.
|
|
| pytest_userver.plugins.config.userver_config_http_client (mockserver_info, mockserver_ssl_info, allowed_url_prefixes_extra) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
| pytest_userver.plugins.config.userver_config_logging (pytestconfig) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
| pytest_userver.plugins.config.userver_config_testsuite (mockserver_info) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
| pytest_userver.plugins.config.userver_config_testsuite_support (pytestconfig) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
| pytest_userver.plugins.config.userver_config_secdist (service_secdist_path) |
| Returns a function that adjusts the static configuration file for testsuite.
|
|
pathlib.Path | pytest_userver.plugins.dumps.userver_dumps_root (tmp_path_factory) |
| The directory which the service will use for cache dumps.
|
|
| pytest_userver.plugins.dumps.read_latest_dump (userver_dumps_root) |
| Read the latest dump produced by a specified dumper.
|
|
| pytest_userver.plugins.dumps.cleanup_userver_dumps (userver_dumps_root, request) |
| To avoid leaking dumps between tests, cache_dump_dir must be cleaned after each test.
|
|
DynamicConfig | pytest_userver.plugins.dynamic_config.dynamic_config (request, search_path, load_json, object_substitute, config_service_defaults, cache_invalidation_state) |
| Fixture that allows to control dynamic config values used by the service.
|
|
typing.Dict[str, typing.Any] | pytest_userver.plugins.dynamic_config.dynamic_config_fallback_patch () |
| Override this fixture to replace some dynamic config values specifically for testsuite tests:
|
|
typing.Dict[str, typing.Any] | pytest_userver.plugins.dynamic_config.config_service_defaults (config_fallback_path, dynamic_config_fallback_patch) |
| Fixture that returns default values for dynamic config.
|
|
| pytest_userver.plugins.dynamic_config.userver_config_dynconf_fallback (pytestconfig, config_service_defaults, service_tmpdir) |
| Returns a function that adjusts the static configuration file for the testsuite.
|
|
| pytest_userver.plugins.dynamic_config.userver_config_dynconf_url (mockserver_info) |
| Returns a function that adjusts the static configuration file for the testsuite.
|
|
None | pytest_userver.plugins.dynamic_config.mock_configs_service (mockserver, dynamic_config) |
| Adds a mockserver handler that forwards dynamic_config to service's dynamic-config-client component.
|
|
int | pytest_userver.plugins.grpc.client.grpc_service_port (service_config_yaml) |
| Returns the gRPC listener port number of the service that is set in the static configuration file.
|
|
str | pytest_userver.plugins.grpc.client.grpc_service_endpoint (grpc_service_port) |
| Returns the gRPC endpoint of the service.
|
|
float | pytest_userver.plugins.grpc.client.grpc_service_timeout (pytestconfig) |
| Returns the gRPC timeout for the service that is set by the command line option --service-timeout .
|
|
| pytest_userver.plugins.grpc.client.grpc_channel (grpc_service_endpoint, grpc_service_deps, grpc_service_timeout, _grpc_session_channel) |
| Returns the gRPC channel configured by the parameters from the grpc_service_endpoint fixture.
|
|
| pytest_userver.plugins.grpc.client.grpc_service_deps (service_client) |
| gRPC service dependencies hook.
|
|
str | pytest_userver.plugins.grpc.mockserver.grpc_mockserver_endpoint (pytestconfig, _grpc_port) |
| Returns the gRPC endpoint to start the mocking server that is set by command line --grpc-mockserver-host and --grpc-mockserver-port options.
|
|
| pytest_userver.plugins.grpc.mockserver.grpc_mockserver (_grpc_mockserver_endpoint) |
| Returns the gRPC mocking server.
|
|
| pytest_userver.plugins.grpc.mockserver.create_grpc_mock () |
| Creates the gRPC mock server for the provided type.
|
|
| pytest_userver.plugins.mongo.userver_mongo_config (mongo_connection_info) |
| Returns a function that adjusts the static configuration file for the testsuite.
|
|
| pytest_userver.plugins.postgresql.userver_pg_config (pgsql_local) |
| Returns a function that adjusts the static configuration file for the testsuite.
|
|
| pytest_userver.plugins.service.service_env () |
| Override this to pass extra environment variables to the service.
|
|
typing.Optional[str] | pytest_userver.plugins.service.service_http_ping_url (service_config_yaml, service_baseurl) |
| Returns the service HTTP ping URL that is used by the testsuite to detect that the service is ready to work.
|
|
net.HealthChecks | pytest_userver.plugins.service.service_non_http_health_checks (service_config_yaml) |
| Returns a health checks info.
|
|
| pytest_userver.plugins.service.service_daemon (pytestconfig, create_daemon_scope, service_env, service_http_ping_url, service_config_path_temp, service_config_yaml, service_binary, service_non_http_health_checks, testsuite_logger, _userver_log_handler) |
| Configures the health checking to use service_http_ping_url fixture value if it is not None; otherwise uses the service_non_http_health_checks info.
|
|
None | pytest_userver.plugins.service_client.extra_client_deps () |
| Service client dependencies hook.
|
|
None | pytest_userver.plugins.service_client.auto_client_deps (request) |
| Service client dependencies hook that knows about pgsql, mongodb, clickhouse, rabbitmq, redis_store and mysql dependencies.
|
|
client.Client | pytest_userver.plugins.service_client.service_client (ensure_daemon_started, service_daemon, mock_configs_service, cleanup_userver_dumps, extra_client_deps, auto_client_deps, client.TestsuiteClientConfig _testsuite_client_config, _service_client_base, _service_client_testsuite) |
| Main fixture that provides access to userver based service.
|
|
| pytest_userver.plugins.service_client.websocket_client (service_client, service_port) |
| Fixture that provides access to userver based websocket service.
|
|
client.ClientMonitor | pytest_userver.plugins.service_client.monitor_client (service_client, service_client_options, mockserver, str monitor_baseurl, client.TestsuiteClientConfig _testsuite_client_config) |
| Main fixture that provides access to userver monitor listener.
|
|
str | pytest_userver.plugins.service_client.service_baseurl (service_port) |
| Returns the main listener URL of the service.
|
|
str | pytest_userver.plugins.service_client.monitor_baseurl (monitor_port) |
| Returns the main monitor URL of the service.
|
|
| pytest_userver.plugins.testpoint.userver_config_testpoint (mockserver_info) |
| Returns a function that adjusts the static configuration file for the testsuite.
|
|