Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: VENOM_PRESERVE_CASE default ON #570

Merged
merged 1 commit into from
Feb 14, 2023
Merged

Conversation

yesnault
Copy link
Member

It's now possible to read something like that :

{
  "foo": "bar",
  "FOO": "truc",
}

and use these variables:

- 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:

> export VENOM_PRESERVE_CASE="ON";
> venom run ...

Signed-off-by: Yvonnick Esnault [email protected]

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 <[email protected]>
@yesnault yesnault added this to the 1.2.0 milestone Aug 12, 2022
@sonarcloud
Copy link

sonarcloud bot commented Aug 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@kamil-muszynski-90poe
Copy link

Hello, I came across this PR after trying to figure out why I can't access my (camel-cased) json keys when asserting on result.systemoutjson.key... Maybe - as a part of this PR - it would be a good idea to mention in the documentation that keys are converted to lowercase by default?

@yesnault yesnault marked this pull request as ready for review February 13, 2023 15:56
@yesnault yesnault requested a review from fsamin February 14, 2023 09:37
@fsamin fsamin merged commit d1c091d into master Feb 14, 2023
@fsamin fsamin deleted the ye-preserve-case-1.2.x branch September 29, 2023 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants