github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/promoter.argoproj.io/PromotionStrategy/health_test.yaml (about)

     1  tests:
     2  - healthStatus:
     3      status: Progressing
     4      message: Initializing promotion strategy
     5    inputPath: testdata/no-status.yaml
     6  - healthStatus:
     7      status: Progressing
     8      message: Promotion strategy is being deleted
     9    inputPath: testdata/deleting.yaml
    10  - healthStatus:
    11      status: Progressing
    12      message: Promotion strategy is not ready yet
    13    inputPath: testdata/no-ready-condition.yaml
    14  - healthStatus:
    15      status: Progressing
    16      message: Waiting for promotion strategy spec update to be observed
    17    inputPath: testdata/observed-generation-outdated.yaml
    18  - healthStatus:
    19      status: Degraded
    20      message: "Promotion strategy reconciliation failed: Something went wrong"
    21    inputPath: testdata/reconciliation-error.yaml
    22  - healthStatus:
    23      status: Degraded
    24      message: Promotion strategy has no environments configured
    25    inputPath: testdata/no-environments.yaml
    26  - healthStatus:
    27      status: Progressing
    28      message: The active commit DRY SHA is missing or empty in environment 'dev'.
    29    inputPath: testdata/active-dry-sha-missing.yaml
    30  - healthStatus:
    31      status: Progressing
    32      message: "The proposed commit DRY SHA is missing or empty in environment 'dev'."
    33    inputPath: testdata/proposed-dry-sha-missing.yaml
    34  - healthStatus:
    35      status: Progressing
    36      message: "Promotion in progress for environment 'dev' from 'abc1234' to 'def5678': 1 pending, 0 successful, 1 failed. Pending commit statuses: test-pending. Failed commit statuses: test-failed. "
    37    inputPath: testdata/progressing-failed-pending.yaml
    38  - healthStatus:
    39      status: Healthy
    40      message: All environments are up-to-date on commit 'abc1234'.
    41    inputPath: testdata/all-healthy.yaml
    42  - healthStatus:
    43      status: Progressing
    44      message: Not all environments have the same proposed commit SHA. This likely means the hydrator has not run for all environments yet.
    45    inputPath: testdata/different-proposed-commits.yaml
    46  - healthStatus:
    47      status: Degraded
    48      message: "Promotion strategy reconciliation failed (ChangeTransferPolicyNotReady): ChangeTransferPolicy \"strategy-environments-qal-usw2-27894e05\" is not Ready because \"ReconciliationError\": Reconciliation failed: failed to calculate ChangeTransferPolicy status: failed to get SHAs for proposed branch \"environments/qal-usw2-next\": exit status 128: fatal: 'origin/environments/qal-usw2-next' is not a commit and a branch 'environments/qal-usw2-next' cannot be created from it"
    49    inputPath: testdata/missing-sha-and-not-ready.yaml