apollo
apollo copied to clipboard
Missing tests - because Kubernetes mock is deprecated
Since Kubernetes mock is deprecated, it's super hard to write some tests that we would like to write:
- StatusController:
- GetCurrentServiceStatus.
- GetCurrentEnvironmentStatus.
- GetLatestPodName (with and without groupId).
- GetPodContainers.
- ScalingController:
- UpdateScalingFactor.
- EnvStatus (DeploymentEnvStatusManager):
- When having another service in the same environment and it is part of a group.
- HealthController:
- Detect unhealthy environment.
- KubernetesActionsController:
- Restart pod.
- Restart all pods.
- Limit concurrent deployment based on environment setting
We should refactor these tests and make them E2E tests and run them with k8s cluster on travis-ci: https://medium.com/@cedriclam/how-to-run-e2e-tests-against-a-kubernetes-cluster-with-travis-ci-628237ac8fbe
Yep, that's the plan