argo-cd/resource_customizations/apps/Deployment/actions/action_test.yaml
Ratul Basak 111da3966e
feat(actions): parametrized actions to scale workloads (#15505) (#20097)
Signed-off-by: Ratul Basak <ratulbasak93@gmail.com>
Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Co-authored-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
2025-05-08 11:19:04 +03:00

20 lines
678 B
YAML

actionTests:
- action: restart
inputPath: testdata/deployment.yaml
expectedOutputPath: testdata/deployment-restarted.yaml
- action: pause
inputPath: testdata/deployment.yaml
expectedOutputPath: testdata/deployment-pause.yaml
- action: resume
inputPath: testdata/deployment-pause.yaml
expectedOutputPath: testdata/deployment-resume.yaml
- action: scale
inputPath: testdata/deployment.yaml
expectedOutputPath: testdata/deployment-scaled.yaml
parameters:
replicas: '6'
- action: scale
inputPath: testdata/deployment.yaml
expectedErrorMessage: 'invalid number: not_a_number'
parameters:
replicas: 'not_a_number'