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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for openshift_python_wrapper_data_collector-1.0.51.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 483eccc27aa4dc230fa09596446ead9c5f82ad394c3efbd7e861c2b318bf1af3 |
|
MD5 | 4de6739d9b74cac04bfcaff56a61ba3a |
|
BLAKE2b-256 | a1edc9fc720d5aecd1b66294f9c0ceb3c0c77077c9d2b387e647a1d64906767b |