diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-25 16:06:53 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-25 16:06:53 +0100 |
commit | df9b07333145837c3cf629381f16b8b6ab062c4a (patch) | |
tree | ff44a27539c8a3c4bff81c0a5469b86c98481547 /src/auditor | |
parent | 006843b738a7d59d836d369a4b59481036dd2db0 (diff) |
fix generation code
Diffstat (limited to 'src/auditor')
-rwxr-xr-x | src/auditor/generate-auditor-basedb.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/auditor/generate-auditor-basedb.sh b/src/auditor/generate-auditor-basedb.sh index 0ca96be4f..65aae3134 100755 --- a/src/auditor/generate-auditor-basedb.sh +++ b/src/auditor/generate-auditor-basedb.sh @@ -77,7 +77,20 @@ echo "DONE" export MERCHANT_URL echo -n "Setting up merchant ..." -curl -H "Content-Type: application/json" -X POST -d '{"auth":{"method":"external"},"accounts":[{"payto_uri":"payto://iban/SANDBOXX/DE474361?receiver-name=Merchant43"}],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 3600000000},"default_pay_delay":{"d_us": 3600000000},"use_stefan":false}' "${MERCHANT_URL}management/instances" +curl -H "Content-Type: application/json" -X POST -d '{"auth":{"method":"external"},"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 3600000000},"default_pay_delay":{"d_us": 3600000000},"use_stefan":false}' "${MERCHANT_URL}management/instances" +echo " DONE" + +echo -n "Setting up merchant account ..." +FORTYTHREE="payto://iban/SANDBOXX/DE474361?receiver-name=Merchant43" +STATUS=$(curl -H "Content-Type: application/json" -X POST \ + "${MERCHANT_URL}private/accounts" \ + -d '{"payto_uri":"'"$FORTYTHREE"'"}' \ + -w "%{http_code}" -s -o /dev/null) + +if [ "$STATUS" != "200" ] +then + exit_fail "Expected 200 OK. Got: $STATUS" +fi echo " DONE" # delete existing wallet database |