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

     1  discoveryTests:
     2    - inputPath: testdata/suspended.yaml
     3      result:
     4        - name: resume
     5          iconClass: 'fa fa-fw fa-play'
     6        - name: terminate
     7          iconClass: 'fa fa-fw fa-stop'
     8    - inputPath: testdata/active.yaml
     9      result:
    10        - name: suspend
    11          iconClass: 'fa fa-fw fa-pause'
    12        - name: terminate
    13          iconClass: 'fa fa-fw fa-stop'
    14    - inputPath: testdata/completed.yaml
    15      result: []
    16    - inputPath: testdata/failed.yaml
    17      result: []
    18    - inputPath: testdata/terminated.yaml
    19      result: []
    20  
    21  actionTests:
    22    - action: resume
    23      inputPath: testdata/suspended.yaml
    24      expectedOutputPath: testdata/suspended-output.yaml
    25    - action: suspend
    26      inputPath: testdata/resumed.yaml
    27      expectedOutputPath: testdata/resumed-output.yaml
    28    - action: suspend
    29      inputPath: testdata/created.yaml
    30      expectedOutputPath: testdata/created-output.yaml
    31    - action: terminate
    32      inputPath: testdata/active.yaml
    33      expectedOutputPath: testdata/terminated.yaml
    34    - action: terminate
    35      inputPath: testdata/resumed.yaml
    36      expectedOutputPath: testdata/resumed-terminated-output.yaml
    37    - action: terminate
    38      inputPath: testdata/completed.yaml
    39      expectedOutputPath: testdata/completed.yaml
    40    - action: terminate
    41      inputPath: testdata/failed.yaml
    42      expectedOutputPath: testdata/failed.yaml