mirror of
https://github.com/ditkrg/db-backup-s3.git
synced 2026-01-22 22:06:45 +00:00
|
|
||
|---|---|---|
| .. | ||
| k8s-statefulset-test.yaml | ||
| README.md | ||
| setup-minio-k8s.sh | ||
| test-mssql-k8s-with-minio.sh | ||
| test-mssql-k8s.sh | ||
| test-mssql.sh | ||
Test Scripts
This directory contains automated test scripts for validating the backup and restore functionality across different environments.
Files
Docker Compose Tests
test-mssql.sh: Tests MSSQL backup/restore using Docker Compose with local MinIO
Kubernetes Tests
test-mssql-k8s.sh: Tests MSSQL StatefulSet with backup sidecar (requires existing S3/MinIO)test-mssql-k8s-with-minio.sh: Complete automated test that deploys MinIO alongside MSSQLsetup-minio-k8s.sh: Helper script to deploy MinIO in Kubernetesk8s-statefulset-test.yaml: Test StatefulSet configuration used by the test scripts
Usage
Quick Start (Recommended)
Run the complete automated test with MinIO:
./tests/test-mssql-k8s-with-minio.sh
This will:
- Create a test namespace (
mssql-backup-test) - Deploy MinIO
- Deploy MSSQL StatefulSet with backup sidecar
- Run backup and restore tests
- Verify encryption is working
Manual Kubernetes Test
If you have an existing S3 endpoint:
NAMESPACE=mssql-backup-test \
S3_ENDPOINT=http://your-s3:9000 \
S3_ACCESS_KEY_ID=your-key \
S3_SECRET_ACCESS_KEY=your-secret \
./tests/test-mssql-k8s.sh
Docker Compose Test
./tests/test-mssql.sh
Cleanup
Delete the test namespace to remove all resources:
kubectl delete namespace mssql-backup-test