Skip to content

Commit

Permalink
Add env_var params
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <[email protected]>
  • Loading branch information
peterzhuamazon committed Jun 21, 2024
1 parent 9df251e commit 79ded14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ fi

if [ "$SECURITY_ENABLED" = "true" ]
then
cmd="yarn cypress:run --env SECURITY_ENABLED=true,openSearchUrl=https://localhost:9200,AGGREGATION_VIEW=true,WAIT_FOR_LOADER_BUFFER_MS=3000,$ENV_VAR --browser \"$BROWSER_PATH\" --spec \"$TEST_FILES\""
cmd="yarn cypress:run --env SECURITY_ENABLED=true,openSearchUrl=https://localhost:9200,AGGREGATION_VIEW=true,WAIT_FOR_LOADER_BUFFER_MS=3000$ENV_VAR --browser \"$BROWSER_PATH\" --spec \"$TEST_FILES\""
echo "run security enabled tests: $cmd"
eval $cmd
else
cmd="$ENV_VAR yarn cypress:run --env SECURITY_ENABLED=false,$ENV_VAR --browser \"$BROWSER_PATH\" --spec \"$TEST_FILES\""
cmd="$ENV_VAR yarn cypress:run --env SECURITY_ENABLED=false$ENV_VAR --browser \"$BROWSER_PATH\" --spec \"$TEST_FILES\""
echo "run security disabled tests: $cmd"
eval $cmd
fi

0 comments on commit 79ded14

Please sign in to comment.