diff options
author | 2017-07-06 15:35:12 +0200 | |
---|---|---|
committer | 2017-07-06 15:35:12 +0200 | |
commit | 19dd4e461d1239754bd1a82e30f2a770c99a7f90 (patch) | |
tree | 28c57a5802c805dbbe10e760dff159e499fc9622 /moonv4/tests/21_slave_scalability/exec.sh | |
parent | 53a64609bd5b3f02a3bdf7d85030db8f2028cada (diff) |
Add test files for the evaluation
Change-Id: Ieceeef68ce701b913aaccd900218fbee896f48df
Diffstat (limited to 'moonv4/tests/21_slave_scalability/exec.sh')
-rw-r--r-- | moonv4/tests/21_slave_scalability/exec.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/moonv4/tests/21_slave_scalability/exec.sh b/moonv4/tests/21_slave_scalability/exec.sh new file mode 100644 index 00000000..e41e178b --- /dev/null +++ b/moonv4/tests/21_slave_scalability/exec.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +HOST=varuna + +TEST_SCRIPT="${MOON_HOME}/moon_interface/tests/apitests/set_authz.py" +POPULATE_SCRIPT=${MOON_HOME}/moon_interface/tests/apitests/populate_default_values.py + +RESULT_DIR=${MOON_HOME}/tests/21_slave_scalability/${HOST} +ARGS="--host=127.0.0.1 --port=38100 --limit=100 -t"; + +mkdir -p ${RESULT_DIR} 2>/dev/null + +CPT="01 02 03 04 05 06 07 08 09 10" + +SC=scenario/10/rbac_10_tenant_01.py +python3 ${POPULATE_SCRIPT} ${SC} + +for REQ in 01 02 03 04 05 06 07 08 09 10; +do + python3 ${TEST_SCRIPT} ${ARGS} --pdp pdp01 --request-per-second ${REQ} --write="${RESULT_DIR}/data_master_${REQ}.json" ${SC} + + ARGS="--host=127.0.0.1 --port=38101 --limit=100 -t"; + python3 ${TEST_SCRIPT} ${ARGS} --pdp pdp01 --request-per-second ${REQ} --write="${RESULT_DIR}/data_slave_${REQ}.json" ${SC} +done + |