+ test disable-auditor + wire + drain
This commit is contained in:
parent
05cfa7a5b1
commit
ac2f406b5d
9 changed files with 386 additions and 193 deletions
|
|
@ -46,12 +46,16 @@ offline_tool enable-auditor \
|
|||
--output $b \
|
||||
--auditor_url "auditor.example.com" \
|
||||
--auditor_name "auditor example" \
|
||||
--auditor_pub $auditor_pub \
|
||||
--validity_start 0
|
||||
--auditor_pub $auditor_pub
|
||||
offline_tool upload --input $b --url $url"/management/auditors"
|
||||
echo "[OK] /management/auditors"
|
||||
|
||||
# todo test disable auditor
|
||||
offline_tool disable-auditor \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--auditor_pub $auditor_pub
|
||||
offline_tool upload --input $b --url $url"/management/auditors/"$auditor_pub"/disable"
|
||||
echo "[OK] /management/auditors/\$AUDITOR_PUB/disable"
|
||||
|
||||
offline_tool wire-fee \
|
||||
--master_key $master_key \
|
||||
|
|
@ -78,8 +82,31 @@ offline_tool global-fees \
|
|||
offline_tool upload --input $b --url $url"/management/global-fees"
|
||||
echo "[OK] /management/global-fees"
|
||||
|
||||
# todo test enable wire
|
||||
# todo test disable wire
|
||||
# todo test drain
|
||||
# todo test aml-officer
|
||||
# todo test partners
|
||||
offline_tool enable-wire \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--payto_uri "" \
|
||||
--bank_label "" \
|
||||
--priority 4
|
||||
offline_tool upload --input $b --url $url"/management/wire"
|
||||
echo "[OK] /management/wire"
|
||||
|
||||
offline_tool disable-wire \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--payto_uri ""
|
||||
offline_tool upload --input $b --url $url"/management/wire/disable"
|
||||
echo "[OK] /management/wire/disable"
|
||||
|
||||
# wtid (after base32 decode) must be 32bytes
|
||||
wtid="000G40R40M30E209185GR38E1W8124GK2GAHC5RR34D1P70X3RFG"
|
||||
offline_tool drain \
|
||||
--master_key $master_key \
|
||||
--output $b \
|
||||
--debit_account_section "" \
|
||||
--credit_payto_uri "" \
|
||||
--wtid $wtid \
|
||||
--date 0 \
|
||||
--amount $zero_euro
|
||||
offline_tool upload --input $b --url $url"/management/drain"
|
||||
echo "[OK] /management/drain"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue