chore: clean-up

This commit is contained in:
Vlad Stan 2024-02-28 22:35:55 +02:00
parent 8d8a0be854
commit fed0e2a827

View File

@ -42,25 +42,12 @@ jobs:
- name: run LNbits
env:
LNBITS_ADMIN_UI: true
SUPER_USER: bbbbbbbbbbbb4bbbbbbbbbbbbbbbaaaa
LNBITS_EXTENSIONS_DEFAULT_INSTALL: "watchonly, satspay, tipjar, tpos"
LNBITS_BACKEND_WALLET_CLASS: FakeWallet
run: |
echo "super_user=$SUPER_USER" >> $GITHUB_ENV
poetry run lnbits > logs/lnbits.log &
sleep 5
- name: topup wallet
run: |
wallet=$(curl --location 'http://localhost:5000/api/v1/account' --header 'Content-Type: application/json' --data '{ "name": "jmeter money user"}')
wallet_id=$(echo $wallet | jq -r .id)
user_id=$(echo $wallet | jq -r .user)
adminkey=$(echo $wallet | jq -r .adminkey)
curl --location --request PUT 'http://localhost:5000/admin/api/v1/topup/?usr=${{env.super_user}}' --header 'Content-Type: application/json' --data '{ "id": "'$wallet_id'", "amount": 2100000000}'
echo "adminkey=$adminkey" >> $GITHUB_ENV
echo "### adminkey=$adminkey"
- name: install jmeter
run: |
@ -88,7 +75,7 @@ jobs:
for file in $( ls $GITHUB_WORKSPACE/integration/*.jmx); do
echo "Running test with $file"
filename=$(basename "$file" ".jmx")
$GITHUB_WORKSPACE/apache-jmeter-5.6.2/bin/jmeter -n -t $file -l logs/$filename.log -e -o reports -JadminUserId=${{env.super_user}} -JadminWalletKey=${{env.adminkey}};
$GITHUB_WORKSPACE/apache-jmeter-5.6.2/bin/jmeter -n -t $file -l logs/$filename.log -e -o reports ;
error_count=$(cat jmeter.log | grep "summary =" | awk '{print $19}')
echo "Error count: $error_count"
if [[ "$error_count" == "0" ]]; then