Skip to main content

Data collector for https://github.com/openshift/openshift-python-wrapper when running with PyTest

Project description

To enable data-collector pass data-collector.yaml YAML format:

    data_collector_base_directory: "<base directory for data collection>"
    collect_data_function: "<import path for data collection method>"
    collect_pod_logs: true|false # bool whether to collect logs if resource is a pod

YAML Example ocp_utilities/data-collector.yaml:

    data_collector_base_directory: "collected-info"
    collect_data_function: "data_collector.collect_data"
    collect_pod_logs: true

Either export path to yaml file in OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_YAML or set data_collector in your py_config The environment variable takes precedence over py_config.

To use dynamic base directory, export OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR
Example:

data_collector_base_directory = "/data/results/collected-info"
OPENSHIFT_PYTHON_WRAPPER_DATA_COLLECTOR_DYNAMIC_BASE_DIR = "dynamic_collector_test_dir"

Result: /data/results/dynamic_collector_test_dir/collected-info

Project details


Release history Release notifications | RSS feed

This version

2.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file openshift_python_wrapper_data_collector-2.0.1.tar.gz.

File metadata

File hashes

Hashes for openshift_python_wrapper_data_collector-2.0.1.tar.gz
Algorithm Hash digest
SHA256 8796662701a5623495b7255d32af201f26dd33b4006bb43b44a6d09d58aa513a
MD5 be83f53e73eabd85a1cb3e7bee067909
BLAKE2b-256 8a146cc5ccf17dff0d81edd5ef46a243ad6716fb74b9fe9e6e88975c8b5fca3a

See more details on using hashes here.

Supported by

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