From 1c3863f5fd03efd0d86ec6831297b508742bb862 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 9 Dec 2017 20:28:17 +0100 Subject: [PATCH] swap account numbers so reject can work with auth --- src/bank-lib/test_bank_api.c | 14 +++++++------- src/bank-lib/test_bank_api_with_fakebank.c | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/bank-lib/test_bank_api.c b/src/bank-lib/test_bank_api.c index 0f575c514..b6160ef39 100644 --- a/src/bank-lib/test_bank_api.c +++ b/src/bank-lib/test_bank_api.c @@ -46,23 +46,23 @@ run (void *cls) .details.history.direction = TALER_BANK_DIRECTION_BOTH, .details.history.start_row_ref = NULL, .details.history.num_results = 5 }, - /* Move money from Exchange to Bank */ + /* Move money from Bank to Exchange */ { .oc = TBI_OC_ADMIN_ADD_INCOMING, .label = "deposit-1", .details.admin_add_incoming.exchange_base_url = "https://exchange.net/", /* bogus */ .details.admin_add_incoming.subject = "subject 1", .details.admin_add_incoming.expected_response_code = MHD_HTTP_OK, - .details.admin_add_incoming.credit_account_no = 1, - .details.admin_add_incoming.debit_account_no = 2, /* Ignored */ + .details.admin_add_incoming.credit_account_no = 2, + .details.admin_add_incoming.debit_account_no = 1, /* Ignored */ .details.admin_add_incoming.amount = "KUDOS:5.01" }, - /* Move money from Exchange to Bank */ + /* Move money from Bank to Exchange */ { .oc = TBI_OC_ADMIN_ADD_INCOMING, .label = "deposit-2", .details.admin_add_incoming.exchange_base_url = "https://exchange.net/", /* bogus */ .details.admin_add_incoming.subject = "subject 2", .details.admin_add_incoming.expected_response_code = MHD_HTTP_OK, - .details.admin_add_incoming.credit_account_no = 1, - .details.admin_add_incoming.debit_account_no = 2, /* Ignored */ + .details.admin_add_incoming.credit_account_no = 2, + .details.admin_add_incoming.debit_account_no = 1, /* Ignored */ .details.admin_add_incoming.amount = "KUDOS:5.01" }, /* Ask Exchange's incoming history */ { .oc = TBI_OC_HISTORY, @@ -71,7 +71,7 @@ run (void *cls) .details.history.direction = TALER_BANK_DIRECTION_CREDIT, .details.history.start_row_ref = NULL, .details.history.num_results = 5 }, - /* Ask Exchange's outgoing history, 5 records into the future?? */ + /* Ask Exchange's outgoing history, 5 records into the future */ { .oc = TBI_OC_HISTORY, .label = "history-2d", .details.history.account_number = 2, diff --git a/src/bank-lib/test_bank_api_with_fakebank.c b/src/bank-lib/test_bank_api_with_fakebank.c index 440851b15..b860669ce 100644 --- a/src/bank-lib/test_bank_api_with_fakebank.c +++ b/src/bank-lib/test_bank_api_with_fakebank.c @@ -113,8 +113,8 @@ run (void *cls) .label = "credit-for-reject-1", .details.admin_add_incoming.subject = "subject 3", .details.admin_add_incoming.expected_response_code = MHD_HTTP_OK, - .details.admin_add_incoming.credit_account_no = 1, - .details.admin_add_incoming.debit_account_no = 2, + .details.admin_add_incoming.credit_account_no = 2, + .details.admin_add_incoming.debit_account_no = 1, .details.admin_add_incoming.exchange_base_url = "https://exchange.net/", .details.admin_add_incoming.amount = "KUDOS:5.01" }, { .oc = TBI_OC_REJECT,