Commit Graph

268 Commits

Author SHA1 Message Date
Christian Grothoff
50671ad727
fix early base URL free 2020-12-10 16:15:59 +01:00
Christian Grothoff
9911b327ac
fix #6665 2020-12-09 07:25:26 +01:00
Christian Grothoff
70b0839644
implement new taler-auditor-offline tool 2020-12-06 00:05:45 +01:00
Christian Grothoff
6cceb617af
centralize (most) offline signing/verifying operations into offline_signatures.c 2020-12-04 20:29:18 +01:00
Christian Grothoff
9572337aed
more management API tests and bugfixes 2020-12-01 21:07:56 +01:00
Christian Grothoff
d3184e04e2
add logic to launch crypto helpers as part of tests 2020-12-01 19:47:01 +01:00
Christian Grothoff
06b8ed9ba8
start with exchange management test 2020-12-01 09:19:58 +01:00
Christian Grothoff
9ee7d665bd
add cmd to set wire fees / provide master_sig 2020-11-30 14:24:58 +01:00
Christian Grothoff
a3548f0efb
add command to add auditor's denomination signature 2020-11-30 11:51:42 +01:00
Christian Grothoff
6b434c626f
work on DB logic, add auditor_name to /management/auditors API 2020-11-29 16:21:10 +01:00
Christian Grothoff
a69079ef6c
add cmd to revoke exchange online signing key 2020-11-27 00:36:19 +01:00
Christian Grothoff
b1932df0ce
add new cmd to revoke denominations via HTTP API 2020-11-27 00:26:30 +01:00
Christian Grothoff
1e6091d1dd
cmd to add/del wire methods from list of accounts 2020-11-27 00:05:34 +01:00
Christian Grothoff
7ddd1da76d
cmd to sign keys with offline process 2020-11-26 22:55:41 +01:00
Christian Grothoff
98f5960411
cmd to del auditor 2020-11-26 22:54:33 +01:00
Christian Grothoff
1c1d4d9974
cmd to add auditor 2020-11-26 22:49:42 +01:00
Christian Grothoff
45d621f5ff
add -lgcov flag for coverage analysis 2020-11-12 22:25:59 +01:00
Christian Grothoff
8d312562bf
adjust ECs 2020-11-07 18:51:54 +01:00
Christian Grothoff
a79b67c726
log more nicely if authentication failed; do use new changepassword_unsafe to set bank pw -- and not others; do show stderr output of pybank in test cases 2020-10-30 22:17:37 +01:00
Christian Grothoff
3dd1b1c00f
fix pybank launch in tests 2020-10-03 16:13:06 +02:00
Christian Grothoff
4129b724a0
doxygen fixes, update ChangeLog, bump version 2020-10-03 16:08:01 +02:00
Christian Grothoff
2212ae330a
c89-style 2020-08-29 01:32:40 +02:00
Christian Grothoff
b382287567
memset only sets 1 byte 2020-08-29 01:32:15 +02:00
Christian Grothoff
0846ab93bc
doxygen fixes 2020-08-29 00:37:37 +02:00
Christian Grothoff
d8256207a1
fix #6480 2020-08-14 14:42:58 +02:00
Christian Grothoff
4e0b510438
extend tests to discover corner cases from #6478, fix code to actually work for those cases 2020-08-13 00:45:02 +02:00
Christian Grothoff
26f72f8572
fix refund handling: allow refund increases for the same coin 2020-08-12 13:02:59 +02:00
Christian Grothoff
a97983ddb1
indentation and logging fixes 2020-08-10 08:10:44 +02:00
Christian Grothoff
4fc5990320
bugfix 2020-08-02 19:14:33 +02:00
Jonathan Buchanan
efa567fbb4
trait for claim token 2020-07-29 01:26:36 -04:00
MS
566d9196a8
placing a Fixme 2020-07-24 15:18:17 +02:00
Jonathan Buchanan
c24a18e1a5
remove TALER_TESTING_cmd_admin_add_incoming_with_instance and TALER_EXCHANGE_refund2 2020-07-23 16:19:02 -04:00
Christian Grothoff
0e808b648a
fix misc typos 2020-07-22 23:56:52 +02:00
Florian Dold
93923c168d
remove refund_fee from refund confirmation message and signature 2020-07-22 19:29:27 +05:30
Christian Grothoff
6d52922c22
mmap() ToS/PP and pre-compute compressed replies (fixes #6199) 2020-07-21 21:27:08 +02:00
Christian Grothoff
80ba1c6ebe
merge flags into enum for GNUNET_DISK_pipe() API, fixing #6188 2020-07-18 00:44:59 +02:00
Christian Grothoff
3f9c464697
-fix bank start calls 2020-07-18 00:25:35 +02:00
Christian Grothoff
62963ae4b3
adapt to change in GNUNET_OS_start_process() API (#6188) 2020-07-17 22:37:04 +02:00
Christian Grothoff
b9f1384b52
avoid boolean flags, see #6188 2020-07-16 20:27:52 +02:00
Jonathan Buchanan
5658c4c52b
test retry transfer with same request_id 2020-07-15 20:41:45 -04:00
Christian Grothoff
90e756ddea
rename TALER_JSON_hash to TALER_JSON_contract_hash 2020-07-16 00:42:42 +02:00
Jonathan Buchanan
8147661f94
test for use-after-free crash when getting keys 2020-07-13 17:31:46 -04:00
Christian Grothoff
8ea4e50ac7
test coin-reuse with recoup as well 2020-07-10 23:17:55 +02:00
Christian Grothoff
7085cfef70
test coin_priv re-use with deposit and refresh, update handling of the error code client-side 2020-07-10 23:09:46 +02:00
Christian Grothoff
ddf95c491a
remove unused/unusable coin_sig, return correct coin_pub in recoup-reveal failure context 2020-07-10 22:33:04 +02:00
Christian Grothoff
7cf67b3094
this invariant does not actually hold, i.e. if there is a /recoup request for a coin we never saw 2020-07-10 21:27:06 +02:00
Christian Grothoff
af0a2c32a3
work on more testing for recoup-refresh 2020-07-09 23:27:16 +02:00
Jonathan Buchanan
f708e4d64c
made a uuid trait 2020-07-09 01:39:42 -04:00
Christian Grothoff
92ac6dd11a
implement new behavior in exchange httpd and libtalerexchange (for #6416) 2020-07-08 21:24:10 +02:00
Christian Grothoff
97dfbec081
add h_denom_pub to deposit signatures 2020-07-08 15:46:51 +02:00
Christian Grothoff
54e63f01df
fix #6408: make sure all timestamps are always rounded when they arrive over JSON, or 400 the requester; similarly don't tolerate anything else as client 2020-07-05 21:54:11 +02:00
Christian Grothoff
ed5b98a2c2
GNUNET_free_non_null is gone, use GNUNET_free 2020-07-05 16:58:43 +02:00
Christian Grothoff
49f466df40
move rewind command to exchange, add proper support for rewinding in batches, modify API to rewind to label 2020-07-05 16:50:16 +02:00
Christian Grothoff
b0311807ff
fix FIXME by exposing deposit permission signing in API instead of doing it inside of the testing logic 2020-07-05 16:50:15 +02:00
Christian Grothoff
c88af6df72
fix #6236 2020-07-05 16:50:15 +02:00
Jonathan Buchanan
e01bcbb2d4
traits for int64_t and json_t 2020-07-05 16:50:14 +02:00
Jonathan Buchanan
f2ec9c08b0
testing traits for uint32_t and GNUNET_TIME_Relative 2020-07-05 16:50:14 +02:00
Jonathan Buchanan
33e7b1f662
TALER_TESTING_cmd_admin_add_incoming_with_ref finds reserve_pub if reserve_priv doesn't exist 2020-07-05 16:50:14 +02:00
Christian Grothoff
532440acf8
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies 2020-07-05 16:50:12 +02:00
Christian Grothoff
d63cf1e40e
modify TALER_EXCHANGE_deposits_get() API to combine returned arguments into a struct (simplifies merchant later) 2020-07-05 16:50:12 +02:00
Christian Grothoff
099102dc57
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies 2020-07-05 16:49:23 +02:00
Christian Grothoff
cdbf3a05ae
modify TALER_EXCHANGE_deposits_get() API to combine returned arguments into a struct (simplifies merchant later) 2020-07-05 16:48:26 +02:00
Christian Grothoff
91e0debfbe
implement #6181 2020-07-05 16:45:22 +02:00
Christian Grothoff
78b13737bb
fix status code 2020-07-05 16:45:22 +02:00
Christian Grothoff
556085ac80
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies 2020-07-05 16:43:23 +02:00
Christian Grothoff
035c505c71
modify TALER_EXCHANGE_deposits_get() API to combine returned arguments into a struct (simplifies merchant later) 2020-07-05 16:42:37 +02:00
Christian Grothoff
70a8aca668
implement #6181 2020-07-05 16:37:42 +02:00
Christian Grothoff
0985dfd18f
fix status code 2020-07-05 16:37:41 +02:00
Christian Grothoff
5b01ccbfc6
sleep to ensure aggregator has work 2020-07-05 16:35:00 +02:00
Christian Grothoff
4f82885560
towards changing timestamp in deposit confirmation (tests failing) 2020-07-05 16:35:00 +02:00
Christian Grothoff
727b7b04f3
return fee as well 2020-07-05 16:35:00 +02:00
Christian Grothoff
4844023f69
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies 2020-07-05 16:35:00 +02:00
Christian Grothoff
cde71b7fe7
modify TALER_EXCHANGE_deposits_get() API to combine returned arguments into a struct (simplifies merchant later) 2020-07-05 16:35:00 +02:00
Christian Grothoff
77ab94eb68
update exchange API to return struct instead of lots of individual args for TALER_EXCHANGE_transfers_get() -- simplifies merchant later 2020-07-05 16:35:00 +02:00
Christian Grothoff
c31048b050
implement #6181 2020-07-05 16:34:59 +02:00
Christian Grothoff
5ac448738d
fix status code 2020-07-05 16:34:59 +02:00
Florian Dold
9c752b3d03
adjust LibEuFin binary names 2020-06-14 19:10:28 +05:30
Florian Dold
4f5df0c9e3
bank API test: make payto URI use receiver-name, according to standard 2020-06-13 20:50:05 +05:30
MS
599cba3105
nexus-exchange test.
give time to payments to settle, before requesting
/history/incoming and /history/outgoing.
2020-06-08 20:29:46 +02:00
MS
14b001fea0
place nexus/sandbox sqlite3 DBs under /tmp,
and fix their deletion before running the test.
2020-06-06 02:02:48 +02:00
MS
71eeb72b21
nexus-based tests
more preparation
2020-06-02 14:58:30 +02:00
MS
f6e1583016
launching nexus AND sandbox 2020-06-02 11:36:51 +02:00
MS
320c5fd740
Nexus-based tests.
Prefer the 'iban' method over the 'x-taler-bank',
regarding the payto:// URIs.  Tests are still using
the loopback bank connection, though.
2020-06-02 10:21:12 +02:00
MS
549f8a7c7b
nexus preparation 2020-06-01 16:03:03 +02:00
MS
7f14b23914
Nexus testing.
Up to the point where Nexus gets launched and
the Exchange user & bank connection get created.

The test fails because the bank connection of
type "loopback" is not implemented in the nexus
yet.
2020-06-01 14:17:05 +02:00
MS
45943c22c2
GET hello endpoint from Taler Facade. 2020-05-29 18:39:33 +02:00
MS
b8226abe63
comment 2020-05-29 17:59:50 +02:00
MS
58a956d889
nexus test: create the admin user 2020-05-27 15:03:19 +02:00
MS
704bff4c53
fix nexus invocation 2020-05-27 14:52:13 +02:00
Marcello Stanisci
04d4922d71
fix nexus-test return code
Returning zero, so as not to block the 'make check'
experience.  This is useful to check whether nexus-related
changes broke tests in a different place.
2020-04-17 15:30:24 +02:00
Marcello Stanisci
4f713b40e3
Prepare and launch Nexus for tests. 2020-04-17 15:30:24 +02:00
Christian Grothoff
d28f18f240
fix expected status code 2020-04-12 15:35:38 +02:00
Christian Grothoff
4b60d2540f
adapations related to GNUnet fixing #6149 2020-04-11 21:42:52 +02:00
Christian Grothoff
44272bf1ce
adapations to GNUnet API change 2020-04-11 21:06:30 +02:00
Christian Grothoff
88bb7f4428
fix FTBFS 2020-04-11 21:06:04 +02:00
Christian Grothoff
1b89e8380d
return signature from refund API 2020-04-10 16:49:54 +02:00
Christian Grothoff
84a40be0bc
fix #6170 and rest of #6164 2020-04-08 23:52:01 +02:00
Christian Grothoff
50bc862a68
adapt to new GNUnet sign API (#6164) 2020-04-08 18:18:20 +02:00
Christian Grothoff
bf8c5982a2
make exchange API more uniform in how information is returned 2020-04-05 22:05:38 +02:00
Christian Grothoff
299b4b78e0
return more error details for /wire and /keys to clients 2020-04-04 13:27:46 +02:00
Christian Grothoff
3404fda463
typos 2020-03-31 20:57:11 +02:00
Christian Grothoff
2b27d4ca8b
remove bogus warnings 2020-03-29 04:16:00 +02:00
Christian Grothoff
363e641f17
more files missing for dist target 2020-03-29 03:55:36 +02:00
Christian Grothoff
7f367110d0
more missing files for 'dist' 2020-03-29 03:41:12 +02:00
Christian Grothoff
8db48871d6
add missing files to dist 2020-03-29 03:22:55 +02:00
Christian Grothoff
89a4f5bba6
fix indentation 2020-03-29 01:58:38 +01:00
Christian Grothoff
eb32dd626a
fix leaks and bad RC logic wrt json reference copying 2020-03-28 23:32:02 +01:00
Christian Grothoff
677654f609
doxygen fix 2020-03-28 22:22:29 +01:00
Christian Grothoff
da1df35db3
reserve history amount includes fee, add it 2020-03-28 21:46:03 +01:00
Christian Grothoff
bc57f007e4
lookup in reverse order also inside of batch 2020-03-28 21:45:46 +01:00
Christian Grothoff
96c5cd4c42
do not re-use command label 2020-03-28 21:45:27 +01:00
Christian Grothoff
88957c55be
ignore report directories 2020-03-28 20:47:21 +01:00
Christian Grothoff
d5351641f8
implement #6049 2020-03-28 20:45:53 +01:00
Christian Grothoff
9d9b0e0e57
split recoup and revoke commands into two files for better readability 2020-03-28 20:42:20 +01:00
Christian Grothoff
2d297a1721
skip tests if ports are unavailable 2020-03-28 20:41:49 +01:00
Christian Grothoff
baaa8832b2
fix leak 2020-03-28 12:53:10 +01:00
Christian Grothoff
17cfbced1d
fix inconsistency in field naming 2020-03-27 17:32:39 +01:00
Christian Grothoff
f262d8abde
comment style fix 2020-03-27 16:46:20 +01:00
Florian Dold
e267cb985b
cover actual aggregation in exchange test 2020-03-27 20:47:30 +05:30
Florian Dold
1a15cd29e8
deposit command: create merchant key in a more appropriate place 2020-03-27 20:01:31 +05:30
Florian Dold
20933b3950
fix deposit idempotency test case 2020-03-27 19:54:16 +05:30
Florian Dold
6620a5b691
add test case (currently fails) for deposit idempotency 2020-03-27 19:14:55 +05:30
Christian Grothoff
d923f29144
removing warnings 2020-03-27 14:05:59 +01:00
Florian Dold
449e99bd51
test multiple transfers to same reserve 2020-03-27 18:05:21 +05:30
Florian Dold
0a047c155a
recoup test: cover recoup of fully spend coin 2020-03-27 16:52:42 +05:30
Florian Dold
e965659d36
recoup test: try recoup on non-revoked denomination 2020-03-27 16:35:37 +05:30
Florian Dold
a57fd6c4b3
fix test case (old one required recoup to *not* be idempotent 2020-03-23 12:28:08 +05:30
Christian Grothoff
9add4cf405
doxygen updates 2020-03-22 21:36:42 +01:00
Christian Grothoff
744322fdda
the big EC rename 2020-03-22 00:50:18 +01:00
Christian Grothoff
5ddedeeded
adjust tests to auditor changes 2020-03-21 17:37:06 +01:00
Christian Grothoff
36f4dbab3b
adjust tests to auditor changes 2020-03-21 17:36:01 +01:00
Christian Grothoff
68098bcade
fix test 2020-03-21 17:33:33 +01:00
Christian Grothoff
1b24e2f9bb
more statistics, make explicit table lock optional, can hurt performance badly 2020-03-20 18:38:57 +01:00
Florian Dold
6a46b13e80
make recoup idempotent and simplify response 2020-03-20 14:01:59 +05:30
Christian Grothoff
10c56bcea0
improving benchmarking logic, including more timings 2020-03-20 02:36:50 +01:00
Christian Grothoff
7a1c6769e4
enable using python bank with benchmark 2020-03-19 21:44:54 +01:00
Christian Grothoff
f76e7c46e6
make do_retry not retry forever in tests/benchmark 2020-03-19 19:33:20 +01:00
Christian Grothoff
749d9615d1
concurrency requires strtok_r 2020-03-19 19:17:56 +01:00
Christian Grothoff
15489275ba
make DB reset optional in API, use it in tests, but not in the benchmark 2020-03-19 17:56:23 +01:00
Florian Dold
278cec1fef
make refund test case fail to show broken implementation 2020-03-18 22:39:47 +05:30
Christian Grothoff
59a5b1ceb8
a first, untested stab at #6123, committing intermediate result that passes (existing) tests 2020-03-17 22:13:15 +01:00
Christian Grothoff
c17909d820
add cmd line option to restrict timetravel, minor code cleanup of keystate logic 2020-03-17 17:33:30 +01:00
Christian Grothoff
4322bbf2f1
move common logic to parse currency into libtalerutil 2020-03-15 20:08:38 +01:00
Christian Grothoff
f8095d7297
fix shutdown logic of test 2020-03-15 00:36:15 +01:00
Christian Grothoff
dc02821d8f
fix regression introduced by addition of 'revoke' field 2020-03-13 19:13:36 +01:00
Christian Grothoff
8d5f42fe0c
add separate commands for closer/transfer steps, modify test cases to use new commands 2020-03-12 10:53:49 +01:00
Christian Grothoff
6e3765d852
more careful use of TALER_JSON_get_error_code(), limit to cases where we expect to get one 2020-03-10 18:51:08 +01:00
Christian Grothoff
f32193aae2
minor code cleanup 2020-03-10 17:11:12 +01:00
Christian Grothoff
fc79dd233a
fix typo, remove obsolete option, initialize mpub 2020-03-10 15:28:54 +01:00
Christian Grothoff
a9b3c564bd
rename BANK_excecute_wire_transfer to BANK_transfer, improve error handling when curl_easy_init() fails 2020-03-03 17:14:00 +01:00