You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Variable value is not reflecting in the response when running with CST . I am new for this testing and follow the CST official instruction to check test case against the docker image, but not able to get variable value when running through CST.
Running the CST as:
container-structure-test test -i owasp/modsecurity-crs:4.0.0-nginx-alpine-202402261002 -c test.yaml
Hello
Variable value is not reflecting in the response when running with CST . I am new for this testing and follow the CST official instruction to check test case against the docker image, but not able to get variable value when running through CST.
container-structure-test test -i owasp/modsecurity-crs:4.0.0-nginx-alpine-202402261002 -c test.yaml
2 . root@kubernetes:~/CST# cat test.yaml
schemaVersion: 2.0.0
commandTests:
command: "/bin/sh"
args:
echo "PROJECT_MODE is: ${PROJECT_MODE}"
envVars:
value: "yes"
==================================
====== Test file: test.yaml ======
=== RUN: Command Test: Test
--- PASS
duration: 882.440353ms
stdout: PROJECT_MODE is:
PROJECT_MODE is:-
===================================
============= RESULTS =============
Passes: 1
Failures: 0
Duration: 882.440353ms
Total tests: 1
PASS
root@kubernetes:~/CST#
Please check and share steps (may be missing ) to get the variable value (PROJECT_MODE ) while running the CST .
The text was updated successfully, but these errors were encountered: