Commit Graph

1187 Commits

Author SHA1 Message Date
Christian Grothoff
d34c6401b4 fixing #4470 2016-05-02 01:30:13 +02:00
Christian Grothoff
7fe7f66ffa update use to match new GNUnet scheduler API 2016-04-30 10:58:35 +02:00
Christian Grothoff
2c3dc44a20 Merge branch 'master' of ssh://taler.net:/var/git/exchange into HEAD 2016-04-28 22:07:04 +02:00
Florian Dold
e7e14f3009 misspelt variable 2016-04-26 21:49:48 +02:00
Florian Dold
d17629bf72 create directories 2016-04-26 21:46:44 +02:00
Florian Dold
ad40c23390 check_permissions for AF_UNIX 2016-04-26 14:16:35 +02:00
Florian Dold
bf0ee981ff typo 2016-04-25 21:30:54 +02:00
Florian Dold
34f9900f66 chmod instead of fchmod 2016-04-25 21:30:13 +02:00
Florian Dold
4656f7f883 missing free 2016-04-25 21:23:08 +02:00
Florian Dold
9488d72347 missing newline in log 2016-04-25 21:19:01 +02:00
Florian Dold
99f8434e50 typo 2016-04-25 21:18:00 +02:00
Florian Dold
5b4d2ed1be octal 2016-04-25 21:17:16 +02:00
Florian Dold
275296311f comment 2016-04-25 20:51:19 +02:00
Florian Dold
37266ffacd socket permissions 2016-04-25 20:36:47 +02:00
Florian Dold
edd704fa73 precheck for UDS 2016-04-25 20:25:05 +02:00
Florian Dold
57728835cf use GNUnet helpers 2016-04-25 20:22:06 +02:00
Florian Dold
c2c2b92ed4 implement serving exchange via unix domain sockets 2016-04-25 16:20:38 +02:00
Florian Dold
423565e74b fix CURRENCY section in test case 2016-04-25 13:47:59 +02:00
Christian Grothoff
47c3a489e2 presumably fixing #4455. A check did exist (see taler-exchange-httpd_deposit.c:225), but the two checks disagreed whether it was OK for the fee to be exactly equal to the amount. Now both checks allow the fee to be equal to the amount. 2016-04-25 00:31:23 +02:00
Christian Grothoff
fbbf35c87f fix #4438 2016-04-25 00:26:34 +02:00
Florian Dold
95e52cd2e8 make names related to wire plugins less generic 2016-04-22 19:09:55 +02:00
Florian Dold
9507c8c369 base config varname 2016-04-22 16:11:19 +02:00
Florian Dold
ad321624be add taler-arm wrapper 2016-04-22 15:17:02 +02:00
Christian Grothoff
21188ca703 Merge branch 'master' of ssh://taler.net:/var/git/exchange 2016-04-21 20:00:40 +02:00
Christian Grothoff
77e9e3a7f6 sketching out refund API implementation 2016-04-20 03:05:16 +02:00
Christian Grothoff
edd31c7415 implementing parsing of /refund requests 2016-04-20 02:50:52 +02:00
Christian Grothoff
f693e25793 introduce refund fee 2016-04-20 01:50:26 +02:00
Christian Grothoff
1d8da4bf84 unset env variable instead of setting to empty 2016-04-20 01:50:16 +02:00
Florian Dold
fda03a481f add missing file 2016-04-19 23:43:11 +02:00
Florian Dold
e01143daf3 move currency to taler section, create taler.conf 2016-04-19 23:41:07 +02:00
Florian Dold
f9d4a96715 move currency to taler section 2016-04-19 23:11:57 +02:00
Florian Dold
6d551b3073 unnecessary include 2016-04-19 14:44:53 +02:00
Florian Dold
37be942f48 do not include gnunet's platform header in our public headers 2016-04-19 13:54:59 +02:00
Christian Grothoff
8d503b17e3 move fake bank implementation to new library to re-use the code in upcoming testcases in preparation of fixing #4399 2016-04-17 23:14:23 +02:00
Christian Grothoff
4dcd70ac2b fix #4400: add test for amount_round wire plugin API 2016-04-17 22:46:49 +02:00
Christian Grothoff
a881e44944 update code to match new API 2016-04-17 20:03:57 +02:00
Christian Grothoff
7496a03978 replace bank_api_context with libgnunetcurl 2016-04-17 18:03:01 +02:00
Christian Grothoff
1ed567a14b replace exchange_api_context with libgnunetcurl 2016-04-17 17:45:15 +02:00
Christian Grothoff
05751b63aa Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-04-17 16:28:50 +02:00
Christian Grothoff
2c693bcb72 fix comments 2016-04-17 16:28:37 +02:00
Christian Grothoff
dda069f5f9 fix linker issue 2016-04-16 19:53:01 +02:00
Christian Grothoff
719b51b65d fix config parsing for dbinit tool 2016-04-16 19:49:53 +02:00
Christian Grothoff
a34891981c make all exchange-tools load configs properly like other Taler tools 2016-04-16 13:57:22 +02:00
Christian Grothoff
3abb3bc372 use user_config_file as well 2016-04-16 13:10:29 +02:00
Christian Grothoff
f552b7e4c0 use exchange section consistently for master_priv_file option 2016-04-16 12:46:01 +02:00
Christian Grothoff
fe36ba0062 fix taler-exchange-wire way of loading configuration 2016-04-16 12:44:45 +02:00
Christian Grothoff
ecc5b6791f fix taler-exchange-keyup way of loading configuration 2016-04-16 12:37:37 +02:00
Christian Grothoff
480b9cdf39 automatically set 'type' in taler-exchange-wire 2016-04-15 20:08:19 +02:00
Christian Grothoff
663363fc0e Fix #4229 2016-04-15 19:41:44 +02:00
Florian Dold
bcf4b7f724 gitignore 2016-04-15 15:41:11 +02:00
Christian Grothoff
74e237164c Merge branch 'master' of ssh://taler.net:/var/git/exchange 2016-04-15 15:00:26 +02:00
Christian Grothoff
ebf049a8c2 add missing rollback 2016-04-15 15:00:24 +02:00
Florian Dold
3098c0a9e0 new taler-bank-manage invocation 2016-04-14 01:19:32 +02:00
Florian Dold
c234a8bed8 Create taler-config wrapper around gnunet-config
The wrapper uses LD_PRELOAD to make sure that paths are adjusted
for taler.
2016-04-13 15:58:02 +02:00
Florian Dold
9f9d41dd06 set currency to default bank currency for test case 2016-04-11 23:58:02 +02:00
Florian Dold
7e648c042c account numbers start at 1 2016-04-11 23:44:09 +02:00
Florian Dold
21ea107cc0 newline 2016-04-11 21:10:20 +02:00
Christian Grothoff
cb987575c1 check exchange signature on /wire/deposit response (#4135) 2016-04-11 20:16:58 +02:00
Christian Grothoff
ce9dd3365d implement signing of /wire/deposit replies (#4135) 2016-04-11 19:54:54 +02:00
Christian Grothoff
3a5902b590 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-04-11 19:27:26 +02:00
Christian Grothoff
a2bb69910a refactor /wire/deposit response generation to do all JSON logic in httpd_responses.c 2016-04-11 19:27:18 +02:00
Christian Grothoff
a7f2496795 adding wire plugin tests, resolving #4357 2016-04-11 15:59:24 +02:00
Christian Grothoff
58373f2a92 adding new test, still failing 2016-04-11 13:16:12 +02:00
Christian Grothoff
aee99021a7 reduce unnecessary #includes 2016-04-11 13:02:58 +02:00
Christian Grothoff
af91cd87d6 use libtalerwire instead of duplicating logic 2016-04-11 13:01:20 +02:00
Christian Grothoff
b018d4d5b0 implementing #4357, but test missing 2016-04-11 02:37:56 +02:00
Christian Grothoff
30d66bcebc fixing #4386: use more sane configuration and data file structure 2016-04-10 17:10:20 +02:00
Christian Grothoff
5fb65f59b2 add testcase for profiteering from rounding, also passes, this concludes #4141 2016-04-10 14:28:54 +02:00
Christian Grothoff
71107a7b3d expanding aggregator testcase 2016-04-10 02:52:46 +02:00
Christian Grothoff
6e90ef9f4a implement selection by wire_deadline as documented 2016-04-10 02:43:09 +02:00
Christian Grothoff
bf92166be3 do not clear result until end of iteration over results 2016-04-10 02:14:07 +02:00
Christian Grothoff
0dee91e014 changing code to meet latest change in GNUNET_SCHEDULER API 2016-04-10 00:57:20 +02:00
Christian Grothoff
df893df505 fix make dist rules 2016-04-09 01:56:24 +02:00
Christian Grothoff
43e9ac9471 recent changes to GNUNET_OS-IPK logic make plugin.c obsolete 2016-04-07 23:06:05 +02:00
Christian Grothoff
e00370d4f5 removing duplication of --help logic 2016-04-07 22:52:23 +02:00
Christian Grothoff
d986269dae for #4374 2016-04-07 11:09:30 +02:00
Christian Grothoff
148dda09d4 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-04-07 09:33:04 +02:00
Christian Grothoff
8df75214f4 install data and plugins in taler-exchange, not taler 2016-04-07 09:30:58 +02:00
Christian Grothoff
d28d1e82f3 install configuration template file in share/taler/config.d/ 2016-04-07 09:27:55 +02:00
Christian Grothoff
a96c7177aa get simple aggregation test to pass 2016-04-06 12:04:51 +02:00
Christian Grothoff
aee021aa37 update ignore file, fix compiler warning 2016-04-06 11:27:51 +02:00
Christian Grothoff
07541d319c address 'shutdown' TODO in taler-exchange-aggregator 2016-04-06 11:24:33 +02:00
Christian Grothoff
4977a3eb8f address 'global_ret' simplification TODO 2016-04-06 10:34:42 +02:00
Christian Grothoff
ad8351c912 fix iterate_matching_deposits(), LIMIT does not work with variables in Postgres (#4360) 2016-04-06 10:22:09 +02:00
Christian Grothoff
f3819ae60d undef dead symbol 2016-04-05 23:45:05 +02:00
Christian Grothoff
afb1ab2a11 -fix mem leaks 2016-04-04 17:40:51 +02:00
Christian Grothoff
0ff76b5abb fix test to ensure DB invariants are met 2016-04-04 16:47:11 +02:00
Christian Grothoff
bd6fb59e4b skeletons for other commands 2016-04-04 16:06:30 +02:00
Christian Grothoff
13f1c1c195 implementing /deposit for test 2016-04-04 15:58:40 +02:00
Christian Grothoff
6eb2e73ee0 implementing /deposit for test 2016-04-04 15:47:09 +02:00
Christian Grothoff
db44dc3e95 how to run expect_transaction example 2016-04-04 15:07:01 +02:00
Christian Grothoff
a72661fd29 add bank logic to log transactions 2016-04-04 14:43:42 +02:00
Christian Grothoff
c83e22d199 add MHD skeleton logic 2016-04-04 14:26:24 +02:00
Christian Grothoff
7401433644 make use of r36977/78 API improvement in GNUnet 2016-04-04 14:04:44 +02:00
Christian Grothoff
9909a04d5b use new PQ_query_param_string function to fix 0-termination bug, also terminate idle aggregator in test mode 2016-04-03 21:41:26 +02:00
Christian Grothoff
08e9c29570 Fix testcase to match latest spec without receiver_ 2016-04-03 21:10:10 +02:00
Christian Grothoff
1dea7998db fix json generation, use proper json in test 2016-04-03 21:08:24 +02:00
Christian Grothoff
daae3d3ddf change taler-exchange-sepa to a more generic taler-exchange-wire tool using the wire plugins (#4237) 2016-04-02 20:58:22 +02:00
Christian Grothoff
937078bbdc fix NPE 2016-04-01 21:00:05 +02:00
Christian Grothoff
d7d33b6812 set environment variable to ensure plugins are found during tests 2016-04-01 20:35:22 +02:00
Christian Grothoff
bf3e5487b4 fix newline 2016-04-01 20:32:44 +02:00
Christian Grothoff
1168010160 fix error message 2016-04-01 20:30:52 +02:00
Christian Grothoff
1c568f8eb6 fix testcase init with new API 2016-04-01 20:27:57 +02:00
Christian Grothoff
4154e41a41 hash inputs to sign_fdh functions as required by new API 2016-04-01 20:18:18 +02:00
Christian Grothoff
9bc96506bb update man pages and templates to use current options 2016-04-01 17:32:10 +02:00
Christian Grothoff
76c8ab07e1 fix testcase with new path detection logic 2016-04-01 17:14:30 +02:00
Christian Grothoff
de3e26303e implementing #4356, tests still failing, but main logic should now be updated 2016-04-01 16:15:35 +02:00
Christian Grothoff
92907bee45 return nicer error message from bank API and fix compiler warning 2016-04-01 08:37:44 +02:00
Christian Grothoff
3a2e547da9 use GNUnet-SVN #36970 API improvement to de-duplicate code in Taler 2016-03-31 20:56:16 +02:00
Christian Grothoff
b4c4f0b078 towards a testcase for aggregation logic 2016-03-30 22:56:17 +02:00
Christian Grothoff
3938ad4d20 Merge branch 'master' of git+ssh://git.taler.net/var/git/exchange 2016-03-26 18:18:58 +01:00
Christian Grothoff
17b2c7e011 fix indent, fix some comments 2016-03-26 18:18:57 +01:00
Christian Grothoff
73a0510705 use bank and exchange account numbers in test 2016-03-23 18:38:57 +01:00
Christian Grothoff
e76154e076 ref to bug #4340 2016-03-23 11:34:50 +01:00
Christian Grothoff
ac950fbe61 switch to wid to comply with spec 2016-03-23 11:34:24 +01:00
Christian Grothoff
7f7ac5d92c avoid waiting forever 2016-03-23 10:06:41 +01:00
Christian Grothoff
d57576d5dd Merge branch 'master' of git+ssh://git.taler.net/var/git/exchange 2016-03-23 10:04:56 +01:00
Christian Grothoff
08a051a7c0 update test_bank_api to match current bank setup methods 2016-03-23 10:04:40 +01:00
Jeff Burdges
2e0067d9dd Merge branch 'master' of git.taler.net:/var/git/exchange 2016-03-21 15:19:43 +01:00
Jeff Burdges
130957f69d Note two errors in the tests suit 2016-03-21 15:19:04 +01:00
Christian Grothoff
6a80c0bfa2 Merge branch 'master' of git+ssh://git.taler.net/var/git/exchange 2016-03-21 14:40:59 +01:00
Christian Grothoff
3cb188e8a7 rename to match GNUnet symbol change 2016-03-21 14:40:57 +01:00
Jeff Burdges
553d6eb23e API change in GNUnet crypto for Full Domain Hashing 2016-03-21 10:57:12 +01:00
Christian Grothoff
6f8fa678c1 implementing #3987 2016-03-21 01:45:53 +01:00
Christian Grothoff
737e3f4bf6 refactor to eliminate duplicated JSON parsing logic (#4150) 2016-03-19 19:16:35 +01:00
Christian Grothoff
3d5e096fa2 eliminate warning 2016-03-19 19:14:19 +01:00
Christian Grothoff
1c4b72cb47 fix test script escaping 2016-03-19 18:50:48 +01:00
Christian Grothoff
362b275c7d fix test script escaping 2016-03-19 18:50:40 +01:00
Christian Grothoff
ae726ea31b remove duplicated JSON parsing code from exchange-lib (#4150) 2016-03-19 15:54:21 +01:00
Christian Grothoff
0d1eced630 first refactoring of JSON logic to address #4150 and #4237 2016-03-19 15:23:11 +01:00
Christian Grothoff
77801f054a exclude priv keys 2016-03-15 20:09:59 +01:00
Christian Grothoff
aba92c5bfa modify /wire/test to provide bank URI and bank account numbers 2016-03-04 11:57:57 +01:00
Christian Grothoff
d06fb4d818 towards returning account numbers in /wire/test 2016-03-04 11:43:11 +01:00
Christian Grothoff
17ff4f5e97 fixing #4230 in bank-lib 2016-03-02 21:07:27 +01:00
Christian Grothoff
531272a92a towards fixing #4230 2016-03-02 21:02:46 +01:00
Christian Grothoff
68f1a7b4a6 fix JSON for test wire formats to pass wire format validation 2016-03-01 16:13:54 +01:00
Christian Grothoff
f746efecf7 rename section from exchange-wire- to wire- 2016-03-01 16:10:41 +01:00
Christian Grothoff
fc0f9d0aaa fix rename issue 2016-03-01 16:02:20 +01:00
Christian Grothoff
89a7de3d30 fix config 2016-03-01 15:58:22 +01:00
Christian Grothoff
b5cba32510 renaming mint->exchange 2016-03-01 15:35:04 +01:00
Christian Grothoff
9f837ad6cd fix typo found by marcello 2016-02-12 14:55:53 +01:00
Christian Grothoff
d67011e2b5 making mintdb tests pass again after API refactoring to remove total amount 2016-02-07 15:02:49 +01:00
Christian Grothoff
38378f38d7 fix compiler warning, define test wire json format 2016-02-06 19:40:12 +01:00
Christian Grothoff
2b5a7c8748 move to new libgnunetpq library, simplifying libtalerpq 2016-02-06 17:39:18 +01:00
Christian Grothoff
a396f4e7fa Merge branch 'master' of ssh://taler.net:/var/git/mint 2016-01-30 13:49:29 +01:00
Christian Grothoff
3bb757b3a7 -remove empty lines 2016-01-30 13:49:27 +01:00
Christian Grothoff
ae45b7ac95 fix testcase 2016-01-29 14:24:18 +01:00
Christian Grothoff
67bc16d9eb update bank-lib to reflect API discussions 2016-01-29 11:39:45 +01:00
Christian Grothoff
46d9cc367b finishing core logic for #4141, but untested 2016-01-28 03:58:21 +01:00
Christian Grothoff
4506b4878f fix name of member to order by 2016-01-27 19:56:57 +01:00
Christian Grothoff
649879b0b6 implementing prepare data postgres functions for #4141 2016-01-27 18:28:52 +01:00
Christian Grothoff
b7215299d8 adding SQL for prewire data storage 2016-01-27 17:09:08 +01:00
Christian Grothoff
9a45742fe4 adding stubs for wire prepare data functions 2016-01-27 16:46:51 +01:00
Christian Grothoff
48c2edc28d working on mintdb for #4141 2016-01-27 16:42:24 +01:00
Christian Grothoff
0554fa7691 fix syntax issues in Makefile.am 2016-01-27 15:05:39 +01:00
Christian Grothoff
7ad6421df8 -missing file 2016-01-27 15:03:23 +01:00
Christian Grothoff
f5fea55e1c -missing file 2016-01-27 15:03:10 +01:00
Christian Grothoff
0ba855ae92 more mintdb API design for #4141 2016-01-25 15:18:31 +01:00
Christian Grothoff
bd3700e608 getting aggregator structure laid out for #4141 2016-01-25 15:08:29 +01:00
Christian Grothoff
57c1d2318f getting aggregator structure laid out for #4141 2016-01-25 14:57:32 +01:00
Christian Grothoff
fae7db7e93 skeleton for binary to implement #4141 2016-01-25 14:23:18 +01:00
Christian Grothoff
7973147933 fix #4149 2016-01-25 13:21:37 +01:00
Christian Grothoff
936acfa131 check type in plugin 2016-01-25 12:53:07 +01:00
Christian Grothoff
fc57913530 move wireformat test to plugin 2016-01-25 12:51:04 +01:00
Christian Grothoff
e5c5dc9cae move plugin path setup logic to libtalerutil 2016-01-25 12:50:29 +01:00
Christian Grothoff
4235dbfde0 adding (incomplete) plugin for SEPA 2016-01-25 11:31:06 +01:00
Christian Grothoff
891b533a21 finish serialization/deserialization logic for test wire transfers 2016-01-25 11:21:55 +01:00
Christian Grothoff
9b4a9cde87 test wire formats before using 2016-01-25 11:09:55 +01:00
Christian Grothoff
ccb4ac92a3 more work on wire plugin 2016-01-25 11:08:19 +01:00
Christian Grothoff
941cb8182f adding first version of thebank-lib 2016-01-25 10:20:40 +01:00
Christian Grothoff
5c58c43609 more work on wire plugins 2016-01-24 16:52:39 +01:00
Christian Grothoff
9aa323ca7b adding skeletons for plugins 2016-01-24 16:44:57 +01:00
Christian Grothoff
072d819e23 fix error message and leak 2016-01-24 16:34:03 +01:00
Christian Grothoff
b407565351 defining wire plugin API 2016-01-24 16:26:54 +01:00
Christian Grothoff
d6553966f1 /wire/deposits expects to use GET, not POST 2016-01-22 17:32:46 +01:00
Christian Grothoff
e6432cd1ff use correct status code 2016-01-22 17:24:08 +01:00
Christian Grothoff
dcf1a03a93 fix test logic 2016-01-22 17:21:42 +01:00
Christian Grothoff
2fc6afe946 more robust error handling 2016-01-22 17:21:36 +01:00
Christian Grothoff
0659100bdf use correct field name 2016-01-22 17:21:14 +01:00
Christian Grothoff
5601a81d4d do not have curl be verbose 2016-01-22 16:52:52 +01:00
Christian Grothoff
c2fe7e8ee9 sketched first part of testcase, currently failing (bad signature: 401) 2016-01-22 15:50:45 +01:00
Christian Grothoff
dbfb2f7163 extending test driver interpreter with commands to exercise aggregation API (not yet actually executed) 2016-01-22 15:29:31 +01:00
Christian Grothoff
46a10b12b8 add testcase for aggregation API 2016-01-22 13:45:32 +01:00
Christian Grothoff
440039da26 fix code order 2016-01-21 16:16:23 +01:00
Christian Grothoff
d17d3c11f6 remove dead update 2016-01-21 16:14:40 +01:00
Christian Grothoff
014b901b2c fix clean up logic of mint_api_refresh_link 2016-01-21 16:12:05 +01:00
Christian Grothoff
7864e625f1 -check rval 2016-01-21 15:52:10 +01:00
Christian Grothoff
ad1edd6c89 -remove dead code 2016-01-21 15:50:42 +01:00
Christian Grothoff
d779c5ee02 fix DB setup 2016-01-21 15:29:07 +01:00
Christian Grothoff
d63447baf6 adding mint-lib logic to execute /wire/deposits requests 2016-01-21 15:18:55 +01:00
Christian Grothoff
ce199e6e95 adding API code for /deposit/wtid requests 2016-01-21 14:46:17 +01:00
Christian Grothoff
c097b11052 defined tracking API (not implemented) 2016-01-21 13:53:34 +01:00
Christian Grothoff
c12a899f32 finish implementation of DB tracing functions 2016-01-21 12:09:17 +01:00
Christian Grothoff
9ccba0e77f implementing insert function into aggregation table 2016-01-21 11:24:18 +01:00
Christian Grothoff
8f071e2200 adding aggregation_tracking table to postgres plugin 2016-01-21 08:44:45 +01:00
Christian Grothoff
6d80541f70 bump year 2016-01-20 18:51:45 +01:00
Christian Grothoff
43e04f2ad1 work on #3888 2016-01-20 18:50:19 +01:00
Christian Grothoff
d291788976 spelling out what information mint should sign for TALER_SIGNATURE_MINT_CONFIRM_WIRE 2016-01-20 18:03:44 +01:00
Christian Grothoff
1746750a84 Merge branch 'master' of git+ssh://taler.net/var/git/mint 2016-01-20 16:21:35 +01:00
Christian Grothoff
a64b605377 indent, etc. 2016-01-20 16:21:32 +01:00