test: Add 3 and update 5 files
This commit is contained in:
@@ -62,8 +62,11 @@ function test0() {
|
||||
fi
|
||||
CONFIG=$(cat "${CONFIG_PATH}")
|
||||
|
||||
# extract the first write token from the config
|
||||
WRITE_TOKEN=$(echo "$CONFIG" | jq -r '.write_tokens[0]')
|
||||
# randomly select one of the available write tokens from the config
|
||||
TOKEN_COUNT=$(echo "$CONFIG" | jq -r '.write_tokens | length')
|
||||
RANDOM_INDEX=$((RANDOM % TOKEN_COUNT))
|
||||
WRITE_TOKEN=$(echo "$CONFIG" | jq -r ".write_tokens[$RANDOM_INDEX]")
|
||||
echo "Using token index $RANDOM_INDEX out of $TOKEN_COUNT available tokens"
|
||||
|
||||
BASE_TAG="autotest"
|
||||
|
||||
|
Reference in New Issue
Block a user