#include <userver/testsuite/testsuite_support.hpp>
Testsuite support component.
Provides additional functionality for testing, e.g. forced cache updates.
Name | Description | Default value |
---|---|---|
testsuite-periodic-update-enabled | whether caches update periodically | true |
testsuite-pg-execute-timeout | execute timeout override for postgres | - |
testsuite-pg-statement-timeout | statement timeout override for postgres | - |
testsuite-pg-readonly-master-expected | mutes readonly master detection warning | false |
testsuite-redis-timeout-connect | minimum connection timeout for redis | - |
testsuite-redis-timeout-single | minimum single shard timeout for redis | - |
testsuite-redis-timeout-all | minimum command timeout for redis | - |
testsuite-tasks-enabled | enable testsuite tasks facility | false |
testsuite-increased-timeout | increase timeouts for connections, statement executions, RPC timeouts to avoid timeouts happening in testing environments, where the hardware differs from production. Overrides postgres, redis and grpc timeouts if these are missing | 0ms |
cache-update-execution | If 'sequential' the caches are updated by testsuite sequentially in the order for cache component registration, which makes sense if service has components that push value into a cache component. If 'concurrent' the caches are updated concurrently with respect to the cache component dependencies. | concurrent |
Definition at line 53 of file testsuite_support.hpp.
Public Member Functions | |
TestsuiteSupport (const components::ComponentConfig &component_config, const components::ComponentContext &component_context) | |
testsuite::CacheControl & | GetCacheControl () |
testsuite::DumpControl & | GetDumpControl () |
testsuite::PeriodicTaskControl & | GetPeriodicTaskControl () |
testsuite::TestpointControl & | GetTestpointControl () |
const testsuite::PostgresControl & | GetPostgresControl () |
const testsuite::RedisControl & | GetRedisControl () |
testsuite::TestsuiteTasks & | GetTestsuiteTasks () |
testsuite::HttpAllowedUrlsExtra & | GetHttpAllowedUrlsExtra () |
testsuite::GrpcControl & | GetGrpcControl () |
std::chrono::milliseconds | GetIncreasedTimeout () const noexcept |
virtual ComponentHealth | GetComponentHealth () const |
virtual void | OnLoadingCancelled () |
virtual void | OnAllComponentsLoaded () |
Static Public Member Functions | |
static yaml_config::Schema | GetStaticConfigSchema () |
Static Public Attributes | |
static constexpr std::string_view | kName = "testsuite-support" |
The default name of components::TestsuiteSupport. | |
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase, and server::handlers::Restart.
Definition at line 49 of file raw_component_base.hpp.
|
noexcept |
testsuite-increased-timeout
static option, testsuite-increased-timeout
value otherwise
|
inlinevirtualinherited |
Reimplemented in urabbitmq::ConsumerComponentBase, components::ComponentBase, components::Server, and server::handlers::Ping.
Definition at line 53 of file raw_component_base.hpp.
|
inlinevirtualinherited |
Reimplemented in components::ComponentBase.
Definition at line 51 of file raw_component_base.hpp.