Testsuite integration.
Namespaces | |
| namespace | logcapture |
| Logcapture allows to intercepts service logs on demand with context manager. | |
Classes | |
| class | CacheControl |
| Testsuite interface for caches and cache-like components. More... | |
| class | DumpControl |
| Dumper control interface for testsuite. More... | |
| class | Dumper |
| Testsuite-facing API of a dump manager. More... | |
| class | ExceptionsHandlingMiddleware |
| class | GrpcControl |
| Testsuite overrides for gRPC client timeouts and TLS. More... | |
| class | HttpAllowedUrlsExtra |
| Testsuite extra allowed HTTP client URLs. More... | |
| struct | MysqlControl |
| Testsuite overrides for MySQL client. More... | |
| class | PeriodicTaskControl |
| Periodic task control interface for testsuite. More... | |
| class | PeriodicTaskRegistrationHolder |
| RAII helper for testsuite registration. More... | |
| class | PostgresControl |
| Testsuite overrides for PostgreSQL query timeouts. More... | |
| struct | RedisControl |
| Testsuite minimum Redis client timeouts. More... | |
| class | TaskAlreadyRunning |
| class | TaskNotFound |
| class | TestpointClientBase |
| Base testpoint client. Used to report TESTPOINT executions to testsuite. More... | |
| class | TestpointControl |
| Testpoint control interface for testsuite. More... | |
| class | TestsuiteTasks |
| Testsuite tasks support. More... | |
Typedefs | |
| using | ExceptionsHandlingMiddlewareFactory |
| using | TestpointCallback = utils::function_ref<void(const formats::json::Value&)> |
Functions | |
| CacheControl & | FindCacheControl (const components::ComponentContext &context) |
| template<typename Component> | |
| void | RegisterCacheResetter (const components::ComponentContext &context, Component *self, void(Component::*reset_method)()) |
| Registers a cache resetter bound to the component lifetime. | |
| template<typename Component> | |
| void | RegisterCacheResetter (const components::ComponentContext &context, Component *self, void(Component::*reset_method)(cache::UpdateType)) |
| TestsuiteTasks & | GetTestsuiteTasks (const components::ComponentContext &component_context) |
| Get reference to TestsuiteTasks instance. | |
| bool | AreTestpointsAvailable () noexcept |
| Returns true if testpoints are available in runtime. | |
| using testsuite::ExceptionsHandlingMiddlewareFactory |
Definition at line 24 of file middlewares.hpp.
| using testsuite::TestpointCallback = utils::function_ref<void(const formats::json::Value&)> |
Definition at line 20 of file testpoint.hpp.
| CacheControl & testsuite::FindCacheControl | ( | const components::ComponentContext & | context | ) |
The method for acquiring testsuite::CacheControl in the component system.
| TestsuiteTasks & testsuite::GetTestsuiteTasks | ( | const components::ComponentContext & | component_context | ) |
Get reference to TestsuiteTasks instance.
| component_context |
| void testsuite::RegisterCacheResetter | ( | const components::ComponentContext & | context, |
| Component * | self, | ||
| void(Component::* | reset_method )() ) |
Registers a cache resetter bound to the component lifetime.
The resetter is registered after the component constructor finishes and is unregistered just before the destructor runs.
Several cache resetters for the same component are invoked sequentially in registration order.
Uses components::ComponentContext::Scopes for the component automatically. See choosing scopes for the lifetime rules.
Typical usage:
Definition at line 211 of file cache_control.hpp.
| void testsuite::RegisterCacheResetter | ( | const components::ComponentContext & | context, |
| Component * | self, | ||
| void(Component::* | reset_method )(cache::UpdateType) ) |
Definition at line 230 of file cache_control.hpp.