mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-29 12:57:16 +00:00
34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
|
|
actionTests:
|
||
|
|
- action: promote
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_promoting.yaml
|
||
|
|
parameters:
|
||
|
|
instance: 'any'
|
||
|
|
- action: promote
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_promoting.yaml
|
||
|
|
parameters:
|
||
|
|
instance: '2'
|
||
|
|
- action: promote
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_promoting.yaml
|
||
|
|
parameters:
|
||
|
|
instance: 'cluster-example-2'
|
||
|
|
- action: promote
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedErrorMessage: 'Could not find a healthy instance matching the criteria: nonexistent-instance'
|
||
|
|
parameters:
|
||
|
|
instance: 'nonexistent-instance'
|
||
|
|
- action: reload
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_reload.yaml
|
||
|
|
- action: restart
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_restart.yaml
|
||
|
|
- action: suspend
|
||
|
|
inputPath: testdata/cluster_healthy.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_reconcile_suspended.yaml
|
||
|
|
- action: resume
|
||
|
|
inputPath: testdata/cluster_reconcile_suspended.yaml
|
||
|
|
expectedOutputPath: testdata/cluster_healthy.yaml
|