run-integration-test.rst (1015B)
1 .. ts:op:: runIntegrationTest 2 3 Run a simple integration test on a test deployment of the exchange 4 and merchant: withdraw ``amountToWithdraw`` via the corebank API, 5 spend ``amountToSpend`` at the merchant, and then exercise a refund: 6 withdraw a second, fixed amount (``18`` in the currency of 7 ``amountToSpend``), pay ``7``, refund ``6`` of it and pay another 8 ``3``. The operation waits for all involved transactions (including 9 refreshes) to reach a final state before returning. 10 11 **Request:** 12 13 The request must be an `IntegrationTestArgs` object. 14 15 **Response:** 16 17 On success, the result is an empty object. 18 19 **Side effects:** 20 21 Performs real withdrawals, payments and a refund at the test 22 deployment over the network. 23 24 .. ts:def:: IntegrationTestArgs 25 26 interface IntegrationTestArgs { 27 exchangeBaseUrl: string; 28 corebankApiBaseUrl: string; 29 merchantBaseUrl: string; 30 merchantAuthToken?: string; 31 amountToWithdraw: AmountString; 32 amountToSpend: AmountString; 33 }