gcs
gcs copied to clipboard
WIP: Basic tests to verify setup and Gluster volume
Two tests are available:
- Setup test: Tests expected number of pods and Running status
- CSI and Gluster volume test: Creates 1GiB gluster volume using Persistent Volume claim and runs nginx pod to verify mount and persisted data.
TODO:
- Refactor kube functionalities as library
- Dependencies need to be installed(
pytestandkubernetes) - Sleeps in tests needs to be removed
- Integrate Pytest with tox and nose similar to project https://github.com/gluster/libgfapi-python
- Deployment of these test scripts to master node
- Tests running infra creation
How I tested:
- Copied
/root/.kube/configfrom one of the node(kube1) to my local machine(/home/aravinda/.kube/config) - Run tests from local machine
cd gcs
pytest e2e
Signed-off-by: Aravinda VK [email protected]