github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/argoproj.io/Rollout/actions/action_test.yaml (about)

     1  discoveryTests:
     2  - inputPath: testdata/pre_v0.6_paused_rollout.yaml
     3    result:
     4      - name: resume
     5        disabled: false
     6      - name: restart
     7        disabled: false
     8        displayName: Restart Pods
     9      - name: abort
    10        disabled: false
    11      - name: retry
    12        disabled: true
    13      - name: promote-full
    14        disabled: true
    15      - name: skip-current-step
    16        disabled: true
    17      - name: pause
    18        disabled: true
    19  - inputPath: testdata/pre_v0.6_not_paused_rollout.yaml
    20    result:
    21      - name: restart
    22        disabled: false
    23        displayName: Restart Pods
    24      - name: resume
    25        disabled: true
    26      - name: abort
    27        disabled: false
    28      - name: retry
    29        disabled: true
    30      - name: promote-full
    31        disabled: true
    32      - name: skip-current-step
    33        disabled: true
    34      - name: pause
    35        disabled: false
    36  - inputPath: testdata/pre_v0.6_nil_paused_rollout.yaml
    37    result:
    38      - name: restart
    39        disabled: false
    40        displayName: Restart Pods
    41      - name: resume
    42        disabled: true
    43      - name: abort
    44        disabled: false
    45      - name: retry
    46        disabled: true
    47      - name: promote-full
    48        disabled: true
    49      - name: skip-current-step
    50        disabled: true
    51      - name: pause
    52        disabled: false
    53  - inputPath: testdata/has_pause_condition_rollout.yaml
    54    result:
    55      - name: restart
    56        disabled: false
    57        displayName: Restart Pods
    58      - name: resume
    59        disabled: false
    60      - name: abort
    61        disabled: false
    62      - name: retry
    63        disabled: true
    64      - name: promote-full
    65        disabled: false
    66      - name: skip-current-step
    67        disabled: false
    68      - name: pause
    69        disabled: false
    70  - inputPath: testdata/no_pause_condition_rollout.yaml
    71    result:
    72      - name: restart
    73        disabled: false
    74        displayName: Restart Pods
    75      - name: resume
    76        disabled: true
    77      - name: abort
    78        disabled: false
    79      - name: retry
    80        disabled: true
    81      - name: promote-full
    82        disabled: false
    83      - name: skip-current-step
    84        disabled: false
    85      - name: pause
    86        disabled: false
    87  - inputPath: testdata/healthy_rollout.yaml
    88    result:
    89      - name: restart
    90        disabled: false
    91        displayName: Restart Pods
    92      - name: resume
    93        disabled: true
    94      - name: abort
    95        disabled: true
    96      - name: retry
    97        disabled: true
    98      - name: promote-full
    99        disabled: true
   100      - name: skip-current-step
   101        disabled: true
   102      - name: pause
   103        disabled: true
   104  - inputPath: testdata/v0.9_aborted_rollout.yaml
   105    result:
   106      - name: restart
   107        disabled: false
   108        displayName: Restart Pods
   109      - name: resume
   110        disabled: true
   111      - name: abort
   112        disabled: true
   113      - name: retry
   114        disabled: false
   115      - name: promote-full
   116        disabled: false
   117      - name: skip-current-step
   118        disabled: false
   119      - name: pause
   120        disabled: true
   121  - inputPath: testdata/v0.9_aborted_bg_rollout.yaml
   122    result:
   123      - name: restart
   124        disabled: false
   125        displayName: Restart Pods
   126      - name: resume
   127        disabled: true
   128      - name: abort
   129        disabled: true
   130      - name: retry
   131        disabled: false
   132      - name: promote-full
   133        disabled: true
   134      - name: skip-current-step
   135        disabled: true
   136      - name: pause
   137        disabled: true
   138  - inputPath: testdata/aborted_bg_rollout.yaml
   139    result:
   140      - name: restart
   141        disabled: false
   142        displayName: Restart Pods
   143      - name: resume
   144        disabled: true
   145      - name: abort
   146        disabled: true
   147      - name: retry
   148        disabled: false
   149      - name: promote-full
   150        disabled: false
   151      - name: skip-current-step
   152        disabled: true
   153      - name: pause
   154        disabled: true
   155  actionTests:
   156  - action: resume
   157    inputPath: testdata/pre_v0.6_paused_rollout.yaml
   158    expectedOutputPath: testdata/pre_v0.6_not_paused_rollout.yaml
   159  - action: resume
   160    inputPath: testdata/has_pause_condition_rollout.yaml
   161    expectedOutputPath: testdata/no_pause_condition_rollout.yaml
   162  - action: abort
   163    inputPath: testdata/has_pause_condition_rollout.yaml
   164    expectedOutputPath: testdata/has_pause_condition_rollout_aborted.yaml
   165  - action: restart
   166    inputPath: testdata/rollout_not_restarted.yaml
   167    expectedOutputPath: testdata/rollout_restarted.yaml
   168  - action: retry
   169    inputPath: testdata/v0.9_aborted_rollout.yaml
   170    expectedOutputPath: testdata/retried_rollout.yaml
   171  - action: promote-full
   172    inputPath: testdata/v0.9_aborted_rollout.yaml
   173    expectedOutputPath: testdata/v0.9_promote-full_rollout.yaml
   174  - action: promote-full
   175    inputPath: testdata/aborted_rollout.yaml
   176    expectedOutputPath: testdata/promote-full_rollout.yaml
   177  - action: skip-current-step
   178    inputPath: testdata/rollout-step1.yaml
   179    expectedOutputPath: testdata/rollout-step1-after-skip-current-step.yaml