879 B
879 B
Zabbix Partitioning Tests
This directory contains a Docker-based test environment for the Zabbix Partitioning script.
Prerequisites
- Docker & Docker Compose
- Python 3
Setup & Run
-
Start the database container:
docker compose up -dThis will start a MySQL 8.0 container and import the Zabbix schema.
-
Create valid config (done automatically): The
test_config.yamlreferences the running container. -
Run the partitioning script:
# Create virtual environment if needed python3 -m venv venv ./venv/bin/pip install pymysql pyyaml # Dry Run ./venv/bin/python3 ../../partitioning/zabbix_partitioning.py -c test_config.yaml --dry-run --init # Live Run ./venv/bin/python3 ../../partitioning/zabbix_partitioning.py -c test_config.yaml --init
Cleanup
docker compose down
rm -rf venv