File tree Expand file tree Collapse file tree 4 files changed +7
-24
lines changed Expand file tree Collapse file tree 4 files changed +7
-24
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ const variants = {
20
20
"iast_FULL" : {
21
21
"APP_URL" : 'http://localhost:8085' ,
22
22
} ,
23
- "iast_INACTIVE" : {
24
- "APP_URL" : 'http://localhost:8086' ,
25
- } ,
26
- "iast_TELEMETRY_OFF" : {
27
- "APP_URL" : 'http://localhost:8087' ,
28
- } ,
29
- "iast_HARDCODED_SECRET_DISABLED" : {
30
- "APP_URL" : 'http://localhost:8088' ,
31
- } ,
32
23
}
33
24
34
25
export const options = function ( variants ) {
Original file line number Diff line number Diff line change @@ -24,8 +24,5 @@ start_server "profiling" "-javaagent:${TRACER} -Ddd.profiling.enabled=true -Dser
24
24
start_server " iast" " -javaagent:${TRACER} -Ddd.iast.enabled=true -Dserver.port=8083" " taskset -c 44 " &
25
25
start_server " iast_GLOBAL" " -javaagent:${TRACER} -Ddd.iast.enabled=true -Ddd.iast.context.mode=GLOBAL -Dserver.port=8084" " taskset -c 43 " &
26
26
start_server " iast_FULL" " -javaagent:${TRACER} -Ddd.iast.enabled=true -Ddd.iast.detection.mode=FULL -Dserver.port=8085" " taskset -c 42 " &
27
- start_server " iast_INACTIVE" " -javaagent:${TRACER} -Ddd.iast.enabled=inactive -Dserver.port=8086" " taskset -c 41 " &
28
- start_server " iast_TELEMETRY_OFF" " -javaagent:${TRACER} -Ddd.iast.enabled=true -Ddd.iast.telemetry.verbosity=OFF -Dserver.port=8087" " taskset -c 40 " &
29
- start_server " iast_HARDCODED_SECRET_DISABLED" " -javaagent:${TRACER} -Ddd.iast.enabled=true -Ddd.iast.hardcoded-secret.enabled=false -Dserver.port=8088" " taskset -c 39 " &
30
27
31
28
wait
Original file line number Diff line number Diff line change @@ -55,19 +55,21 @@ for app in *; do
55
55
for i in $( seq 1 $REPETITIONS_COUNT ) ; do
56
56
bash -c " ${UTILS_DIR} /../${type} /${app} /start-servers.sh" &
57
57
58
+ echo " Waiting for serves to start..."
58
59
if [ " ${app} " == " petclinic" ]; then
59
60
for port in $( seq 8080 8085) ; do
60
61
healthcheck http://localhost:$port
61
62
done
62
63
elif [ " ${app} " == " insecure-bank" ]; then
63
- for port in $( seq 8080 8088 ) ; do
64
+ for port in $( seq 8080 8085 ) ; do
64
65
healthcheck http://localhost:$port /login
65
66
done
66
67
fi
68
+ echo " Servers are up!"
67
69
68
70
(
69
71
cd ${app} &&
70
- bash -c " ${CPU_AFFINITY_K6}${UTILS_DIR} /run-k6-load-test.sh ${HEALTHCHECK_URL} 'pkill java'"
72
+ bash -c " ${CPU_AFFINITY_K6}${UTILS_DIR} /run-k6-load-test.sh 'pkill java'"
71
73
)
72
74
done
73
75
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eu
3
3
4
- url=$1
5
- command=$2
4
+ command=$1
6
5
exit_code=0
7
6
8
7
cleanup () {
@@ -13,16 +12,10 @@ cleanup() {
13
12
14
13
trap cleanup EXIT ERR INT TERM
15
14
16
- echo " Waiting for the HTTP server on ${url} to be up"
17
- while true ; do
18
- if [[ $( curl -fso /dev/null -w " %{http_code}" " ${url} " ) = 200 ]]; then
19
- break
20
- fi
21
- done
22
- echo " Server is up! Starting k6 load test, log is in ${LOGS_DIR} /k6.log..."
15
+ echo " Starting k6 load test, logs are recorded into ${LOGS_DIR} /k6.log..."
23
16
24
17
# run the k6 benchmark and store the result as JSON
25
18
k6 run k6.js --out " json=${OUTPUT_DIR} /k6_$( date +%s) .json" > " ${LOGS_DIR} /k6.log" 2>&1
26
19
exit_code=$?
27
20
28
- echo " k6 load test done!"
21
+ echo " k6 load test done !! !"
You can’t perform that action at this time.
0 commit comments