Commit Graph

29 Commits

Author SHA1 Message Date
Marcello Stanisci
6f579eb833
From payto:// to base url.
The conversion prepends http// or https://
depending on the port given beside the hostname.
If port is 433, then prepends https://, otherwise
prepends http://.

For now, the conversion was only necessary at
the /history bank lib.
2018-06-12 19:16:43 +02:00
Christian Grothoff
cb55c1a3af
Changing configuration structure to enable multiple accounts.
This change enables using multiple wire plugins at the same time.
Also, we now distinguish between the wire plugin (i.e. EBICS or
taler_bank) and the wire method (i.e. SEPA or x-taler-bank) that
the wire plugin is implementing.  The "taler-bank" wire method
was renamed from "test" to "x-taler-bank".

This also changes the format of the /wire response of the exchange,
as we now need to return multiple accounts.  Note that wire fees
are specified per wire method, not per wire account.

taler-exchange-keyup now automatically signs all of the /wire
responses in the location specified by the configuration.

Account identification in wire plugins was changed to use
payto://-URLs instead of method-specific JSON fields.  Signing
and validation of /wire responses was moved from each wire
plugin to a generic validation method in libtalerutil (crypto)
or libtalerjson (for JSON-formatted inputs).
Convenience methods were added to generate JSON for wire accounts
(salting, signing).

Various section and option names were adjusted to streamline the
configuration and make it more consistent overall.  Documentation
was updated as well.
2018-04-02 14:29:44 +02:00
Florian Dold
e318edb5e5
use url instead of uri consistently 2018-01-30 01:38:04 +01:00
Marcello Stanisci
22eae129a9
logging the /reject requester in tests as the deposit _credit_ account 2017-12-13 19:22:45 +01:00
Christian Grothoff
6623afa2a3
add testcase for #5077 (passes), start to reduce use of exchange's admin/add/incoming (#5172, more to come) 2017-12-10 16:02:03 +01:00
Christian Grothoff
16e2cd8d44
switch auth based on account number in test 2017-12-09 21:19:33 +01:00
Florian Dold
e75afb3164
use row_id instead of serial_id everywhere 2017-12-08 17:04:11 +01:00
Christian Grothoff
042616899f
largely fix #5077 2017-12-06 19:24:00 +01:00
Christian Grothoff
16b7c26605
modify fakebank API to allow arbitrary subjects, not just well-fromed WTIDs 2017-06-11 15:25:59 +02:00
Christian Grothoff
82cec70298
nicer error reporting 2017-05-16 11:05:01 +02:00
Christian Grothoff
7c28823caf
handle base32-wire transfer subject being followed by space+exchange base url in wire plugin and fakebank 2017-05-16 11:05:00 +02:00
Christian Grothoff
be3b891dbd
fix port numbers, no longer 8081 but on 8080; and box json array /history response in {data} as required by API 2017-05-16 11:05:00 +02:00
Christian Grothoff
5a0ee21b48
even more detailed /history error reporting 2017-05-11 11:22:42 +02:00
Christian Grothoff
474f374d2d
improve history error reporting by test 2017-05-10 16:55:14 +02:00
Marcello Stanisci
6bf006e636
removing use of bank's admin interface from bank-lib testcases 2017-05-10 15:50:53 +02:00
Marcello Stanisci
75f47e79e1
initial fixes to test exchange/bank interfacing 2017-05-10 15:50:41 +02:00
Christian Grothoff
18a020dd02
implement fakebank support (incl. tests) for #5005/#4964/4959 2017-05-07 21:11:56 +02:00
Christian Grothoff
ed1a4c08fd
add link to bug 2017-05-04 23:53:29 +02:00
Christian Grothoff
69fa9b41d1
start to add /history testing support to tests, fix some minor issues 2017-05-04 23:52:54 +02:00
Christian Grothoff
234dbcc7b7
switch bank api to new authentication method API 2017-05-04 15:18:43 +02:00
Christian Grothoff
405859d068
implement #4993 2017-05-04 11:19:00 +02:00
Christian Grothoff
397c718809
implementing #4921: add base URL to wire transfers 2017-03-02 06:26:12 +01:00
Marcello Stanisci
59c6856284 fixing #4594 2016-07-07 17:55:25 +02:00
Christian Grothoff
a7379930d2 turn libfakebank into libtalerfakebank so we can use it for testcases in the merchant 2016-06-08 11:35:28 +02:00
Christian Grothoff
910e01d1c1 be more careful with terminology 2016-05-04 05:38:29 +02:00
Christian Grothoff
f2b7e36269 finish tests for #4437 2016-05-03 06:15:09 +02:00
Christian Grothoff
5852baa7e9 fix testcase 2016-05-02 09:06:16 +02:00
Christian Grothoff
08ef15ec94 adding bank-lib test against fakebank (currently fails) -- towards addressing #4437 2016-05-02 08:54:05 +02:00
Christian Grothoff
31ad6aaf11 separate interpreter from the rest of the test logic 2016-05-02 08:46:17 +02:00