taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit d9fc25c64224433caba247f2af4f70d6517eef5b
parent c350f6766bc423d3cb03e8b5ea3f3e4ce22c0551
Author: Florian Dold <florian@dold.me>
Date:   Wed, 24 Sep 2025 15:39:48 +0200

harness: try adding non-existing charity

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-donau-compat.ts | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/packages/taler-harness/src/integrationtests/test-donau-compat.ts b/packages/taler-harness/src/integrationtests/test-donau-compat.ts @@ -84,6 +84,19 @@ export async function runDonauCompatTest(t: GlobalTestState) { merchant.makeInstanceBaseUrl(), ); + { + // Check what happens if we try to add a donau service + // where the charity_id does not exist. + const postDonauResp = await merchantClient.postDonau({ + body: { + charity_id: 42, + donau_url: donau.baseUrl, + }, + token: merchantAdminAccessToken, + }); + console.log(j2s(postDonauResp)); + } + const orderResp = succeedOrThrow( await merchantClient.createOrder(merchantAdminAccessToken, { order: {