-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: VENOM_PRESERVE_CASE default ON
It's now possible to read something like that : ```json { "foo": "bar", "FOO": "truc", } ``` and use these variables: ```yml - type: readfile path: the_file.json info: "{{.Result.ContentJSON.foo}}-{{.Result.ContentJSON.FOO}}" ``` Environment variable: VENOM_PRESERVE_CASE venom 1.1.x VENOM_PRESERVE_CASE="AUTO" is equals to VENOM_PRESERVE_CASE="OFF" venom 1.2.x VENOM_PRESERVE_CASE="AUTO" is equals to VENOM_PRESERVE_CASE="ON" venom 1.1 users, you can try: ```sh > export VENOM_PRESERVE_CASE="ON"; > venom run ... ``` Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
- Loading branch information
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Readfile testsuite | ||
|
||
testcases: | ||
- name: testcase-readfile | ||
steps: | ||
- script: 'echo "{\"foo\": \"foo\", \"FOO\": \"bar\"}"' | ||
info: "{{.result.systemoutjson.foo}}-{{.result.systemoutjson.FOO}}" | ||
assertions: | ||
- result.systemoutjson.foo ShouldEqual foo | ||
- result.systemoutjson.FOO ShouldEqual bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters