gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] branch master updated (d645176 -> 69e96d8)


From: gnunet
Subject: [libeufin] branch master updated (d645176 -> 69e96d8)
Date: Thu, 03 Dec 2020 16:35:17 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a change to branch master
in repository libeufin.

    from d645176  remove duplicate test
     new ff4e128  match against full expected JSON
     new 69e96d8  submodule

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:
 integration-tests/camt53-gls-style-0.json | 119 ++++++++++++++++++++++++++++++
 integration-tests/tests.py                |   5 +-
 parsing-tests                             |   2 +-
 3 files changed, 124 insertions(+), 2 deletions(-)
 create mode 100644 integration-tests/camt53-gls-style-0.json

diff --git a/integration-tests/camt53-gls-style-0.json 
b/integration-tests/camt53-gls-style-0.json
new file mode 100644
index 0000000..3b42ff9
--- /dev/null
+++ b/integration-tests/camt53-gls-style-0.json
@@ -0,0 +1,119 @@
+{
+  "transactions" : [ {
+    "amount" : "EUR:2.35",
+    "creditDebitIndicator" : "DBIT",
+    "status" : "BOOK",
+    "bankTransactionCode" : "PMNT-RRCT-ESCT",
+    "valueDate" : "2020-05-29",
+    "bookingDate" : "2020-05-29",
+    "accountServicerRef" : "2020052912023838000",
+    "batches" : [ {
+      "batchTransactions" : [ {
+        "amount" : "EUR:2.35",
+        "creditDebitIndicator" : "DBIT",
+        "details" : {
+          "debtor" : {
+            "name" : "TALER WALLET USER"
+          },
+          "debtorAccount" : {
+            "iban" : "GB33BUKB20201555555555"
+          },
+          "debtorAgent" : {
+            "bic" : "BYLADEM1WOR"
+          },
+          "creditor" : {
+            "name" : "Taler Exchange"
+          },
+          "creditorAccount" : {
+            "iban" : "DE00000000000000000000"
+          },
+          "endToEndId" : "NOTPROVIDED",
+          "unstructuredRemittanceInformation" : "Überweisung Test Nr. 1  
Referenz-Nummer 0FMRBH8FZYYMSQ2RHTYYGK2BV33JVSW6MTYCV7Y833GVNXFDYK10"
+        }
+      } ]
+    } ]
+  }, {
+    "amount" : "EUR:3.15",
+    "creditDebitIndicator" : "CRDT",
+    "status" : "BOOK",
+    "bankTransactionCode" : "PMNT-RRCT-ESCT",
+    "valueDate" : "2020-05-29",
+    "bookingDate" : "2020-05-29",
+    "accountServicerRef" : "2020052913163282000",
+    "batches" : [ {
+      "batchTransactions" : [ {
+        "amount" : "EUR:3.15",
+        "creditDebitIndicator" : "CRDT",
+        "details" : {
+          "debtor" : {
+            "name" : "TALER WALLET USER"
+          },
+          "debtorAccount" : {
+            "iban" : "DE00000000000000000000"
+          },
+          "debtorAgent" : {
+            "bic" : "BYLADEM1WOR"
+          },
+          "creditor" : {
+            "name" : "Taler Exchange"
+          },
+          "creditorAccount" : {
+            "iban" : "DE00000000000000000000"
+          },
+          "endToEndId" : "NOTPROVIDED",
+          "unstructuredRemittanceInformation" : "Überweisung Mai, Test Nr. 2"
+        }
+      } ]
+    } ]
+  }, {
+    "amount" : "EUR:1.79",
+    "creditDebitIndicator" : "CRDT",
+    "status" : "BOOK",
+    "bankTransactionCode" : "PMNT-RRCT-ESCT",
+    "valueDate" : "2020-05-29",
+    "bookingDate" : "2020-05-29",
+    "accountServicerRef" : "2020052913183564000",
+    "batches" : [ {
+      "batchTransactions" : [ {
+        "amount" : "EUR:1.79",
+        "creditDebitIndicator" : "CRDT",
+        "details" : {
+          "debtor" : {
+            "name" : "TALER EXCHANGE"
+          },
+          "debtorAccount" : {
+            "iban" : "DE00000000000000000000"
+          },
+          "debtorAgent" : {
+            "bic" : "BYLADEM1WOR"
+          },
+          "creditor" : {
+            "name" : "Taler Merchant"
+          },
+          "creditorAccount" : {
+            "iban" : "DE00000000000000000000"
+          },
+          "endToEndId" : "NOTPROVIDED",
+          "unstructuredRemittanceInformation" : "Überweisung Mai, Test Nr. 3"
+        }
+      } ]
+    } ]
+  }, {
+    "amount" : "EUR:9.96",
+    "creditDebitIndicator" : "DBIT",
+    "status" : "BOOK",
+    "bankTransactionCode" : "ACMT-OPCL-ACCC",
+    "valueDate" : "2020-05-31",
+    "bookingDate" : "2020-05-29",
+    "accountServicerRef" : "2020052921190458000",
+    "batches" : [ {
+      "batchTransactions" : [ {
+        "amount" : "EUR:9.96",
+        "creditDebitIndicator" : "DBIT",
+        "details" : {
+          "unstructuredRemittanceInformation" : "ABSCHLUSS PER 31.05.2020"
+        }
+      } ]
+    } ]
+  } ]
+}
diff --git a/integration-tests/tests.py b/integration-tests/tests.py
index 32b5598..262c85f 100755
--- a/integration-tests/tests.py
+++ b/integration-tests/tests.py
@@ -2,6 +2,7 @@
 
 import pytest
 import json
+from deepdiff import DeepDiff as dd
 from subprocess import check_call
 from requests import post, get, auth
 from time import sleep
@@ -354,4 +355,6 @@ def test_ingestion_camt53():
             auth=NEXUS_AUTH
         )
     )
-    assert(len(resp.json()["transactions"]) == 4)
+    with open("camt53-gls-style-0.json") as f:
+        expected_txs = f.read()
+    assert not dd(resp.json(), json.loads(expected_txs), ignore_order=True)
diff --git a/parsing-tests b/parsing-tests
index 805ed54..3b82538 160000
--- a/parsing-tests
+++ b/parsing-tests
@@ -1 +1 @@
-Subproject commit 805ed54ca6ba297b527e61551fb95ba31b467e4e
+Subproject commit 3b82538a81bc0b95108ee5b8e34f87549bedf313

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]