aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts
diff options
context:
space:
mode:
authorMS <ms@taler.net>2021-02-15 20:28:09 +0100
committerMS <ms@taler.net>2021-02-15 20:28:09 +0100
commitd384bd5c62198f1160119e60776350109a8ca7d3 (patch)
tree51f013844c6ecaf56f7e4389e1cae9c5a241ac7a /packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts
parent7a2ab04da8548d9b409df1ab183c785c7bde7e48 (diff)
downloadwallet-core-d384bd5c62198f1160119e60776350109a8ca7d3.tar.xz
TWG, payments reversal testing.
Up to the point where the payments to be reversed get created via the native Sandbox API, instead of the add-incoming API, that got recently removed from the Nexus implementation.
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts')
-rw-r--r--packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts14
1 files changed, 13 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts
index 2d5103dce..2ceb8be0e 100644
--- a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts
+++ b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-refund.ts
@@ -20,10 +20,13 @@
import { CoreApiResponse } from "@gnu-taler/taler-wallet-core";
import { CoinConfig, defaultCoinConfig } from "./denomStructures";
import { GlobalTestState } from "./harness";
+import { getRandomIban } from "./helpers";
import {
SandboxUserBundle,
NexusUserBundle,
launchLibeufinServices,
+ LibeufinNexusApi,
+ LibeufinSandboxApi,
} from "./libeufin";
/**
@@ -41,9 +44,18 @@ export async function runLibeufinRefundTest(t: GlobalTestState) {
);
const user02sandbox = new SandboxUserBundle("02");
- await launchLibeufinServices(
+ const libeufinServices = await launchLibeufinServices(
t,
[user01nexus, user02nexus],
[user01sandbox, user02sandbox],
);
+
+ await LibeufinSandboxApi.bookPayment(
+ libeufinServices.libeufinSandbox,
+ user02sandbox,
+ user01sandbox,
+ "not a public key",
+ "1",
+ "EUR",
+ );
}