Go to [ct](./ct) directory and execute:
1. pip3 install -r requirements.txt
-2. pytest *-or-* pytest -n <num|auto> (parallel execution)
\ No newline at end of file
+2. pytest *-or-* pytest -n <num|auto> (parallel execution)
PORT=$(echo ${ENDPOINT} | cut -d: -f3)
SVC_NAME=anna-adml-http
# Entrypoint arguments (ft/st):
-EXTRA_ARGUMENTS= # default is ft (function test: debug traces and traffic logs)
+ADML_ARGUMENTS="--services services.xml --cntDir counters --tmDir tm --cntRecordPeriod 60000 --logStatisticSamples none --reconnectionPeriod 10000 --httpServer 0.0.0.0:8000"
+#ADML_ARGUMENTS+=" --trace debug"
VARIANT=${1:-Release}
docker kill ${SVC_NAME} &>/dev/null
docker kill ${SVC_NAME}-debug &>/dev/null
- echo "Optimize for system test (disable traffic logs and set warning level for traces) (y/n) [n]:"
- read opt
- [ -z "${opt}" ] && opt=n
- [ "${opt}" = "y" ] && EXTRA_ARGUMENTS=st
-
- cid=$(docker run --rm -d -p ${PORT}:${PORT} --name ${cname} anna-adml-http:${version} ${EXTRA_ARGUMENTS} >/dev/null)
+ cid=$(docker run --rm -d -p ${PORT}:${PORT} --name ${cname} anna-adml-http:${version} ${ADML_ARGUMENTS} >/dev/null)
[ $? -ne 0 ] && exit 1
echo "Container id: ${cid} (deployed as '${cname}')"
fi