github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/Policy/health_test.yaml (about)

     1  tests:
     2    - healthStatus:
     3        status: Degraded
     4        message: 'NonCompliant clusters: local-cluster, managed'
     5      inputPath: testdata/degraded_root.yaml
     6    - healthStatus:
     7        status: Degraded
     8        message: 'NonCompliant templates: example-namespace'
     9      inputPath: testdata/degraded_replicated.yaml
    10    - healthStatus:
    11        status: Healthy
    12        message: All clusters are compliant
    13      inputPath: testdata/healthy_root.yaml
    14    - healthStatus:
    15        status: Healthy
    16        message: All templates are compliant
    17      inputPath: testdata/healthy_replicated.yaml
    18    - healthStatus:
    19        status: Healthy
    20        message: Policy is disabled
    21      inputPath: testdata/disabled_root.yaml
    22    - healthStatus:
    23        status: Progressing
    24        message: Waiting for the status to be reported
    25      inputPath: testdata/progressing_no_status.yaml
    26    - healthStatus:
    27        status: Progressing
    28        message: Waiting for the status to be reported
    29      inputPath: testdata/progressing_nil_status.yaml
    30    - healthStatus:
    31        status: Healthy
    32        message: No clusters match this policy
    33      inputPath: testdata/healthy_with_placement_empty_compliant.yaml