This is a demo project that has a simple PodGroupService which manages lifecycle of a group of Pods sharing common labels. It has common operations like add, list, watch, delete, etc.
We write tests for this service using various options provided to us by Fabric8 Kubernetes Client:
Based on Fabric8 Kubernetes Mock Server
- Using CRUD Mode : PodGroupServiceCrudTest
- Using Expectations Mode : PodGroupServiceTest
Based on Fabric8 Kubernetes JUnit Jupiter
- Using Fabric8 JUnit5 Annotations : PodGroupServiceIT
These tests require a Kubernetes instance to be running. They will execute in k8s-e2e
profile:
$ mvn clean install -Pk8s-e2e