[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated: Anastasis facade: check trans
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated: Anastasis facade: check transactions number |
Date: |
Wed, 18 Aug 2021 12:16:58 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository wallet-core.
The following commit(s) were added to refs/heads/master by this push:
new 1d711d44 Anastasis facade: check transactions number
1d711d44 is described below
commit 1d711d441dd0c584f213abf9a97d685b82aafef8
Author: MS <ms@taler.net>
AuthorDate: Tue Aug 17 23:16:51 2021 -1100
Anastasis facade: check transactions number
---
.../test-libeufin-facade-anastasis.ts | 26 +++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git
a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-facade-anastasis.ts
b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-facade-anastasis.ts
index 0bcc9a0b..48460914 100644
---
a/packages/taler-wallet-cli/src/integrationtests/test-libeufin-facade-anastasis.ts
+++
b/packages/taler-wallet-cli/src/integrationtests/test-libeufin-facade-anastasis.ts
@@ -58,6 +58,18 @@ export async function runLibeufinAnastasisFacadeTest(t:
GlobalTestState) {
t.assertTrue(anastasisBaseUrl.startsWith("http://"));
t.assertTrue(anastasisBaseUrl.endsWith("/"));
+ await LibeufinNexusApi.fetchAllTransactions(
+ libeufinServices.libeufinNexus,
+ user01nexus.localAccountName,
+ );
+
+ // check if empty.
+ let txsEmpty = await LibeufinNexusApi.getAnastasisTransactions(
+ libeufinServices.libeufinNexus,
+ anastasisBaseUrl, {delta: 5})
+
+ t.assertTrue(txsEmpty.data.incoming_transactions.length == 0);
+
LibeufinSandboxApi.simulateIncomingTransaction(
libeufinServices.libeufinSandbox,
user01sandbox.ebicsBankAccount.label,
@@ -70,6 +82,18 @@ export async function runLibeufinAnastasisFacadeTest(t:
GlobalTestState) {
},
)
+ LibeufinSandboxApi.simulateIncomingTransaction(
+ libeufinServices.libeufinSandbox,
+ user01sandbox.ebicsBankAccount.label,
+ {
+ debtorIban: "ES3314655813489414469157",
+ debtorBic: "BCMAESM1XXX",
+ debtorName: "Mock Donor",
+ subject: "another Anastasis donation",
+ amount: "1", // Sandbox takes currency from its "config"
+ },
+ )
+
await LibeufinNexusApi.fetchAllTransactions(
libeufinServices.libeufinNexus,
user01nexus.localAccountName,
@@ -79,7 +103,7 @@ export async function runLibeufinAnastasisFacadeTest(t:
GlobalTestState) {
libeufinServices.libeufinNexus,
anastasisBaseUrl, {delta: 5})
- // FIXME: test more!
+ t.assertTrue(txs.data.incoming_transactions.length == 2);
}
runLibeufinAnastasisFacadeTest.suites = ["libeufin"];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-wallet-core] branch master updated: Anastasis facade: check transactions number,
gnunet <=