discoveryTests:
- inputPath: testdata/pre_v0.6_paused_rollout.yaml
  result:
    - name: resume
      disabled: false
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: abort
      disabled: false
    - name: retry
      disabled: true
    - name: promote-full
      disabled: true
- inputPath: testdata/pre_v0.6_not_paused_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: false
    - name: retry
      disabled: true
    - name: promote-full
      disabled: true
- inputPath: testdata/pre_v0.6_nil_paused_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: false
    - name: retry
      disabled: true
    - name: promote-full
      disabled: true
- inputPath: testdata/has_pause_condition_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: false
    - name: abort
      disabled: false
    - name: retry
      disabled: true
    - name: promote-full
      disabled: false
- inputPath: testdata/no_pause_condition_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: false
    - name: retry
      disabled: true
    - name: promote-full
      disabled: false
- inputPath: testdata/healthy_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: true
    - name: retry
      disabled: true
    - name: promote-full
      disabled: true
- inputPath: testdata/v0.9_aborted_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: true
    - name: retry
      disabled: false
    - name: promote-full
      disabled: false
- inputPath: testdata/v0.9_aborted_bg_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: true
    - name: retry
      disabled: false
    - name: promote-full
      disabled: true
- inputPath: testdata/aborted_bg_rollout.yaml
  result:
    - name: restart
      disabled: false
      displayName: Restart Pods
    - name: resume
      disabled: true
    - name: abort
      disabled: true
    - name: retry
      disabled: false
    - name: promote-full
      disabled: false
actionTests:
- action: resume
  inputPath: testdata/pre_v0.6_paused_rollout.yaml
  expectedOutputPath: testdata/pre_v0.6_not_paused_rollout.yaml
- action: resume
  inputPath: testdata/has_pause_condition_rollout.yaml
  expectedOutputPath: testdata/no_pause_condition_rollout.yaml
- action: abort
  inputPath: testdata/has_pause_condition_rollout.yaml
  expectedOutputPath: testdata/has_pause_condition_rollout_aborted.yaml
- action: restart
  inputPath: testdata/rollout_not_restarted.yaml
  expectedOutputPath: testdata/rollout_restarted.yaml
- action: retry
  inputPath: testdata/v0.9_aborted_rollout.yaml
  expectedOutputPath: testdata/retried_rollout.yaml
- action: promote-full
  inputPath: testdata/v0.9_aborted_rollout.yaml
  expectedOutputPath: testdata/v0.9_promote-full_rollout.yaml
- action: promote-full
  inputPath: testdata/aborted_rollout.yaml
  expectedOutputPath: testdata/promote-full_rollout.yaml
