From 2b2fe2f7077ef29179214047691a68ca80c91792 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Fri, 21 Jul 2023 16:29:17 +0545 Subject: [PATCH] fix: var use in exec fixture --- fixtures/minimal/exec_fail.yaml | 9 ++++++--- fixtures/minimal/exec_pass.yaml | 12 ++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/fixtures/minimal/exec_fail.yaml b/fixtures/minimal/exec_fail.yaml index a682351d6..a7f6435ba 100644 --- a/fixtures/minimal/exec_fail.yaml +++ b/fixtures/minimal/exec_fail.yaml @@ -7,7 +7,10 @@ metadata: spec: interval: 30 exec: - - description: "exec dummy check" - name: exec-fail-check + - name: exec-fail-check + description: "exec dummy check" script: | - eche "hi there" + echo "hi there" + test: + expr: 'results.stdout == "hello"' + diff --git a/fixtures/minimal/exec_pass.yaml b/fixtures/minimal/exec_pass.yaml index 5baa0e162..a599ea016 100644 --- a/fixtures/minimal/exec_pass.yaml +++ b/fixtures/minimal/exec_pass.yaml @@ -5,9 +5,9 @@ metadata: spec: interval: 30 exec: - - description: "exec dummy check" - script: | - echo "hello" - name: exec-pass-check - test: - expr: 'results.Stdout == "hello"' \ No newline at end of file + - name: exec-pass-check + description: "exec dummy check" + script: | + echo "hello" + test: + expr: 'results.stdout == "hello"'