[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] branch master updated (739e6576 -> b015f76e)
From: |
gnunet |
Subject: |
[taler-wallet-core] branch master updated (739e6576 -> b015f76e) |
Date: |
Wed, 18 Aug 2021 19:58:48 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a change to branch master
in repository wallet-core.
from 739e6576 Test Anastasis with user privileges,
new e5d10137 Checking the start and delta params of Anastasis API.
new b015f76e check Anastasis API's (positive) delta param
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../test-libeufin-facade-anastasis.ts | 39 ++++++++++++++++++++++
1 file changed, 39 insertions(+)
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 e559d7e3..4afaacd3 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
@@ -125,6 +125,45 @@ export async function runLibeufinAnastasisFacadeTest(t:
GlobalTestState) {
t.assertTrue(txsList.length == 2);
t.assertTrue([txsList[0].subject, txsList[1].subject].includes("Anastasis
donation"));
t.assertTrue([txsList[0].subject, txsList[1].subject].includes("another
Anastasis donation"));
+ t.assertTrue(txsList[0].row_id == 1)
+ t.assertTrue(txsList[1].row_id == 2)
+
+ LibeufinSandboxApi.simulateIncomingTransaction(
+ libeufinServices.libeufinSandbox,
+ user01sandbox.ebicsBankAccount.label,
+ {
+ debtorIban: "ES3314655813489414469157",
+ debtorBic: "BCMAESM1XXX",
+ debtorName: "Mock Donor",
+ subject: "last Anastasis donation",
+ amount: "10.10", // Sandbox takes currency from its "config"
+ },
+ )
+
+ await LibeufinNexusApi.fetchAllTransactions(
+ libeufinServices.libeufinNexus,
+ user01nexus.localAccountName,
+ );
+
+ let txsLast = await LibeufinNexusApi.getAnastasisTransactions(
+ libeufinServices.libeufinNexus,
+ anastasisBaseUrl,
+ {delta: 5, start: 2},
+ user01nexus.userReq.username,
+ user01nexus.userReq.password,
+ );
+ console.log(txsLast.data.incoming_transactions[0].subject == "last Anastasis
donation");
+
+ let txsReverse = await LibeufinNexusApi.getAnastasisTransactions(
+ libeufinServices.libeufinNexus,
+ anastasisBaseUrl,
+ {delta: -5, start: 4},
+ user01nexus.userReq.username,
+ user01nexus.userReq.password,
+ );
+ t.assertTrue(txsReverse.data.incoming_transactions[0].row_id == 3);
+ t.assertTrue(txsReverse.data.incoming_transactions[1].row_id == 2);
+ t.assertTrue(txsReverse.data.incoming_transactions[2].row_id == 1);
}
runLibeufinAnastasisFacadeTest.suites = ["libeufin"];
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [taler-wallet-core] branch master updated (739e6576 -> b015f76e),
gnunet <=