Commit Graph

183 Commits

Author SHA1 Message Date
Marcello Stanisci
c93e699d58
Still on making the compiler happy. 2019-04-12 16:20:24 +02:00
Marcello Stanisci
054fe2fb05
Address more warnings on types. 2019-04-12 15:56:48 +02:00
Marcello Stanisci
25f444a361
Address compilation warnings. 2019-04-11 00:33:01 +02:00
Marcello Stanisci
2025e11685
Address compilation warnings. 2019-04-11 00:24:57 +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
Christian Grothoff
123d5077e9
fix build trouble 2019-04-11 00:07:52 +02:00
Marcello Stanisci
66425084c1
Test /history-range after transactions happened. 2019-04-10 17:34:27 +02:00
Marcello Stanisci
5c49663309
Fixing twisted tests.
It has been observed that when a "twisted" test has "very little"
commands in the stack, it uses to fail since the proxied service
cannot be reached.

This commit puts some delay before the first command gets run
by the test interpreter; both in the form of a "blind" sleep, and
with a more structured 'wget' loop.
2019-04-10 17:07:14 +02:00
Marcello Stanisci
ca718b9f1f
minor fixes 2019-04-10 17:07:14 +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
e13a8902f0
Put /history[-range] logic in a dedicate file. 2019-04-08 02:37:46 +02:00
Marcello Stanisci
9fc380f7c8
Set range pointer. 2019-04-08 02:37:45 +02:00
Marcello Stanisci
e24e845b7d
debug message 2019-04-08 02:37:45 +02:00
Marcello Stanisci
704e0913c6
Fix compilation warnings, + enable polymorphic /history handler. 2019-04-08 02:37:45 +02:00
Marcello Stanisci
ddb8cdfa7a
Finishing /history-range implementation, untested. 2019-04-08 02:37:45 +02:00
Marcello Stanisci
3c66bb30b9
Gather /history implementation(s) in one point. 2019-04-08 02:37:45 +02:00
Marcello Stanisci
eca27d9d91
Finish abstract history builder. 2019-04-08 02:37:44 +02:00
Christian Grothoff
8b3ee47165
fix #includes 2019-04-07 00:01:16 +02:00
Marcello Stanisci
8655a40ad7
Half-baking #5666. 2019-04-05 19:31:01 +02:00
Marcello Stanisci
32cdef2b62
Making the bug /history[-range] args parser. 2019-04-05 16:13:56 +02:00
Marcello Stanisci
9914a9b301
Adapt "/history" tests to the new policy of 'start' defaults. 2019-03-21 18:47:35 +01:00
Marcello Stanisci
a3979b583f
"/history" 'start' default value.
The fakebank got adapted to the same logic from the
Python bank (with negative deltas, 'start' defaults to
UINT64_MAX, whereas with positives it defaults to 0).
2019-03-21 18:45:50 +01:00
Marcello Stanisci
341e08b3dd
Makefile.
Do not install, but get to compile the utility
command 'taler-fakebank-run'.
2019-03-21 18:44:53 +01: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
88f80b8b4b
Do not run unneeded test. 2019-03-18 15:29:41 +01:00
Marcello Stanisci
115ecfbc49
Fakebank debug 2019-03-14 18:48:11 +01:00
Marcello Stanisci
99fc27d403
Fakebank debugging.
Adding a CLI launcher for the bare fakebank service.
2019-03-13 16:24:19 +01:00
Christian Grothoff
1ce69e6b2f
initialize start_number in fakebank 2019-02-15 12:41:26 +01:00
Marcello Stanisci
342f9f1ec8
Fix Makefiles. 2019-01-22 19:02:49 +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
Marcello Stanisci
b3c31f8f59
Adapt test to bank returning descending /history elements. 2018-12-13 19:38:15 +01:00
Christian Grothoff
85aa6d17c7
fix misc. memory leaks 2018-11-25 14:51:31 +01:00
Christian Grothoff
e42f014cff
use more const in taler_testing_lib.h 2018-11-17 17:19:02 +01:00
Marcello Stanisci
60c533562c
Fix compiler warnings.
This reverts changes made in b0d00823eb.  The warnings
are fixed by changing the functions signatures, instead of casting
their pointers.
2018-10-22 16:59:09 +02:00
Marcello Stanisci
b0d00823eb
Fix compiler warnings. 2018-10-22 12:29:34 +02:00
Marcello Stanisci
2cbe471d5e
fix "twisted" test-suites. 2018-09-05 21:55:40 +02:00
Florian Dold
1541f2c2d6
fix test setup invocation 2018-08-19 11:41:58 +02:00
Florian Dold
ec08232b3f
increase listen backlog for fakebank 2018-08-19 11:37:42 +02:00
Christian Grothoff
7fb43dd2ae
make fakebank use epoll() on platforms where it is available 2018-08-19 11:20:35 +02:00
Florian Dold
eefc2e3ff4
fix all (?) wrong -l flags 2018-08-16 13:14:47 +02:00
Florian Dold
c30bb0008d
fix more wrong -l flags 2018-08-16 13:07:48 +02:00
Florian Dold
911b158bb8
fix some wrong -l flags 2018-08-16 13:03:30 +02:00
Marcello Stanisci
928714d226
Finish addressing #5332 2018-07-02 12:05:34 +02: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