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

Variables in skip statements are not case sensitive #522

Closed
emriver opened this issue Mar 17, 2022 · 0 comments · Fixed by #569
Closed

Variables in skip statements are not case sensitive #522

emriver opened this issue Mar 17, 2022 · 0 comments · Fixed by #569
Labels
Milestone

Comments

@emriver
Copy link

emriver commented Mar 17, 2022

The variable case in skip assertions are not managed.
We must currently use the variable lowercase version to make it works.

Example:

name: "Skip testsuite"
vars:
  Foo: true

testcases:
- name: dont-skip-this
  skip:
  - Foo ShouldBeTrue
  steps:
  - type: exec
    script: exit 0

- name: skip-this
  skip: 
    - foo ShouldBeTrue
  steps:
  - type: exec
    script: exit 0
 • Skip testsuite (test_skip.yml)
 	• dont-skip-this SKIPPED
 	• skip-this SUCCESS
@fsamin fsamin added the bug label Aug 2, 2022
@fsamin fsamin added this to the 1.1.0 milestone Aug 2, 2022
yesnault added a commit that referenced this issue Aug 11, 2022
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 ...
```

close #522
close #547
close #522

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
yesnault added a commit that referenced this issue Aug 12, 2022
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 ...
```

close #522
close #547
close #522

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants