Plugin that waits for a ScyllaDB cluster to become reachable and adjusts the scylla-* components of the static config to point at it.
Classes | |
| class | ConnectionInfo |
Functions | |
| None | pytest_addoption (parser) |
| ConnectionInfo | scylla_connection_info (pytestconfig) |
| Where the ScyllaDB cluster is expected to be running. | |
| float | scylla_wait_timeout (pytestconfig) |
| None | _scylla_tcp_ready (scylla_connection_info, scylla_wait_timeout) |
| ConnectionInfo | scylla (_scylla_tcp_ready, scylla_connection_info) |
| userver_config_scylla (scylla_connection_info, _scylla_tcp_ready) | |
Variables | |
| list | pytest_plugins = ['pytest_userver.plugins.core'] |
| list | USERVER_CONFIG_HOOKS = ['userver_config_scylla'] |
| logger = logging.getLogger(__name__) | |
| str | DEFAULT_HOST = 'localhost' |
| int | DEFAULT_CQL_PORT = 9042 |
| float | DEFAULT_WAIT_TIMEOUT = 60.0 |
| str | _SCYLLA_COMPONENT_PREFIX = 'scylla-' |
|
protected |
| None pytest_userver.plugins.scylla.pytest_addoption | ( | parser | ) |
|
protected |
| str pytest_userver.plugins.scylla.DEFAULT_HOST = 'localhost' |
| float pytest_userver.plugins.scylla.DEFAULT_WAIT_TIMEOUT = 60.0 |
| pytest_userver.plugins.scylla.logger = logging.getLogger(__name__) |
| list pytest_userver.plugins.scylla.pytest_plugins = ['pytest_userver.plugins.core'] |