Commit Graph

2438 Commits

Author SHA1 Message Date
Christian Grothoff
3ff5bad33e
fix memory leak: on repeated refresh reveal, we populated ev_sigs twice 2019-02-17 00:13:14 +01:00
Christian Grothoff
88e611d32b
add assertions in preparation of #5536 2019-02-16 23:52:48 +01:00
Christian Grothoff
9413537e6d
add missing comments 2019-02-16 23:52:12 +01:00
Christian Grothoff
ffd7a343a6
better error message 2019-02-16 23:49:40 +01:00
Christian Grothoff
1a542148a6
implement iterate_denomination_info() call 2019-02-16 21:38:12 +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
5bd7ede31f
fix ftbfs 2019-02-14 21:22:29 +01:00
Christian Grothoff
a98825675b
add option to be selective about dropping the exchange list 2019-02-14 14:23:16 +01:00
Christian Grothoff
e56ed85f4f
preparations for #5536 2019-02-14 13:41:46 +01:00
Marcello Stanisci
9ff3c2fce5
UX 2019-02-13 17:59:25 +01:00
Marcello Stanisci
bb44b9b475
Fix #5558. 2019-02-13 17:53:48 +01:00
Marcello Stanisci
e1ec7fc53c
new bank error code 2019-02-13 16:39:46 +01:00
Marcello Stanisci
c93c62e8d4
Improve UX 2019-02-12 19:03:25 +01:00
Marcello Stanisci
f22ef3e40c
Fix passing of delta. 2019-02-12 18:34:44 +01:00
Marcello Stanisci
8315e15123
Fix transactions list request. 2019-02-12 17:33:52 +01:00
Marcello Stanisci
82f01f111b
Getting transaction history 60% fixed. 2019-02-12 17:13:08 +01:00
Marcello Stanisci
8aa66c6023
Properly shutdown. 2019-02-12 16:06:37 +01:00
Marcello Stanisci
1f007d83fd
4692. Fix global return code. 2019-02-11 19:55:00 +01:00
Marcello Stanisci
398be48872
4692. UX 2019-02-11 19:52:20 +01:00
Marcello Stanisci
014ae3190b
4692. Putting logic to execute wire transfers. 2019-02-11 19:45:51 +01:00
Marcello Stanisci
ed10fc4acc
fix option names 2019-02-11 18:34:58 +01:00
Marcello Stanisci
066f03f95a
4692. Logic to ask for transaction history. 2019-02-11 18:28:14 +01:00
Marcello Stanisci
cd0b9e8e0a
load wire plugin 2019-02-10 18:35:05 +01:00
Marcello Stanisci
4b4a851ab5
fix log 2019-02-10 18:02:19 +01:00
Marcello Stanisci
865bd196ff
4692. Skeleton. 2019-02-10 17:56:52 +01:00
Marcello Stanisci
7286b5f15f
Starting #4692 2019-02-10 17:30:43 +01:00
Marcello Stanisci
5a4f5b81db
New error codes for bank. 2019-02-05 16:07:23 +01:00
Marcello Stanisci
71d0aab4e2
new error code 2019-01-31 15:09:57 +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
48b76fc089
fix auditordb 2019-01-30 15:28:52 +01:00
Marcello Stanisci
f68e7d0b07
Adding map: wire method name <--> plugin name. 2019-01-30 15:17:03 +01:00
Marcello Stanisci
452ab68423
fix DB 2019-01-29 22:05:23 +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
0b0b22c8db
Minor fix auditordb. 2019-01-28 16:50:15 +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
Marcello Stanisci
ece3a9bfdb
more logging 2019-01-16 19:42:40 +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
Marcello Stanisci
57ab9f9fdb
fix lib order. 2019-01-11 18:56:06 +01:00
Marcello Stanisci
5472702c31
Trying to reporduce the overlapping keys bug.
Recall: this bug used to mess the auditor sigs verification up.
2019-01-11 18:42:20 +01:00
Christian Grothoff
12123a7aed
towards fixing #5447 2019-01-10 16:20:15 +01:00
Christian Grothoff
2a01aaa917
more error codes for the merchant 2019-01-10 14:31:47 +01:00
Christian Grothoff
2143266a50
update tool to follow renaming of test -> taler-bank for the taler bank wire method 2019-01-10 13:57:12 +01:00
Christian Grothoff
34c8dc504b
do not crash if keystate fails to load 2019-01-10 13:56:49 +01:00
Marcello Stanisci
551562701e
Comment block. 2019-01-09 22:44:05 +01:00
Marcello Stanisci
b657910c19
Send SIGUSR1 for new keys reloading. 2019-01-09 17:48:44 +01:00
Marcello Stanisci
f311ffb3ba
Fix cherry picking.
Fix how the last denom issue date was set after
a redownloading of /keys.

