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

     1  tests:
     2    - healthStatus:
     3        status: Progressing
     4        message: Waiting for the status to be reported
     5      inputPath: testdata/progressing_no_status.yaml
     6    - healthStatus:
     7        status: Degraded
     8        message: >-
     9          NonCompliant; the policy spec is valid, the policy does not specify an
    10          OperatorGroup but one already exists in the namespace - assuming that
    11          OperatorGroup is correct, the Subscription required by the policy was
    12          not found, there are no relevant InstallPlans in the namespace, the
    13          ClusterServiceVersion required by the policy was not found, no CRDs were
    14          found for the operator, there are no relevant deployments because the 
    15          ClusterServiceVersion is missing, CatalogSource was found
    16      inputPath: testdata/degraded.yaml
    17    - healthStatus:
    18        status: Progressing
    19        message: Waiting for the status to be updated
    20      inputPath: testdata/progressing_old_generation.yaml
    21    - healthStatus:
    22        status: Progressing
    23        message: Waiting for the compliance condition
    24      inputPath: testdata/progressing_no_compliance.yaml
    25    - healthStatus:
    26        status: Healthy
    27        message: >-
    28          Compliant; the policy spec is valid, the policy does not specify an
    29          OperatorGroup but one already exists in the namespace - assuming that
    30          OperatorGroup is correct, the Subscription matches what is required by
    31          the policy, no InstallPlans requiring approval were found,
    32          ClusterServiceVersion (argocd-operator.v0.11.0) - install strategy
    33          completed with no errors, there are CRDs present for the operator, all
    34          operator Deployments have their minimum availability, CatalogSource was
    35          found
    36      inputPath: testdata/healthy_no_generation.yaml
    37    - healthStatus:
    38        status: Healthy
    39        message: >-
    40          Compliant; the policy spec is valid, the policy does not specify an
    41          OperatorGroup but one already exists in the namespace - assuming that
    42          OperatorGroup is correct, the Subscription matches what is required by
    43          the policy, no InstallPlans requiring approval were found,
    44          ClusterServiceVersion (argocd-operator.v0.11.0) - install strategy
    45          completed with no errors, there are CRDs present for the operator, all
    46          operator Deployments have their minimum availability, CatalogSource was
    47          found
    48      inputPath: testdata/healthy_with_generation.yaml