Marcello Stanisci
554da10133
Fix bank test.
...
Getting wget to tolerate the 302 returned
by the bank as a response to "GET /".
2020-01-09 16:20:28 +01:00
Christian Grothoff
2fdc21f7d7
add missing configuration files to dist, eliminate warning on CONFLICT status code in test
2019-12-24 23:09:06 +01:00
Christian Grothoff
8d51dd18ed
do NOT reset DB in taler-bank-manage-testing, not healthy for auditor test
2019-12-23 12:32:37 +01:00
Christian Grothoff
e0cf954ad9
make exchange test suite work with current bank
2019-12-23 11:47:16 +01:00
Marcello Stanisci
d36700ed98
Fix auditordb.
...
Include (forgotten) table within the "drop_tables()" command.
2019-12-22 12:43:33 +01:00
Christian Grothoff
8af89ff197
misc release preparations: mostly fixing 'make dist' target
2019-12-20 20:10:46 +01:00
Christian Grothoff
36e15a501f
purge history-range API, no longer needed ( #5993 )
2019-12-15 18:16:33 +01:00
Christian Grothoff
745a48ef7c
fix double free in test
2019-12-15 13:11:38 +01:00
Christian Grothoff
1fc603800c
new is the new old: remove _new from tests
2019-12-14 23:19:51 +01:00
Christian Grothoff
cf31e54a2f
remove obsolete old tests ( #5758 )
2019-12-14 23:17:56 +01:00
Christian Grothoff
05a992445e
fix comments
2019-12-14 23:14:59 +01:00
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
Christian Grothoff
94f0d80cc1
turn teah_common.c into libtalercurl, fixes many ugly issues in build system
2019-10-26 20:05:19 +02:00
Christian Grothoff
8d11ac3388
alphabetical, please
2019-10-23 15:28:12 +02:00
Christian Grothoff
bda228232f
handle 406 nicely, can happen if insufficient balance
2019-10-06 12:31:11 +02:00
Christian Grothoff
b46fe9aa21
reindenting with uncrustify
2019-10-05 15:42:08 +02:00
Marcello Stanisci
303e92ca40
Less granularity for bank error codes ( #5787 ).
2019-09-29 14:17:25 +02:00
Christian Grothoff
ff0a206f9d
use single line
2019-09-15 13:13:29 +02:00
Christian Grothoff
fc19601efc
fix memory leaks in test case
2019-09-15 10:27:39 +02:00
Marcello Stanisci
e362c786b3
rename test
2019-09-11 00:46:34 +02:00
Marcello Stanisci
0889cedc59
purge old _new bank-lib test
2019-09-11 00:46:34 +02:00
Marcello Stanisci
4e27be9b6c
Unify "twisted" tests.
2019-09-11 00:46:34 +02:00
Marcello Stanisci
ef98a68ffa
fix bank-lib test.
2019-09-11 00:46:30 +02:00
Marcello Stanisci
6aa8adede0
fix makefile
2019-09-09 23:47:00 +02:00
Marcello Stanisci
e6dc2ce6c6
one source two binaries for testing.
2019-09-09 23:47:00 +02:00
Marcello Stanisci
447d1d78ad
Importing the "has_in_name" logic from MHD.
2019-09-09 23:47:00 +02:00
Marcello Stanisci
cb6aab590b
Provide method to launch Fakebank withOUT running tests.
2019-09-09 23:46:59 +02:00
Christian Grothoff
5fa4a0e7e1
fix warnings
2019-09-05 11:23:24 +02:00
Marcello Stanisci
1fc9595b2c
Calling bank legacy API in a test
2019-09-04 15:01:31 +02:00
Florian Dold
eb55997084
re-format code
2019-08-25 16:18:24 +02:00
Christian Grothoff
89bb407b4c
ign
2019-08-23 15:57:45 +02:00
Christian Grothoff
1a537490eb
fix test case clean up logic on skip
2019-07-22 11:42:19 +02:00
Christian Grothoff
21edd1e903
rename _new.c to just .c for tests
2019-06-08 21:41:12 +02:00
Marcello Stanisci
8800110b72
update twister conf
2019-06-07 14:52:00 +02:00
Christian Grothoff
96ccde10c8
initialize timestamp to obviously bogus value if /admin/add/incoming failed
2019-06-03 11:30:39 +02:00
Christian Grothoff
1ec2cb59b4
.argument field was never used, simplify logic
2019-06-03 11:27:03 +02:00
Christian Grothoff
01e8e930dc
add guard logic to check sizeof(value) is sufficient (should be -- size is 20, needed are 5, but still the new code is strictly safer even if slower)
2019-06-03 11:20:47 +02:00
Christian Grothoff
c241694ccb
check more return values
2019-06-03 10:44:57 +02:00
Christian Grothoff
7d142ad261
do not cut out &start= post-hum, just build the string right the first time
2019-06-03 00:26:53 +02:00
Christian Grothoff
f725593155
eliminate useless global variable TFH_handle_history_range_step
2019-06-03 00:25:11 +02:00
Marcello Stanisci
6096c1387c
teah_common.h -> taler_curl_lib.h
2019-05-24 16:49:25 +02:00
Marcello Stanisci
67dd3171d0
using legal lib names
2019-05-23 20:46:51 +02:00
Marcello Stanisci
5f6d706422
Export compressing routine.
2019-05-23 20:29:50 +02:00
Marcello Stanisci
95933156a6
Fix compression.
...
The "Content-Encoding: deflate" header is now added from
within the compression routine itself, and _not_ from the
"exchange handle".
This fixed the bank-lib functions as those do not use any
exchange handle, and therefore were wrongly sending compressed
bodies without adding the mentioned HTTP header.
2019-05-16 16:58:09 +02:00
Marcello Stanisci
e6c1d262a8
Never set HTTP headers before invoking libgnunetcurl.
2019-05-13 17:39:06 +02:00
Florian Dold
8868952735
bank-lib: fix context
2019-05-12 22:20:36 +02:00
Florian Dold
7fa67030a8
hack in bank-lib compression
2019-05-12 21:59:59 +02:00
Christian Grothoff
9c194f79a5
adapt to GNUnet API change
2019-05-02 22:25:47 +02:00
Christian Grothoff
9c515d218b
use uint64_t for serial_id
2019-04-22 21:35:19 +02:00
Marcello Stanisci
4c9c7482f9
Install taler-bank-transfer again. Needed by reserve topper.
2019-04-19 19:08:25 +02:00
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
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
11b3616355
Commenting the bank-lib "testing" header file.
2018-05-29 10:34:41 +02:00
Marcello Stanisci
5faa541d27
do not use hard coded database string
2018-05-29 10:27:41 +02:00
Marcello Stanisci
a57145e172
Commenting the "history" CMD
2018-05-28 22:49:50 +02:00
Marcello Stanisci
0579b1d9cb
Commenting the "reject" CMD
2018-05-28 22:20:21 +02:00
Marcello Stanisci
7a1146f147
Commenting the remaining "lib" traits.
2018-05-28 17:23:05 +02:00
Marcello Stanisci
40b27a8210
Tests flexibility.
...
It is now possible to launch the bank from
the testing-lib regardless of it being served
via HTTP or UWSGI.
2018-05-04 15:46:07 +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
2e65fa8366
fix comment
2018-04-06 00:36:30 +02:00
Florian Dold
df8ff68ed8
fix compiler warnings
2018-04-04 00:14:02 +02:00
Christian Grothoff
40a64e8f0c
fix post-merge FTBFS
2018-04-02 14:34:23 +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
Marcello Stanisci
3e191f3b08
still on gentle twister termination.
2018-03-26 21:43:25 +02:00
Marcello Stanisci
96a4aefcfd
gently terminating the twister.
2018-03-22 20:03:43 +01:00
Marcello Stanisci
dbf82fb736
fix makefile conditional.
2018-03-17 02:05:48 +01:00
Marcello Stanisci
2d321c24bc
adding "with_fakebank_twisted" tests.
2018-03-17 02:05:48 +01:00
Marcello Stanisci
b67ae83c75
add fakebank-version of twisted tests.
2018-03-17 02:05:48 +01:00
Marcello Stanisci
f819aef2f4
mini testing of twister.
...
Make one bank-lib test command pass through the twister.
2018-03-17 02:05:47 +01:00
Marcello Stanisci
5156de1195
fix return code.
2018-03-17 02:05:47 +01:00
Marcello Stanisci
c4770643e3
bank-lib twisted tests scaffold done.
2018-03-17 02:05:47 +01:00
Marcello Stanisci
53cf576e62
bank-lib's twisted tests scaffold
2018-03-17 02:05:47 +01: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
a3c7298515
fix log component name
2018-02-27 19:38:05 +01:00
Marcello Stanisci
ee699caca2
fix use of extern keyword.
2018-02-27 19:30:31 +01:00
Marcello Stanisci
b58d41939c
setting label for reject testing command.
2018-02-27 19:12:28 +01:00
Marcello Stanisci
b593d416d6
Bank-lib tests, using the new (libraries-based) style.
2018-02-26 14:12:46 +01:00
Florian Dold
e318edb5e5
use url instead of uri consistently
2018-01-30 01:38:04 +01:00
Christian Grothoff
bc7957f393
fix fakebank memory leak
2018-01-16 13:11:35 +01:00
Marcello Stanisci
346c351e5f
redefining/adding bank error codes
2017-12-22 21:22:57 +01:00
Marcello Stanisci
7e966aa2ae
store password in the right variable
2017-12-14 17:53:48 +01:00
Christian Grothoff
229907c6e2
implement taler-bank-transfer, fixes #5195
2017-12-14 15:33:10 +01:00
Christian Grothoff
0f5ef01dd3
nicer error reporting
2017-12-14 13:36:59 +01:00
Marcello Stanisci
22eae129a9
logging the /reject requester in tests as the deposit _credit_ account
2017-12-13 19:22:45 +01:00
Marcello Stanisci
9ea3145745
respect /reject API: credit_account -> account_number
2017-12-13 19:07:41 +01:00
Christian Grothoff
f93abc29d8
re-enable bank /reject testing now that bank implements it ( closes #5200 )
2017-12-13 17:14:52 +01:00
Christian Grothoff
cf9e5efbfb
use dual stack for fakebank
2017-12-12 19:23:16 +01:00
Christian Grothoff
878c68faf6
better diagnostics from fakebank
2017-12-10 21:19:30 +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
Christian Grothoff
1c3863f5fd
swap account numbers so reject can work with auth
2017-12-09 20:28:17 +01:00
Florian Dold
44aaaf9e93
set error code correctly, removes compiler warning
2017-12-08 17:07:20 +01:00
Florian Dold
e75afb3164
use row_id instead of serial_id everywhere
2017-12-08 17:04:11 +01:00
Florian Dold
4872b61781
bank uses row_id instead of serial_id now
2017-12-08 16:59:15 +01:00
Florian Dold
d0a80659a1
comment out bank test cases until implemented in bank
2017-12-08 15:46:15 +01:00
Christian Grothoff
042616899f
largely fix #5077
2017-12-06 19:24:00 +01:00
Marcello Stanisci
4da09561f4
missing conf from 'make dist'
2017-10-18 11:47:34 +02:00