Github   Telegram
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
components::TestsuiteSupport Class Referencefinal

Testsuite support component. More...

#include <userver/testsuite/testsuite_support.hpp>

+ Inheritance diagram for components::TestsuiteSupport:
+ Collaboration diagram for components::TestsuiteSupport:

Public Member Functions

 TestsuiteSupport (const components::ComponentConfig &component_config, const components::ComponentContext &component_context)
 
testsuite::CacheControlGetCacheControl ()
 
testsuite::ComponentControlGetComponentControl ()
 
testsuite::DumpControlGetDumpControl ()
 
testsuite::PeriodicTaskControlGetPeriodicTaskControl ()
 
testsuite::TestpointControlGetTestpointControl ()
 
const testsuite::PostgresControlGetPostgresControl ()
 
const testsuite::RedisControlGetRedisControl ()
 
testsuite::TestsuiteTasksGetTestsuiteTasks ()
 
testsuite::HttpAllowedUrlsExtraGetHttpAllowedUrlsExtra ()
 

Static Public Member Functions

static yaml_config::Schema GetStaticConfigSchema ()
 

Static Public Attributes

static constexpr std::string_view kName = "testsuite-support"
 

Detailed Description

Testsuite support component.

Provides additional functionality for testing, e.g. forced cache updates.

Static options:

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 true if the correspoding testsuite component is available

Static configuration example:

# yaml
testsuite-support:
testsuite-periodic-update-enabled: true
testsuite-pg-execute-timeout: 300ms
testsuite-pg-statement-timeout: 300ms
testsuite-pg-readonly-master-expected: false
testsuite-redis-timeout-connect: 5s
testsuite-redis-timeout-single: 1s
testsuite-redis-timeout-all: 750ms
Examples
samples/http_caching/http_caching.cpp, samples/postgres_service/postgres_service.cpp, and samples/redis_service/redis_service.cpp.

Definition at line 51 of file testsuite_support.hpp.

Member Data Documentation

◆ kName

constexpr std::string_view components::TestsuiteSupport::kName = "testsuite-support"
staticconstexpr

Definition at line 53 of file testsuite_support.hpp.


The documentation for this class was generated from the following file: