github.com/redhat-appstudio/e2e-tests@v0.0.0-20230619105049-9a422b2094d7/tests/load-tests/run.sh (about) 1 #!/bin/bash 2 export MY_GITHUB_ORG GITHUB_TOKEN 3 4 USER_PREFIX=${USER_PREFIX:-testuser} 5 # Max length of compliant username is 20 characters. We add "-XXXX" suffix for the test users' name so max length of the prefix is 15. 6 # See https://github.com/codeready-toolchain/toolchain-common/blob/master/pkg/usersignup/usersignup.go#L16 7 if [ ${#USER_PREFIX} -gt 15 ]; then 8 echo "Maximal allowed length of user prefix is 15 characters. The '$USER_PREFIX' length of ${#USER_PREFIX} exceeds the limit." 9 exit 1 10 else 11 go run loadtest.go \ 12 --component-repo "${COMPONENT_REPO:-https://github.com/devfile-samples/devfile-sample-code-with-quarkus}" \ 13 --username "$USER_PREFIX" \ 14 --users "${USERS_PER_THREAD:-50}" \ 15 -w \ 16 -l \ 17 -t "${THREADS:-1}" \ 18 --disable-metrics \ 19 --pipeline-skip-initial-checks="${PIPELINE_SKIP_INITIAL_CHECKS:-true}" && 20 DRY_RUN=false ./clear.sh "$USER_PREFIX" 21 fi