libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit de7ae223bc8345f69688ac4622b05a362e8ff23e
parent 704db446040257f338bb731c478fd3fe388e09be
Author: MS <ms@taler.net>
Date:   Fri, 20 Nov 2020 22:44:35 +0100

Testing bank connection with name collision.

Diffstat:
Mintegration-tests/tests.py | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/integration-tests/tests.py b/integration-tests/tests.py @@ -314,3 +314,23 @@ def test_payment_double_submission(): ), [500] ) + +def test_double_connection_name(): + assertResponse( + post( + f"{N}/bank-connections", + json=dict( + name=NEXUS_BANK_CONNECTION, + source="new", + type="ebics", + data=dict( + ebicsURL=EBICS_URL, + hostID=EBICS_HOST, + partnerID=EBICS_PARTNER, + userID=EBICS_USER + ), + ), + auth=NEXUS_AUTH + ), + [406] # expecting "406 Not acceptable" + )