Commit Graph

1216 Commits

Author SHA1 Message Date
Christian Grothoff
f471cfcec5 add a few more DB constraints 2016-05-24 20:32:05 +02:00
Christian Grothoff
32bb3b14bf fix #4483 2016-05-24 20:13:31 +02:00
Florian Dold
8c3ffbf2a3 allow access to raw /keys response 2016-05-24 02:28:15 +02:00
Christian Grothoff
8dfb3b87b4 testing refund, fixing bugs, refund test passes 2016-05-21 19:22:03 +02:00
Christian Grothoff
9160245167 make use of GNUNET_JSON_from_data_auto where possible 2016-05-21 18:36:12 +02:00
Christian Grothoff
93aaf1d172 extending interpreter to cover refund (but not used yet) 2016-05-20 17:15:50 +02:00
Christian Grothoff
e39beff272 fix init before use in new refund logic 2016-05-20 15:52:40 +02:00
Christian Grothoff
35509528bc enforce wire deadline >= refund_deadline in exchange 2016-05-20 15:39:24 +02:00
Christian Grothoff
43cfa77248 enforce wire deadline >= refund_deadline in API 2016-05-20 15:36:08 +02:00
Christian Grothoff
324003acc0 log cause for /admin/add/incoming failures 2016-05-20 14:25:02 +02:00
Christian Grothoff
9391ed529c export function to free commit coin data 2016-05-19 18:37:31 +02:00
Christian Grothoff
7d8a74adf1 allow env override 2016-05-19 18:26:06 +02:00
Christian Grothoff
14436d1241 finished implementing #4401 2016-05-19 17:47:27 +02:00
Christian Grothoff
8199c06882 more work on #4401, almost done 2016-05-19 17:31:15 +02:00
Christian Grothoff
9dab61c91a more work on #4401 2016-05-19 17:11:35 +02:00
Christian Grothoff
f2b20f3ad0 more work towards fixing #4401 2016-05-19 16:24:29 +02:00
Christian Grothoff
763c8ab512 rename GNUNET_CRYPTO_rsa_BlindingKey to GNUNET_CRYPTO_RsaBlindingKey following GNUnet API change 2016-05-19 15:11:05 +02:00
Christian Grothoff
a39e2f9e00 working on DB test, unfinished 2016-05-19 15:10:31 +02:00
Christian Grothoff
daff72b63f fix #4506: check that master key matches our master key when loading signing and denomination keys; also do not send master_pub with each signing key, that is not in the spec 2016-05-18 17:58:32 +02:00
Christian Grothoff
396f29ab9e warn properly if we failed to run taler-exchange-aggregator 2016-05-18 17:23:21 +02:00
Christian Grothoff
8ff8c7b8c7 fix table dropping logic to ensure testcases run in fresh environment 2016-05-18 17:19:32 +02:00
Christian Grothoff
e905e9e245 use GNUNET_new_array() 2016-05-16 17:13:00 +02:00
Christian Grothoff
edf4e5cdf7 not all are 2d 2016-05-16 12:01:20 +02:00
Christian Grothoff
60c7d0f312 Merge branch 'master' of git+ssh://taler.net/var/git/exchange 2016-05-16 11:56:10 +02:00
Christian Grothoff
c8b9370413 fixing #3814 by removing ability to melt multiple oldcoins at the same time 2016-05-16 11:55:47 +02:00
Marcello Stanisci
5d2b56c3c3 MASTER_KEY in section merchant-exchange-test used to point exchange's private key. Fixed 2016-05-11 01:56:34 +02:00
Marcello Stanisci
93175857c9 uncommenting PORT in config 2016-05-11 01:30:30 +02:00
Marcello Stanisci
17512aa538 merchant private key in config generator 2016-05-10 22:06:55 +02:00
Marcello Stanisci
be53397fb9 adding EDATE in merchant config generator 2016-05-10 19:38:38 +02:00
Marcello Stanisci
e10fc753df typo 2016-05-10 15:03:00 +02:00
Marcello Stanisci
9aa8fa0d70 typo: tears->years 2016-05-10 14:23:59 +02:00
Marcello Stanisci
4a65642805 typo 2016-05-10 13:51:18 +02:00
Marcello Stanisci
cfb0f5bdbc including config generator among installed files 2016-05-10 13:50:01 +02:00
Christian Grothoff
068dbf020b reorg testcase a bit 2016-05-08 16:07:17 +02:00
Christian Grothoff
ffb38f292e adding test for wire prepare data 2016-05-08 15:51:40 +02:00
Christian Grothoff
966242341a expand testcase to cover refund API, fix minor issues 2016-05-08 15:44:44 +02:00
Christian Grothoff
691c9a859f more work on test, noting what is left to do with bug number 2016-05-06 23:53:04 +02:00
Christian Grothoff
d55b2cd59d more work on test, noting what is left to do 2016-05-06 23:51:15 +02:00
Christian Grothoff
d6d0ddbe07 check if starting aggregator actually worked 2016-05-06 22:07:19 +02:00
Christian Grothoff
0292d9d68a fix shutdown issue in test 2016-05-06 22:03:07 +02:00
Christian Grothoff
ce1dcfe1ed add timeout logic to aggregator test 2016-05-06 22:01:02 +02:00
Christian Grothoff
95d338f6cc adding test for auditors API 2016-05-06 19:39:31 +02:00
Christian Grothoff
fd7e855759 refactoring exchangedb tests to improve coverage 2016-05-06 19:23:02 +02:00
Christian Grothoff
187fa67f3c refactoring exchangedb tests to improve coverage 2016-05-06 19:22:39 +02:00
Christian Grothoff
3526c44a38 refactor code to write signing keys in same module where we read them 2016-05-06 18:33:02 +02:00
Christian Grothoff
c334ba61f4 drop refunds table as well 2016-05-06 13:38:20 +02:00
Christian Grothoff
fb2ef1d5d9 bump copyright 2016-05-06 13:35:12 +02:00
Christian Grothoff
302070b86e support REFUNDS in transaction history in libtalerexchange 2016-05-06 13:33:20 +02:00
Christian Grothoff
fbbc49bdad add logic to return refunds with transaction history 2016-05-06 13:03:57 +02:00
Christian Grothoff
a4d99f229a implement logic to store refund data into postgres database 2016-05-06 12:55:44 +02:00
Christian Grothoff
0c959e75d1 working on #3641: more on /refund implementation 2016-05-05 22:57:55 +02:00
Christian Grothoff
07d9978fb9 implementing #4449 2016-05-05 17:40:38 +02:00
Christian Grothoff
6040adab4f fixing #4461 2016-05-05 15:03:43 +02:00
Christian Grothoff
6b1f4904ef export transaction history check function 2016-05-05 14:43:13 +02:00
Christian Grothoff
ad6a40aaa5 fix fmt string issues 2016-05-04 13:21:22 +02:00
Christian Grothoff
458992dc6f fixes for disting 2016-05-04 10:21:35 +02:00
Christian Grothoff
c1575167f7 fix make dist 2016-05-04 10:09:17 +02:00
Christian Grothoff
4a031a692b implementing /refund API (#3848) 2016-05-04 09:42:52 +02:00
Christian Grothoff
c0e3021040 dead code elimination 2016-05-04 06:59:48 +02:00
Christian Grothoff
4553681476 fix issues in tracking API and tracking API test, resolves #4399 2016-05-04 06:10:41 +02:00
Christian Grothoff
910e01d1c1 be more careful with terminology 2016-05-04 05:38:29 +02:00
Christian Grothoff
2c832199b2 check WTID matches 2016-05-04 05:36:23 +02:00
Christian Grothoff
c1253703ae fix size in purpose 2016-05-04 05:30:06 +02:00
Christian Grothoff
991d13178b fix JSON format string 2016-05-04 05:21:39 +02:00
Christian Grothoff
27300ad1cc round exec time 2016-05-04 05:19:47 +02:00
Christian Grothoff
9f0245ca99 modify test to trigger aggregation properly and check resulting fakebank transfers 2016-05-04 05:16:32 +02:00
Christian Grothoff
dc2d0a186c towards fixing #4399 2016-05-03 13:55:40 +02:00
Christian Grothoff
79c316f0d5 enable multiple wire methods to be used with aggregator, add command to run aggregator in testcase 2016-05-03 07:57:49 +02:00
Christian Grothoff
f2b7e36269 finish tests for #4437 2016-05-03 06:15:09 +02:00
Christian Grothoff
eabbafc4df adding assertions to assist figuring out #4482 2016-05-03 05:52:37 +02:00
Christian Grothoff
5852baa7e9 fix testcase 2016-05-02 09:06:16 +02:00
Christian Grothoff
08ef15ec94 adding bank-lib test against fakebank (currently fails) -- towards addressing #4437 2016-05-02 08:54:05 +02:00
Christian Grothoff
31ad6aaf11 separate interpreter from the rest of the test logic 2016-05-02 08:46:17 +02:00
Christian Grothoff
5fd6a25c6d code simplification via new extended libgnunetcurl API 2016-05-02 08:24:21 +02:00
Christian Grothoff
ad45e5ab7a adjust shutdown/timeout to match latest GNUnet scheduler API semantics 2016-05-02 06:48:25 +02:00
Christian Grothoff
1cbba4bec1 fixing #4462: avoid temporary schemata altogether 2016-05-02 06:36:58 +02:00
Christian Grothoff
53e7547aaf removing broken and redundant testcase 2016-05-02 05:17:42 +02:00
Christian Grothoff
b98a204562 fix #4184 2016-05-02 05:10:40 +02:00
Christian Grothoff
1c2be591d3 fixing #4479 2016-05-02 02:33:14 +02:00
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