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

     1  discoveryTests:
     2    - inputPath: testdata/cronjob.yaml
     3      result:
     4        - name: create-job
     5          displayName: 'Create Job'
     6          iconClass: 'fa fa-fw fa-plus'
     7        - name: suspend
     8          iconClass: 'fa fa-fw fa-pause'
     9    - inputPath: testdata/cronjob-resumed.yaml
    10      result:
    11        - name: create-job
    12          displayName: 'Create Job'
    13          iconClass: 'fa fa-fw fa-plus'
    14        - name: suspend
    15          iconClass: 'fa fa-fw fa-pause'
    16    - inputPath: testdata/cronjob-suspended.yaml
    17      result:
    18        - name: create-job
    19          displayName: 'Create Job'
    20          iconClass: 'fa fa-fw fa-plus'
    21        - name: resume
    22          iconClass: 'fa fa-fw fa-play'
    23  
    24  actionTests:
    25    - action: create-job
    26      inputPath: testdata/cronjob.yaml
    27      expectedOutputPath: testdata/job.yaml
    28    - action: suspend
    29      inputPath: testdata/cronjob.yaml
    30      expectedOutputPath: testdata/cronjob-suspended.yaml
    31    - action: resume
    32      inputPath: testdata/cronjob-suspended.yaml
    33      expectedOutputPath: testdata/cronjob-resumed.yaml