Commit Graph

27 Commits

Author SHA1 Message Date
Christian Grothoff
385b3e77df
tighten formatting rules 2019-10-31 12:59:50 +01:00
Christian Grothoff
2696688aa3
fix compiler warnings 2019-10-29 20:57:18 +01:00
Florian Dold
eb55997084
re-format code 2019-08-25 16:18:24 +02:00
Marcello Stanisci
054fe2fb05
Address more warnings on types. 2019-04-12 15:56:48 +02:00
Marcello Stanisci
12aa516024
Fix history CMD loop, + make fakebank demonize.
This latter enable us to call the "check-service" CMD
against the Fakebank, instead of doing forced X seconds
sleep.
2019-04-11 00:23:28 +02:00
Marcello Stanisci
814522d21c
Time math macros. 2019-04-10 17:07:14 +02:00
Marcello Stanisci
75ac6b8063
minor fixes 2019-04-10 17:07:13 +02:00
Marcello Stanisci
f3d80b58f6
Make the API-agnostic iterator work.
This allows to build local histories to be matched
against the ones returned by the bank; in particular,
this version builds those stories regardless of /history
or /history-range being run.
2019-04-10 17:07:13 +02:00
Marcello Stanisci
ed0da1fdb3
/history-range.
Implementing the "lib" and "testing-lib" functions to use it.
2019-04-08 23:56:46 +02:00
Marcello Stanisci
7d980d2793
Comment.
Commenting about the impossibility of the current history
CMD to interpret the 'ordering' parameter of "/history" requests.
2019-03-21 18:43:24 +01:00
Marcello Stanisci
9c82290a1a
#5459 2018-12-19 11:43:05 +01:00
Marcello Stanisci
15c1a877c6
/history API semantics extended.
That API has now a new 'ordering' flag that lets the
client choose what ordering the results should have:
ascending or descending.

In particular, this change adapted the fakebank and
tests logic to such introduction.
2018-12-14 19:25:42 +01:00
Marcello Stanisci
c1a75b5b98
Adapt test to bank returning descending /history elements. 2018-12-13 19:44:58 +01:00
Christian Grothoff
e42f014cff
use more const in taler_testing_lib.h 2018-11-17 17:19:02 +01:00
Marcello Stanisci
b427b51595
polish bank history CMD 2018-07-02 12:04:32 +02:00
Marcello Stanisci
f033320300
Addressing #5291. 2018-06-27 16:49:23 +02:00
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
Marcello Stanisci
a57145e172
Commenting the "history" CMD 2018-05-28 22:49:50 +02:00
Marcello Stanisci
7a1146f147
Commenting the remaining "lib" traits. 2018-05-28 17:23:05 +02:00
Marcello Stanisci
b8ab8f01c7
address double-slash situation. 2018-04-23 15:59:48 +02:00
Christian Grothoff
202827ebda
merging Florian's changes with my wire changes 2018-04-15 12:20:00 +02:00
Florian Dold
df8ff68ed8
fix compiler warnings 2018-04-04 00:14:02 +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
Christian Grothoff
1ae2ba3d0a
fix compiler warnings related to use of %llu on uint64_t 2018-03-12 11:25:39 +01:00
Marcello Stanisci
6b7ad9c50d
indent 2018-02-28 15:05:31 +01:00
Marcello Stanisci
663f26a1a2
fix reject test command. 2018-02-27 22:55:18 +01:00
Marcello Stanisci
b593d416d6
Bank-lib tests, using the new (libraries-based) style. 2018-02-26 14:12:46 +01:00