Skip to main content

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

vedro_logs_checker-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vedro_logs_checker-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file vedro_logs_checker-0.0.4.tar.gz.

File metadata

  • Download URL: vedro_logs_checker-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for vedro_logs_checker-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b3a17e31b8d7ed9255139b2595e49feb6360187e9aeb245b6a3ff22d75ed518e
MD5 e60730f6e2f839bff595be9cb274e1c5
BLAKE2b-256 9819d587bd859fcb94afcf53feb13cb5b540ed9475fa5ae7cfeb8e5123af6c79

See more details on using hashes here.

File details

Details for the file vedro_logs_checker-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for vedro_logs_checker-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a182bdf23f559dccd7a636f692e5fc07e5f780720d67feb9aa7813fd81d46a1b
MD5 5bece55d8a5a37300d03d361c2d955e2
BLAKE2b-256 a1be0aa63a29be28cda1a1bc7e20898223a8b66e2f19959c32584b5f5284b97e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page