Skip to content

Commit

Permalink
fix: it
Browse files Browse the repository at this point in the history
Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault committed Nov 21, 2023
1 parent 9a411f7 commit 33f69dc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/04_sc_workflow_edit_scheduler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ testcases:
- script: "{{.cdsctl}} -f {{.cdsctl.config}} workflow show ITSCWRKFLW16 ITSCWRKFLW16-WORKFLOW --format json"
assertions:
- result.code ShouldEqual 0
info: "{{.result.systemoutjson.workflow_id}}"
vars:
workflow_id:
from: result.systemoutjson.workflow_id

- name: check hook from service after import
steps:
- script: "{{.cdsctl}} -f {{.cdsctl.config}} admin hooks list --filter workflow_id={{.get-imported-workflow.result.systemoutjson.workflow_id}} --format json"
- script: "{{.cdsctl}} -f {{.cdsctl.config}} admin hooks list --filter workflow_id={{.get-imported-workflow.workflow_id}} --format json"
assertions:
- result.systemoutjson.systemoutjson0.cron ShouldEqual '10 * * * *'

Expand All @@ -55,9 +59,13 @@ testcases:
- script: "{{.cdsctl}} -f {{.cdsctl.config}} workflow show ITSCWRKFLW16 ITSCWRKFLW16-WORKFLOW --format json"
assertions:
- result.code ShouldEqual 0
info: "{{.result.systemoutjson.workflow_id}}"
vars:
workflow_id:
from: result.systemoutjson.workflow_id

- name: check hook from service after update
steps:
- script: "{{.cdsctl}} -f {{.cdsctl.config}} admin hooks list --filter workflow_id={{.get-updated-workflow.result.systemoutjson.workflow_id}} --format json"
- script: "{{.cdsctl}} -f {{.cdsctl.config}} admin hooks list --filter workflow_id={{.get-updated-workflow.workflow_id}} --format json"
assertions:
- result.systemoutjson.systemoutjson0.cron ShouldEqual '20 * * * *'

0 comments on commit 33f69dc

Please sign in to comment.