diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-08-06 13:25:54 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-08-06 13:25:54 +0200 |
commit | c602e11a3642fe9cd59a3526fb4f99912e275092 (patch) | |
tree | ea533c922f53addc25a985541cd82c786ad336d7 /src/testing/test_bank_api.c | |
parent | 6834b1290fa4bd9d6331329282f72f1f67b4d1bf (diff) | |
download | exchange-c602e11a3642fe9cd59a3526fb4f99912e275092.tar.xz |
-merge eufin branch (manually)
Diffstat (limited to 'src/testing/test_bank_api.c')
-rw-r--r-- | src/testing/test_bank_api.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/testing/test_bank_api.c b/src/testing/test_bank_api.c index d81fbe36e..cb4609ddf 100644 --- a/src/testing/test_bank_api.c +++ b/src/testing/test_bank_api.c @@ -37,6 +37,13 @@ #define CONFIG_FILE_PYBANK "test_bank_api_pybank.conf" #define CONFIG_FILE_NEXUS "test_bank_api_nexus.conf" + +/** + * Configuration file. It changes based on + * whether Nexus or Fakebank are used. + */ +const char *cfgfile; + /** * Bank configuration data. */ @@ -88,14 +95,24 @@ run (void *cls, "KUDOS:5.01", &bc.exchange_auth, bc.user42_payto), + /** + * This CMD doesn't care about the HTTP response code; that's + * because Fakebank and euFin behaves differently when a reserve + * pub is duplicate. Fakebank responds with 409, whereas euFin + * with 200 but it bounces the payment back to the customer. + */ TALER_TESTING_cmd_admin_add_incoming_with_ref ("credit-1-fail", "KUDOS:2.01", &bc.exchange_auth, bc.user42_payto, "credit-1", - MHD_HTTP_CONFLICT), + -1), TALER_TESTING_cmd_sleep ("Waiting 4s for 'credit-1' to settle", 4), + /** + * Check that the incoming payment with a duplicate + * reserve public key didn't make it to the exchange. + */ TALER_TESTING_cmd_bank_credits ("history-1c", &bc.exchange_auth, NULL, @@ -164,7 +181,6 @@ main (int argc, char *const *argv) { int rv; - const char *cfgfile; (void) argc; (void) argv; |