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
8d34b22aff
Content-encoding -> Content-Encoding.
...
So as to match the MHD_HTTP_HEADER_CONTENT_ENCODING macro.
2019-05-15 19:32:20 +02:00
Florian Dold
081280a88b
Create async scopes.
...
Log statements contain an async scope identifier, which allows to
correlate logs from the same request.
2019-05-10 20:11:29 +02:00
Florian Dold
b8a718f859
Remove non-working curl config
...
These headers are overwritten by GNUNET's curl context, setting them
here is useless.
2019-05-10 18:44:44 +02:00
Christian Grothoff
a16c32a474
add compression support for bodies of POST/PUT operations
2019-05-03 17:37:07 +02:00
Christian Grothoff
de9fdf860a
replace denom_pub with denom_pub_hash in exchange API to reduce bandwidth
2019-05-02 21:16:51 +02:00
Florian Dold
d821ecc3bb
Remove bogus ifdef for tcp fast open
2019-05-01 23:13:18 +02:00
ng0
e1cf1a48af
refactor for GNUnet_memcmp
2019-04-23 18:03:16 +00:00
ng0
ddea1bf407
refactor link_bc() for GNUnet_memcmp
2019-04-23 17:58:38 +00:00
Christian Grothoff
9c515d218b
use uint64_t for serial_id
2019-04-22 21:35:19 +02:00
Christian Grothoff
d82068a121
memcmp
2019-04-18 17:28:15 +02:00
Marcello Stanisci
c93e699d58
Still on making the compiler happy.
2019-04-12 16:20:24 +02:00
Marcello Stanisci
ba4ded3d6e
Re-enabling keys serialization test.
2019-04-11 17:42:58 +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
0d3758807b
Better calculation of # DKs
2019-04-11 00:23:28 +02:00
ng0
71acaff203
Merge branch 'master' of git.taler.net:exchange
2019-04-10 20:51:36 +00:00
ng0
b7b53da061
Refactor exchange_api_handle for GNUNET_memcmp
2019-04-10 20:48:39 +00:00
ng0
7bebb3c780
Refactor testing_api_cmd_payback for GNUNET_memcmp
2019-04-10 20:48:04 +00: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
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
ng0
1aa9d9fee6
Refactor lib/exchange_api_reserve.c for GNUNET_memcmp
2019-04-08 18:51:48 +00:00
ng0
8c591b4f1a
Refactor lib/exchange_api_common.c for GNUNET_memcmp
2019-04-08 18:48:33 +00:00
ng0
8e4df34156
Refactor for GNUNET_memcmp
2019-04-08 18:17:29 +00:00
ng0
cf62f519d2
refactor for GNUNET_memcmp
2019-04-08 14:58:21 +00:00
Christian Grothoff
8b3ee47165
fix #includes
2019-04-07 00:01:16 +02:00
Marcello Stanisci
5e16b87104
Improving the math.
2019-04-06 20:28:07 +02:00
Marcello Stanisci
301f287b2b
Test the big lookahead_sign, plus notes.
2019-04-06 20:17:41 +02:00
Marcello Stanisci
fdeb630160
Artificial 'now'.
...
Getting to the point where "/keys" discards expired
DKs due to the artificial 'now' given on the URL.
2019-04-06 12:55:13 +02:00
Marcello Stanisci
3e757cdeda
Inserting "now" argument into "/keys".
...
Also using this new logic from the cherry-pick test case.
2019-04-04 12:14:25 +02:00
Marcello Stanisci
ce71d83ad6
Provide testing API to fake now for "/keys".
2019-04-03 18:09:10 +02:00
Marcello Stanisci
dc7d74caea
fix keyup invocation.
2019-04-03 18:02:58 +02:00
Marcello Stanisci
6e6ce685ea
Provide API to fake now when requesting /keys.
2019-04-03 18:02:16 +02:00
Marcello Stanisci
35c064b937
Faking the time.
...
Cherry-pick tests now uses the now-faked version
of taler-exchange-keyup. Fails.
2019-04-03 16:07:04 +02:00
Marcello Stanisci
9d37f8e026
keyup:_use_ the timestamp given by the user.
2019-04-03 13:47:00 +02:00
Marcello Stanisci
bf1fc00a44
Bug annotation
2019-03-29 11:25:44 +01:00
Marcello Stanisci
e66da801c1
Temporarily exclude critical test.
2019-03-27 14:36:07 +01:00
Marcello Stanisci
3ccbae4982
Fix compilation (order matters)
2019-03-26 18:17:09 +01:00
Marcello Stanisci
861169d649
debug
2019-03-13 17:43:21 +01:00
Christian Grothoff
e235945df9
improve test case logging, fix process initialization of taler-auditor-exchange
2019-03-11 03:43:32 +01:00
Christian Grothoff
4dea098f54
actually disable 100 continue
2019-03-02 19:18:12 +01:00
Marcello Stanisci
3219c14674
typo
2019-02-20 21:07:39 +01:00
Marcello Stanisci
d194e59ef0
indentation
2019-02-19 18:22:04 +01:00
Marcello Stanisci
0db12efc4d
Align tests to latest change.
2019-02-19 17:42:39 +01:00
Marcello Stanisci
7c5a277b34
Make cherry-picking test more isolated.
2019-02-19 15:48:52 +01:00
Marcello Stanisci
916ed469c1
Put master key under isolated home.
2019-02-18 16:49:22 +01:00
Marcello Stanisci
71cf485f6c
Fix cherry pick test.
...
Provide dedicated home directory for better isolation.
2019-02-18 16:41:48 +01:00
Marcello Stanisci
3b4d761f3b
Addressing https://bugs.gnunet.org/view.php?id=5232#c13251
2019-02-18 15:50:49 +01:00
Christian Grothoff
ec3a4aad23
fix memory leak of rhistory, always allocate it on the heap
2019-02-17 00:22:28 +01:00
Christian Grothoff
70e7bc1184
fix memory leak if traits are requested multiple times per withdraw
2019-02-17 00:18:04 +01:00
Christian Grothoff
ffd7a343a6
better error message
2019-02-16 23:49:40 +01:00
Christian Grothoff
079207a426
check carefully, given that DKs expire, with the current configuration the correct number of expected keys is 8 here
2019-02-15 14:23:24 +01:00
Christian Grothoff
1ce69e6b2f
initialize start_number in fakebank
2019-02-15 12:41:26 +01:00
Christian Grothoff
a98825675b
add option to be selective about dropping the exchange list
2019-02-14 14:23:16 +01:00
Marcello Stanisci
7b6488d7d7
5447.
...
Add a dedicated taler-auditor CMD in the
batch dedicated to 5447.
2019-01-30 23:14:54 +01:00
Marcello Stanisci
537af4631d
Half baking #5447 .
2019-01-30 18:11:52 +01:00
Marcello Stanisci
c15dc4fdb1
fix conf
2019-01-29 15:50:24 +01:00
Marcello Stanisci
e3fe922d3d
debug
2019-01-28 17:23:12 +01:00
Marcello Stanisci
3dd987035b
Extend auditor testing-lib.
...
Add method to check whether a exchange (URL)
belongs to the list of audited exchanges.
2019-01-28 16:51:13 +01:00
Marcello Stanisci
64de8a0fe6
Fix /deposit-confirmation as per JSON encode/decode.
2019-01-28 16:48:27 +01:00
Marcello Stanisci
32a47928e9
Use PUT for /deposit-confirmation.
2019-01-28 13:26:06 +01:00
Marcello Stanisci
e070e8f65d
H_wire -> h_wire.
2019-01-25 19:45:23 +01:00
Marcello Stanisci
aa2d2fbf28
Check /version compatibility during tests.
2019-01-25 16:03:46 +01:00
Marcello Stanisci
220ce20d05
Revert explicit AUDITOR_connect at tests.
2019-01-25 15:57:27 +01:00
Christian Grothoff
222cac2762
make function static
2019-01-24 19:01:42 +01:00
Christian Grothoff
0913f346f8
fix /version test
2019-01-24 18:52:30 +01:00
Christian Grothoff
531b61cd43
adding separate test just for /verison API
2019-01-24 18:46:49 +01:00
Christian Grothoff
9de8b77625
adding separate test just for /verison API
2019-01-24 18:45:47 +01:00
Marcello Stanisci
649dd16401
Simplify things.
2019-01-24 18:01:07 +01:00
Marcello Stanisci
b2c47a74a9
Reproduce auditor assert fail, with less code executed.
2019-01-24 17:57:10 +01:00
Marcello Stanisci
d993085438
Reproduce auditor assert fail.
2019-01-24 17:54:33 +01:00
Marcello Stanisci
862ed50d7d
Auditor tests.
...
Fix double connection.
2019-01-24 17:53:10 +01:00
Marcello Stanisci
16002d2078
debug
2019-01-23 15:46:07 +01:00
Marcello Stanisci
d5ee6e1d07
Fix denoms comparison.
2019-01-22 19:04:19 +01:00
Marcello Stanisci
342f9f1ec8
Fix Makefiles.
2019-01-22 19:02:49 +01:00
Marcello Stanisci
4877cb07d3
5136.
...
Force creation of new DKs after serialized state has been imported.
2019-01-22 15:16:21 +01:00
Marcello Stanisci
dabcf7f42e
Logically grouping test commands.
2019-01-21 20:07:26 +01:00
Marcello Stanisci
782c8983d6
Fix exchange double-connect
2019-01-21 20:06:38 +01:00
Christian Grothoff
a1faf5df61
this is correct, we must start that task
2019-01-21 16:43:41 +01:00
Marcello Stanisci
5a889bfcda
Comment out buggy part
2019-01-21 15:50:11 +01:00
Marcello Stanisci
c9eab0f5a5
Adapt serialized reconnect to use public cert_cb.
2019-01-21 15:48:34 +01:00
Marcello Stanisci
544a8edc8c
Debug + comment block.
2019-01-21 15:48:06 +01:00
Marcello Stanisci
038d32c768
debug
2019-01-21 15:45:33 +01:00
Marcello Stanisci
5f6236ec71
Provide internal command advancer to batch-CMD.
2019-01-21 15:42:51 +01:00
Marcello Stanisci
08eafb1add
Export testing-cert_cb in the API.
...
This way, this very basic cert_cb can be reused
by other testing commands.
2019-01-21 15:40:07 +01:00
Marcello Stanisci
5a1594f63d
Add playground test case.
...
This test will help with transforming the
current cert_cb into one that handles serialized
reconnects too.
2019-01-17 17:29:06 +01:00
Marcello Stanisci
017ac1da57
Aesthetic change, plus comments.
2019-01-17 17:28:25 +01:00
Marcello Stanisci
8bc363227b
Remove useless comment.
2019-01-17 16:39:01 +01:00
Marcello Stanisci
148b546435
/keys API.
...
Adding method to override the last_denom value for a key set.
2019-01-17 16:37:16 +01:00
Marcello Stanisci
aeec67acaa
Comment block
2019-01-17 13:55:24 +01:00
Marcello Stanisci
448a57d81e
Extend tests.
...
Give a way to force redownload (= no cherry picking) all /keys.
2019-01-16 19:44:44 +01:00
Christian Grothoff
7cc7660cac
finixh #5447 implementation (more testing needed)
2019-01-13 17:47:15 +01:00
Christian Grothoff
91566ddee2
more code towards fixing #5447
2019-01-13 16:22:16 +01:00
Christian Grothoff
54fc83ee6b
fix cyclic dependency by combining exchange-lib and auditor-lib directories
2019-01-11 21:43:15 +01:00
Christian Grothoff
c626ccac51
second round of renamefest
2015-03-28 11:06:00 +01:00
Christian Grothoff
eae1896a4b
major rename-fest for more constent symbol names
2015-03-27 19:58:40 +01:00
Christian Grothoff
f73071bc62
fix #3638
2015-03-22 22:14:30 +01:00
Christian Grothoff
23bf1eee74
fix #3716 : make sure amount-API offers proper checks against overflow and other issues
2015-03-18 18:55:41 +01:00
Christian Grothoff
b5e69f22e9
-fix recently introduced ftbfs
2015-03-15 18:49:26 +01:00
Christian Grothoff
3cd1bef1ff
bringing copyright tags up to FSF standard
2015-02-08 00:17:40 +01:00
Christian Grothoff
477e68c506
bringing copyright tags up to FSF standard
2015-02-08 00:16:22 +01:00
Christian Grothoff
fae4fb8687
fixing ftbfs of testcase
2015-01-30 14:17:42 +01:00
Christian Grothoff
986a89ea4f
finish porting lib
2015-01-26 12:29:58 +01:00
Sree Harsha Totakura
ce9da7f183
Remove unnecessary dependency on libpq
2015-01-22 11:36:08 +01:00
Christian Grothoff
0430d6fb03
moving structs relevant for signatures into taler_signatures.h, splitting of private keys that are not in messages; moving test_hash_context to GNUnet
2015-01-09 18:18:59 +01:00