vedro-logs-checker for the vedro.io framework
Project description
vedro-logs-checker
A plugin for the vedro.io testing framework that inspects Docker container logs during test execution and searches for messages based on specified substrings.
This plugin helps ensure that there are no errors or other message types in running containers during test execution.
Installation:
pip install vedro-logs-checker
Features:
- Monitors logs of Docker containers during test execution.
- Detects specific messages by substrings in logs.
- Skips specific test scenarios based on prefixes in the 'subject' attribute.
- Could filter the list of containers to check by a substring in their names.
- Marks tests as FAILED (optional) when errors are found in logs.
Configuration (vedro.cfg.py)
The plugin reads its settings from vedro.cfg.py.
Example configuration:
import vedro
from vedro_logs_checker import vedro_logs_checker
class Config(vedro.Config):
class Plugins:
class VedroLogsChecker(vedro_logs_checker.VedroLogsChecker):
enabled = True
search_for = ["ERROR", "CRITICAL"] # Substrings to check in logs
ignore_prefixes = ["try to", "experimental"] # Scenarios with these prefixes will be ignored
fail_when_found = True # If True, test is marked as FAILED when substrings are found
project_name = "my_project" # Only check containers with this substring in the name. To check all running containers just don't specify the value
container_names_to_check = ["grpc", "api", "e2e"] # Optional way to filter containers by name. To check all containers with "project_name" in name just don't specify the value
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vedro_logs_checker-0.0.1.tar.gz.
File metadata
- Download URL: vedro_logs_checker-0.0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3c38d4e2f0031243dbb55682d1be1b35f51ac3301f79ef7faa1848cfbeed46f
|
|
| MD5 |
4a3a8c0625363d3a34a45d86d04739bd
|
|
| BLAKE2b-256 |
d1963321ae922fa73d8b848e36158c14e515f9dcfa079b95aa5f1d77998c06ec
|
File details
Details for the file vedro_logs_checker-0.0.1-py3-none-any.whl.
File metadata
- Download URL: vedro_logs_checker-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f4d25a500b777641858a87245fc5457561a9946d562e0a39e7679ef8fb717d1
|
|
| MD5 |
4ef587478426ee874bd794243c006d32
|
|
| BLAKE2b-256 |
e49fdf051bbe5fc14a3edf5478c7daf18e018940bc1bb6ee1705defa392960fd
|