Additionally, some styling fix also came along.
2019-01-09 15:54:34 +01:00
Marcello Stanisci
ec58188446
Generating additional DKs after serialized state import. 2019-01-09 13:45:47 +01:00
Marcello Stanisci
cf539c03c6
Fix segfault. 2019-01-08 22:39:27 +01:00
Christian Grothoff
feec0d49ab
fix #5484 2019-01-08 19:10:38 +01:00
Marcello Stanisci
93a6bbfc58
5136: fix multiple invocations of /keys callback.
Basically, we allow such a callback to be invoked only once.
Subsequent invocations (due to keys updates / whatever) cause
the callback to simply return in a do-nothing fashion.

Also: adding a /wire CMD - that uses /keys - after serilized
keys have been loaded.
2019-01-08 15:59:14 +01:00
Marcello Stanisci
00596e245e
Use serialized keys after /wire 2019-01-07 16:29:58 +01:00
Christian Grothoff
5c71c3e70e
likely fix fo #5136/c13438 2019-01-02 12:08:42 +01:00
Christian Grothoff
a6331c8eac
mark bug location 2019-01-02 11:54:52 +01:00
Marcello Stanisci
bc771beb23
Fix null master_sig in signkeys array elements. 2018-12-24 16:14:42 +01:00
Christian Grothoff
acb4b8321c
disambiguate error scenarios better 2018-12-22 12:37:47 +01:00
Christian Grothoff
7b10ad0851
fix numbering of EC codes, distinguish auditor DB store errors 2018-12-22 12:32:56 +01:00
Marcello Stanisci
5a6755b4b4
70% of testing serialization logic. 2018-12-21 22:05:42 +01:00
Marcello Stanisci
a65823fa32
fix "jump to invalid address" 2018-12-21 21:26:35 +01:00
Marcello Stanisci
ea80ab4f45
fix auditor key serialization 2018-12-21 21:15:41 +01:00
Marcello Stanisci
c1c242e3c7
Export new API 2018-12-21 20:59:27 +01:00
Marcello Stanisci
c420c340f2
fix segfault 2018-12-21 20:58:43 +01:00
Marcello Stanisci
67818b31fb
fix loglevel. 2018-12-21 20:13:53 +01:00
Marcello Stanisci
83577457a1
Disconnection from the exchange must be signaled. 2018-12-21 19:30:47 +01:00
Marcello Stanisci
dbbf25c41a
Fix JSON packaging 2018-12-21 19:30:01 +01:00
Marcello Stanisci
29ba75c5c2
indent 2018-12-21 15:33:01 +01:00
Marcello Stanisci
5f175fb398
typo 2018-12-21 15:32:29 +01:00
Marcello Stanisci
615d35407b
#5136.
Adding CMD that reconnects to a exchange, using
serialized keys.
2018-12-21 15:03:58 +01:00
Marcello Stanisci
df6eda3994
Provide test API for keys serialization. 2018-12-21 14:04:43 +01:00
Marcello Stanisci
7d8d8b2e8a
Remove *extra* verbosity. 2018-12-19 14:33:52 +01:00
Marcello Stanisci
9c82290a1a
#5459 2018-12-19 11:43:05 +01:00
Marcello Stanisci
b22b36a20b
Adapt auditor tests to #5284. 2018-12-18 18:25:59 +01:00
Marcello Stanisci
c3c1a10b6c
Remove useless code block. 2018-12-18 18:10:15 +01:00
Marcello Stanisci
93ff2d93cc
/withdraw: #5284. 2018-12-18 17:35:23 +01:00
Marcello Stanisci
e634c877e3
/wire: #5284 2018-12-18 17:05:26 +01:00
Marcello Stanisci
ce36e23a88
/track/*: #5284. 2018-12-18 16:46:16 +01:00
Marcello Stanisci
baf95b86e2
/refresh/* & /reserve/status: #5284. 2018-12-18 16:36:29 +01:00
Marcello Stanisci
2fc84dd07f
/refresh/*: #5284. 2018-12-18 16:27:50 +01:00
Marcello Stanisci
18b39a4597
/payback: #5284. 2018-12-18 16:16:26 +01:00
Marcello Stanisci
c38f521dd8
/deposit: #5284. 2018-12-18 16:09:17 +01:00
Marcello Stanisci
bb45ee0e8e
check-keys CMD: #5284. 2018-12-18 15:46:32 +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
Christian Grothoff
c2b6a10654
fastoption may not be supported by all curls 2018-12-14 09:44:15 +01:00
Christian Grothoff
bdd9ef74e6
fastoption may not be supported by all curls 2018-12-14 09:42:15 +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
Marcello Stanisci
ef58152c2b
5462: implementing the iteration. 2018-12-12 19:08:24 +01:00
Marcello Stanisci
00625791a2
Issue #5462.
Defining batch that makes->destroys->check a reserve.
Iterating the batch N times is the next step.
2018-12-12 14:57:21 +01:00
Marcello Stanisci
208ba0d4b2
/reserve/status CMD.
The logic extracts the reserve pub according to the
trait being a pub b64 encoding or a private key.
2018-12-12 14:45:25 +01:00
Marcello Stanisci
220e00696b
Traits.
Do not expose reserve priv trait if the user
created a reserve specifying the wire transfer
subject explicitly.
2018-12-12 13:42:00 +01:00
Marcello Stanisci
81d1b39343
Extend exchange-lib.
Adding simple function that returns the exchange's base URL.
2018-12-06 18:14:09 +01:00
Christian Grothoff
f224017505
fix a few more leaks 2018-11-25 15:38:58 +01:00
Christian Grothoff
85aa6d17c7
fix misc. memory leaks 2018-11-25 14:51:31 +01:00
Christian Grothoff
5052698cbc
getting test_auditor_api to pass 2018-11-25 14:40:03 +01:00
Marcello Stanisci
d0231022f2
Remove double closing of a "file stream". 2018-11-23 17:48:36 +01:00
Marcello Stanisci
793c57317a
Offer contract terms trait as a JSON object. 2018-11-20 13:32:02 +01:00
Marcello Stanisci
d3f73936ae
Skip test when wire-plugin is not loaded. 2018-11-19 23:52:24 +01:00
Marcello Stanisci
368f3a9a66
Minor changes to make tests pass/no-skip again. 2018-11-19 23:02:37 +01:00
Christian Grothoff
423f05970a
expand test logic for test_auditor_api, currently crashes, hence skipping for now 2018-11-19 06:51:02 +01:00
Christian Grothoff
a71756eee2
get auditor api test to pass (minimal version) 2018-11-18 14:41:27 +01:00
Christian Grothoff
428ecee396
do not crash if session is NULL 2018-11-18 13:56:41 +01:00
Christian Grothoff
f155aff749
add basic test configuration 2018-11-18 11:57:48 +01:00
Christian Grothoff
8facb1c8ca
add dbinit cmd 2018-11-18 11:53:37 +01:00
Christian Grothoff
bbbb0986c6
complete /deposit-confirmation test command 2018-11-17 19:23:39 +01:00
Christian Grothoff
5f365133cd
add list exchanges command 2018-11-17 18:14:11 +01:00
Christian Grothoff
e42f014cff
use more const in taler_testing_lib.h 2018-11-17 17:19:02 +01:00
Christian Grothoff
cf1ce47863
more work towards testing deposit confirmations 2018-11-17 16:11:47 +01:00
Christian Grothoff
4d058c4eb7
work towards testing auditor deposit-confirmation API 2018-11-17 15:15:51 +01:00
Christian Grothoff
17edb09f38
extend testing logic to setup handle for the auditor 2018-11-11 16:45:09 +01:00
Christian Grothoff
4885b899c7
add commands to run auditor 2018-11-11 16:12:21 +01:00
Christian Grothoff
6f0b652da6
fix TXL_curl_easy_get signatures 2018-11-11 15:49:53 +01:00
Christian Grothoff
debe0d05ad
improve auditor support in libtalertesting 2018-11-11 15:46:06 +01:00
Christian Grothoff
277f90bf2b
preparing test logic for new auditor requirements (incomplete) 2018-11-10 19:28:28 +01:00
Christian Grothoff
48ad5d2b5c
fix compiler warning due to possiblity of uninitialized values if enum is out-of-range 2018-11-10 17:41:07 +01:00