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
    - name: skip-current-step
      disabled: true
    - name: pause
      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
    - name: skip-current-step
      disabled: true
    - name: pause
      disabled: false
- 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
    - name: skip-current-step
      disabled: true
    - name: pause
      disabled: false
- 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
    - name: skip-current-step
      disabled: false
    - name: pause
      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
    - name: skip-current-step
      disabled: false
    - name: pause
      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
    - name: skip-current-step
      disabled: true
    - name: pause
      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
    - name: skip-current-step
      disabled: false
    - name: pause
      disabled: true
- 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
    - name: skip-current-step
      disabled: true
    - name: pause
      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
    - name: skip-current-step
      disabled: true
    - name: pause
      disabled: true
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
- action: skip-current-step
  inputPath: testdata/rollout-step1.yaml
  expectedOutputPath: testdata/rollout-step1-after-skip-current-step.yaml
