Improve Troubleshooting support multi-datacenter in 24.06

This commit is contained in:
doufenghu
2024-06-18 09:37:54 +08:00
parent 32acc0f498
commit 5aabba83a0
8 changed files with 305 additions and 0 deletions

54
24.06/bin/function_test.sh Executable file
View File

@@ -0,0 +1,54 @@
#!/bin/bash
echo "
--folder Specify a single folder to run from a collection.
1.Query
2.Dataset
3.Database
4.Util
5.Troubleshooting
6.HOS
7.Knowledge Base File
"
BASE_DIR="$(dirname "$(pwd)")"
CONFIG_PATH="$BASE_DIR/config"
#COLLECTION_FILE=`find $BIN_PATH -name '*'function-test-collection.json|xargs| awk -F" " '{print $1}'`
#ENV_FILE=environment.json
FOLDER="--folder "
if [[ -n "$1" ]];then
case $1 in
1)
FOLDER+="Query"
;;
2)
FOLDER+="Dataset"
;;
3)
FOLDER+="Database"
;;
4)
FOLDER+="Util"
;;
5)
FOLDER+="Troubleshooting"
;;
6)
FOLDER+="HOS"
;;
7)
FOLDER+="Knowledge Base File"
;;
*)
FOLDER=""
esac
else
FOLDER=""
fi
echo $FOLDER
newman run $CONFIG_PATH/tsg-olap-function-test-collection.json -n 1 -e $CONFIG_PATH/environment.json -g $CONFIG_PATH/globals.json --verbose --delay-request 200 --timeout-script 10000 --timeout-request 300000 --timeout 3600000 --insecure \
$FOLDER