github.com/argoproj/argo-cd@v1.8.7/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      - name: abort
     9        disabled: false
    10      - name: retry
    11        disabled: true
    12      - name: promote-full
    13        disabled: true
    14  - inputPath: testdata/pre_v0.6_not_paused_rollout.yaml
    15    result:
    16      - name: restart
    17        disabled: false
    18      - name: resume
    19        disabled: true
    20      - name: abort
    21        disabled: false
    22      - name: retry
    23        disabled: true
    24      - name: promote-full
    25        disabled: true
    26  - inputPath: testdata/pre_v0.6_nil_paused_rollout.yaml
    27    result:
    28      - name: restart
    29        disabled: false
    30      - name: resume
    31        disabled: true
    32      - name: abort
    33        disabled: false
    34      - name: retry
    35        disabled: true
    36      - name: promote-full
    37        disabled: true
    38  - inputPath: testdata/has_pause_condition_rollout.yaml
    39    result:
    40      - name: restart
    41        disabled: false
    42      - name: resume
    43        disabled: false
    44      - name: abort
    45        disabled: false
    46      - name: retry
    47        disabled: true
    48      - name: promote-full
    49        disabled: false
    50  - inputPath: testdata/no_pause_condition_rollout.yaml
    51    result:
    52      - name: restart
    53        disabled: false
    54      - name: resume
    55        disabled: true
    56      - name: abort
    57        disabled: false
    58      - name: retry
    59        disabled: true
    60      - name: promote-full
    61        disabled: false
    62  - inputPath: testdata/healthy_rollout.yaml
    63    result:
    64      - name: restart
    65        disabled: false
    66      - name: resume
    67        disabled: true
    68      - name: abort
    69        disabled: true
    70      - name: retry
    71        disabled: true
    72      - name: promote-full
    73        disabled: true
    74  - inputPath: testdata/v0.9_aborted_rollout.yaml
    75    result:
    76      - name: restart
    77        disabled: false
    78      - name: resume
    79        disabled: true
    80      - name: abort
    81        disabled: true
    82      - name: retry
    83        disabled: false
    84      - name: promote-full
    85        disabled: false
    86  - inputPath: testdata/v0.9_aborted_bg_rollout.yaml
    87    result:
    88      - name: restart
    89        disabled: false
    90      - name: resume
    91        disabled: true
    92      - name: abort
    93        disabled: true
    94      - name: retry
    95        disabled: false
    96      - name: promote-full
    97        disabled: true
    98  - inputPath: testdata/aborted_bg_rollout.yaml
    99    result:
   100      - name: restart
   101        disabled: false
   102      - name: resume
   103        disabled: true
   104      - name: abort
   105        disabled: true
   106      - name: retry
   107        disabled: false
   108      - name: promote-full
   109        disabled: false
   110  actionTests:
   111  - action: resume
   112    inputPath: testdata/pre_v0.6_paused_rollout.yaml
   113    expectedOutputPath: testdata/pre_v0.6_not_paused_rollout.yaml
   114  - action: resume
   115    inputPath: testdata/has_pause_condition_rollout.yaml
   116    expectedOutputPath: testdata/no_pause_condition_rollout.yaml
   117  - action: abort
   118    inputPath: testdata/has_pause_condition_rollout.yaml
   119    expectedOutputPath: testdata/has_pause_condition_rollout_aborted.yaml
   120  - action: restart
   121    inputPath: testdata/rollout_not_restarted.yaml
   122    expectedOutputPath: testdata/rollout_restarted.yaml
   123  - action: retry
   124    inputPath: testdata/v0.9_aborted_rollout.yaml
   125    expectedOutputPath: testdata/retried_rollout.yaml
   126  - action: promote-full
   127    inputPath: testdata/v0.9_aborted_rollout.yaml
   128    expectedOutputPath: testdata/v0.9_promote-full_rollout.yaml
   129  - action: promote-full
   130    inputPath: testdata/aborted_rollout.yaml
   131    expectedOutputPath: testdata/promote-full_rollout.yaml