aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-libeufin-bank.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-11-13 13:02:32 +0100
committerFlorian Dold <florian@dold.me>2023-11-13 13:02:32 +0100
commit6ab8e563f24c7f4f5bc9c06f063e1f6319c53a88 (patch)
treec4ca88c6ccb22dc338f2c45c9432dab2459e5213 /packages/taler-harness/src/integrationtests/test-libeufin-bank.ts
parent69cac220a038c531eee4cb3bb12567e5f873584c (diff)
downloadwallet-core-6ab8e563f24c7f4f5bc9c06f063e1f6319c53a88.tar.xz
harness: fix libeufin-bank test
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-libeufin-bank.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-libeufin-bank.ts17
1 files changed, 11 insertions, 6 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-libeufin-bank.ts b/packages/taler-harness/src/integrationtests/test-libeufin-bank.ts
index fc0dc6eda..8f5cc8a35 100644
--- a/packages/taler-harness/src/integrationtests/test-libeufin-bank.ts
+++ b/packages/taler-harness/src/integrationtests/test-libeufin-bank.ts
@@ -162,14 +162,19 @@ export async function runLibeufinBankTest(t: GlobalTestState) {
const res = createEddsaKeyPair();
- const wireGatewayApiClient = new WireGatewayApiClient(wireGatewayApiBaseUrl, {
- auth: {
- username: exchangeBankUsername,
- password: exchangeBankPw,
+ // Not a normal client, but one with admin credentials,
+ // as /add-incoming is testing functionality only allowed by the admin.
+ const wireGatewayApiAdminClient = new WireGatewayApiClient(
+ wireGatewayApiBaseUrl,
+ {
+ auth: {
+ username: "admin",
+ password: "adminpw",
+ },
},
- });
+ );
- await wireGatewayApiClient.adminAddIncoming({
+ await wireGatewayApiAdminClient.adminAddIncoming({
amount: "TESTKUDOS:115",
debitAccountPayto: bankUser.accountPaytoUri,
reservePub: encodeCrock(res.eddsaPub),