- Install minikube (https://github.com/kubernetes/minikube#installation);
- Launch minikube:
mkdir -p ~/.minikube/files/files
minikube start --kubernetes-version=v1.14.0
- Check the minikube k8s cluster status:
minikube status
- Make sure the kubectl tool uses the minikube k8s cluster:
kubectl config use-context minikube
- Apply minikube configuration and some k8s fixture services:
minikube addons enable ingress
kubectl apply -f tests/k8s/namespace.yml
kubectl apply -f tests/k8s/nfs.yml
kubectl apply -f tests/k8s/storageclass.yml
- Create a new virtual environment with Python 3.6:
python -m venv venv
source venv/bin/activate
- Install dev dependencies:
pip install -e .[dev]
- Run the unit test suite:
pytest -vv tests/unit
- Run the integration test suite:
pytest -vv tests/integration
Pass -x -s --log-cli-level=DEBUG
to your pytest
commands for better debugging
experience.