diff options
author | ms <ms@taler.net> | 2021-07-08 09:33:41 +0200 |
---|---|---|
committer | ms <ms@taler.net> | 2021-07-08 09:34:38 +0200 |
commit | ba995882ba1dcb4f761059065fd32e31c3ff1f8b (patch) | |
tree | fc7ec97cef481e71f7d1b2461e5d6626498d04eb /packages/taler-wallet-cli/src/integrationtests/helpers.ts | |
parent | ebfc79756f14b08ac3735b2746ac48fd3483b5e4 (diff) | |
download | wallet-core-ba995882ba1dcb4f761059065fd32e31c3ff1f8b.tar.xz |
introducing a health check for demo.taler.net.
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/helpers.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/helpers.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/helpers.ts b/packages/taler-wallet-cli/src/integrationtests/helpers.ts index aa9164c19..215c0629f 100644 --- a/packages/taler-wallet-cli/src/integrationtests/helpers.ts +++ b/packages/taler-wallet-cli/src/integrationtests/helpers.ts @@ -49,6 +49,7 @@ import { MerchantServiceInterface, MerchantPrivateApi, HarnessExchangeBankAccount, + WithAuthorization, } from "./harness.js"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; @@ -345,6 +346,7 @@ export async function makeTestPayment( order: Partial<ContractTerms>; instance?: string; }, + auth: WithAuthorization = {}, ): Promise<void> { // Set up order. @@ -353,11 +355,11 @@ export async function makeTestPayment( const orderResp = await MerchantPrivateApi.createOrder(merchant, instance, { order: args.order, - }); + }, auth); let orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { orderId: orderResp.order_id, - }); + }, auth); t.assertTrue(orderStatus.order_status === "unpaid"); @@ -385,7 +387,7 @@ export async function makeTestPayment( orderStatus = await MerchantPrivateApi.queryPrivateOrderStatus(merchant, { orderId: orderResp.order_id, instance, - }); + }, auth); t.assertTrue(orderStatus.order_status === "paid"); } |