diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-12-09 20:28:17 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-12-09 20:28:17 +0100 |
commit | 1c3863f5fd03efd0d86ec6831297b508742bb862 (patch) | |
tree | c5e9a17a4b97f6fdf3d76a14a6fd8a174b7ab97d /src/bank-lib | |
parent | 44aaaf9e933fc11998fae276ed2b958fdae265b7 (diff) |
swap account numbers so reject can work with auth
Diffstat (limited to 'src/bank-lib')
-rw-r--r-- | src/bank-lib/test_bank_api.c | 14 | ||||
-rw-r--r-- | 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, |