taler wallet invocation

This commit is contained in:
Florian Dold 2020-08-14 16:18:58 +05:30
parent f581b54dfb
commit 8239a8bdd1
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 28 additions and 10 deletions

@ -1 +1 @@
Subproject commit c36107f80f136f0a512e62c7b992ea18218280bb Subproject commit f45d064d7986be3cac550761fa95fb3fdd89dab1

View File

@ -15,8 +15,6 @@
# #
set -eu set -eu
echo "Script disabled: taler-wallet-cli integration test known to fail right now!"
exit 1
trap "kill `jobs -p` &> /dev/null || true" ERR trap "kill `jobs -p` &> /dev/null || true" ERR
@ -134,6 +132,22 @@ echo " DONE"
echo "Running wallet" echo "Running wallet"
taler-wallet-cli testing integrationtest -e $EXCHANGE_URL -m $MERCHANT_URL -b $BANK_URL taler-wallet-cli testing integrationtest -e $EXCHANGE_URL -m $MERCHANT_URL -b $BANK_URL
taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'runIntegrationTest' \
"$(jq -n '
{
amountToSpend: "TESTKUDOS:5",
amountToWithdraw: "TESTKUDOS:10",
bankBaseUrl: $BANK_URL,
exchangeBaseUrl: $EXCHANGE_URL,
merchantApiKey: "sandbox",
merchantBaseUrl: $MERCHANT_URL,
}' \
--arg MERCHANT_URL "$MERCHANT_URL" \
--arg EXCHANGE_URL "$EXCHANGE_URL" \
--arg BANK_URL "$BANK_URL"
)"
echo "Shutting down services" echo "Shutting down services"
kill `jobs -p` kill `jobs -p`
wait wait

View File

@ -8,10 +8,6 @@
set -eu set -eu
echo "Script disabled: taler-wallet-cli integration test known to fail right now!"
exit 1
trap "kill `jobs -p` &> /dev/null || true" ERR trap "kill `jobs -p` &> /dev/null || true" ERR
# Exit, with status code "skip" (no 'real' failure) # Exit, with status code "skip" (no 'real' failure)
@ -183,9 +179,17 @@ taler-wallet-cli --wallet-db=$WALLET_DB run-until-done
# Now we buy something, only the coins resulting from recouped will be # Now we buy something, only the coins resulting from recouped will be
# used, as other ones are suspended # used, as other ones are suspended
taler-wallet-cli --wallet-db=$WALLET_DB testing test-pay \ taler-wallet-cli --no-throttle --wallet-db=$WALLET_DB api 'testPay' \
-m $MERCHANT_URL -k sandbox \ "$(jq -n '
-a "TESTKUDOS:1" -s "foo" {
amount: "TESTKUDOS:1",
merchantApiKey: "sandbox",
merchantBaseUrl: $MERCHANT_URL,
summary: "foo",
}' \
--arg MERCHANT_URL $MERCHANT_URL
)"
taler-wallet-cli --wallet-db=$WALLET_DB run-until-done taler-wallet-cli --wallet-db=$WALLET_DB run-until-done
echo "Purchase with recoup'ed coin (via reserve) done" echo "Purchase with recoup'ed coin (via reserve) done"