[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Integration tests.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Integration tests. |
Date: |
Wed, 30 Nov 2022 22:48:26 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new ad770abf Integration tests.
ad770abf is described below
commit ad770abf32e711e39b3af30089fa895387a5b82d
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 30 22:47:25 2022 +0100
Integration tests.
Send Pain.001 with unsupported currency.
---
nexus/src/test/kotlin/DownloadAndSubmit.kt | 35 +++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/nexus/src/test/kotlin/DownloadAndSubmit.kt
b/nexus/src/test/kotlin/DownloadAndSubmit.kt
index 3ab0841a..295a0ce4 100644
--- a/nexus/src/test/kotlin/DownloadAndSubmit.kt
+++ b/nexus/src/test/kotlin/DownloadAndSubmit.kt
@@ -240,7 +240,6 @@ class DownloadAndSubmit {
fun invalidPain001() {
withNexusAndSandboxUser {
withTestApplication(sandboxApp) {
- val conn = EbicsBankConnectionProtocol()
runBlocking {
// Create Pain.001 to be submitted.
addPaymentInitiation(
@@ -273,4 +272,38 @@ class DownloadAndSubmit {
}
}
}
+
+ @Test
+ fun unsupportedCurrency() {
+ withNexusAndSandboxUser {
+ withTestApplication(sandboxApp) {
+ runBlocking {
+ // Create Pain.001 to be submitted.
+ addPaymentInitiation(
+ Pain001Data(
+ creditorIban = getIban(),
+ creditorBic = "SANDBOXX",
+ creditorName = "Tester",
+ subject = "test payment",
+ sum = Amount(1),
+ currency = "EUR"
+ ),
+ transaction {
+ NexusBankAccountEntity.findByName(
+ "foo"
+ ) ?: throw Exception("Test failed")
+ }
+ )
+ var thrown = false
+ try {
+ submitAllPaymentInitiations(client, "foo")
+ } catch (e: EbicsProtocolError) {
+ if (e.ebicsTechnicalCode ==
EbicsReturnCode.EBICS_PROCESSING_ERROR)
+ thrown = true
+ }
+ assert(thrown)
+ }
+ }
+ }
+ }
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Integration tests.,
gnunet <=