argo-cd/resource_customizations/pxc.percona.com/PerconaXtraDBCluster/health_test.yaml
Thomas Decaux 64e718c549
feat: add health-checks for Percona XtraDB cluster (#13093)
* feat: Add health-checks for Percona XtraDB cluster

Signed-off-by: Thomas Decaux <ebuildy@gmail.com>
Signed-off-by: ebuildy <ebuildy@gmail.com>

* add tests

Signed-off-by: ebuildy <ebuildy@gmail.com>

---------

Signed-off-by: Thomas Decaux <ebuildy@gmail.com>
Signed-off-by: ebuildy <ebuildy@gmail.com>
2023-05-27 21:27:21 -04:00

25 lines
808 B
YAML

tests:
- healthStatus:
status: Progressing
message: "0/1 node(s) are ready"
inputPath: testdata/initializing.yaml
- healthStatus:
status: Healthy
message: "1/1 node(s) are ready"
inputPath: testdata/ready.yaml
- healthStatus:
status: Unknown
message: "Cluster is paused"
inputPath: testdata/paused.yaml
- healthStatus:
status: Degraded
message: "Cluster is stopping (1/2 node(s) are ready)"
inputPath: testdata/stopping.yaml
- healthStatus:
status: Degraded
message: "Cluster is on error: we lost node"
inputPath: testdata/error.yaml
- healthStatus:
status: Unknown
message: "Cluster status is unknown. Ensure your ArgoCD is current and then check for/file a bug report: https://github.com/argoproj/argo-cd/issues"
inputPath: testdata/unknown.yaml