Skip to content

Commit

Permalink
fix: We don't expect kwctl to output a json anymore
Browse files Browse the repository at this point in the history
Relates to
kubewarden/kubewarden-controller#838.

Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
  • Loading branch information
viccuad committed Aug 27, 2024
1 parent b9e7f59 commit fe78bc8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/tutorials/writing-policies/go/05-e2e-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ You can do this with the following tests:
echo "output = ${output}"

# settings validation failed
[ $(expr "$output" : '.*"valid":false.*') -ne 0 ]
[ $(expr "$output" : ".*Provided settings are not valid: These labels cannot be constrained and denied at the same time: Set{cc-center}.*") -ne 0 ]
}

Expand All @@ -186,7 +185,7 @@ You can do this with the following tests:
# this prints the output when one the checks below fails
echo "output = ${output}"

[ $(expr "$output" : '.*"valid":false.*') -ne 0 ]
# settings validation failed
[ $(expr "$output" : ".*Provided settings are not valid: error parsing regexp.*") -ne 0 ]
}
```
Expand Down

0 comments on commit fe78bc8

Please sign in to comment.