Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 committed Oct 15, 2024
1 parent c0a0cb8 commit d851036
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/e2e/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,4 +461,13 @@ func TestTaskRunner(t *testing.T) {
require.Error(t, err, stdOut, stdErr)
require.Contains(t, stdErr, "\"HELLO\" does not match pattern \"^HELLO$\"")
})

t.Run("dry run", func(t *testing.T) {
t.Parallel()

stdOut, stdErr, err := e2e.Maru("run", "--dry-run", "--file", "src/test/tasks/tasks.yaml", "env-from-file")
require.NoError(t, err, stdOut, stdErr)
require.Contains(t, stdErr, "Dry-running \"echo $MARU_ARCH\"")
require.Contains(t, stdErr, "echo env var from calling task - $SECRET_KEY")
})
}

0 comments on commit d851036

Please sign in to comment.