60 Commits

Author SHA1 Message Date
coffeepots
0dfb4be55c Rename rpcstreamserver and newStreamServer to rpcsocketserver and newSocketServer 2018-06-15 10:34:24 +01:00
coffeepots
e5c92dd207 Fix "cannot find init" as nimcrypto wasn't visible in ethprocs 2018-06-14 17:02:17 +01:00
coffeepots
bb07650f33 Update tests to use streamserver 2018-06-14 16:55:10 +01:00
coffeepots
2f7580f082 Update to use rpc folder 2018-06-14 16:53:24 +01:00
coffeepots
a79351cbd7 Re-added malformed json error 2018-06-13 19:31:00 +01:00
coffeepots
9945228bf0 Add testerrors to all tests 2018-06-13 19:19:38 +01:00
coffeepots
ba53bd1237 Update errors to check results are as expected 2018-06-13 19:19:24 +01:00
coffeepots
6701fc7723 Improve tests, add check for invalid json 2018-06-13 19:13:04 +01:00
coffeepots
4143c2cc41 Debug func for getting next id, assert instead of if 2018-06-13 19:12:29 +01:00
coffeepots
8781bbbf4e Update testerrors ready for async tests (TODO) 2018-06-12 19:30:14 +01:00
coffeepots
e39008fe4a Removed extraneous debug output 2018-06-12 19:28:41 +01:00
coffeepots
93c7a5577e var strings only for transport 2018-06-12 18:09:00 +01:00
coffeepots
1212861547 Add missing RPC test 2018-06-12 09:14:24 +01:00
coffeepots
4c38164688 WIP tests for errors 2018-06-11 19:26:16 +01:00
cheatfate
2b12f3699a Added reviews requirements. 2018-06-10 04:09:51 +03:00
cheatfate
7607cc4106 Fix connect(). 2018-06-08 09:31:51 +03:00
cheatfate
aea1798897 Add close() procedure for RpcServer.
Fixed tests to stop/close server.
2018-06-07 11:20:33 +03:00
cheatfate
cbfe945fff Use asyncdispatch2 instead of asyncdispatch. 2018-06-07 10:02:14 +03:00
coffeepots
efeb972763 Update tests to use async better, no shared server 2018-06-05 10:45:54 +01:00
coffeepots
1ea23b4df2 Remove shared server 2018-06-05 10:43:46 +01:00
coffeepots
6bfb4facc2 Remove var ref on rpc macro and just take ref 2018-06-04 15:34:48 +01:00
coffeepots
db55114233 Change example to invoke `rpc from within procedure scope 2018-06-04 14:16:35 +01:00
coffeepots
1667119f34 Fix case sensitive import on nix filesystems and reduce name length 2018-05-31 12:02:21 +01:00
coffeepots
92bae923c9 Split tests into standard client-server, rpc macro tests and ethtests 2018-05-30 16:36:55 +01:00
coffeepots
cdcd5204e3 Split tests into client-server test and ethprocs test 2018-05-30 16:36:55 +01:00
coffeepots
964436c9e3 Move ethprocs and ethtypes into tests, remove external imports 2018-05-30 16:36:55 +01:00
coffeepots
7aff489622 Move ethcallsigs to tests to confirm stand alone rpc setup 2018-05-30 16:36:55 +01:00
coffeepots
8b007ff2f4 Update comments and change web3_sha3 test to use example in wiki 2018-05-29 13:20:07 +03:00
coffeepots
d1470bf212 Updated test to use new generated client procs 2018-05-29 13:20:07 +03:00
coffeepots
ce86719f4c on is now rpc for now to fix compilation issue 2018-05-29 13:20:07 +03:00
coffeepots
df83872a74 Add tests for stint return values and parameters 2018-05-29 13:20:07 +03:00
coffeepots
995f268ddf Fix for zero parameter test 2018-05-29 13:20:07 +03:00
coffeepots
b4c31d5ada add test for return statement within on macro 2018-05-29 13:20:07 +03:00
coffeepots
0a2b4fa1d8 rpcserver must be before asyncdispatch for correct parsing 2018-05-29 13:20:07 +03:00
coffeepots
a9456bd22c Remove transport utils module as it's unused 2018-05-29 13:20:07 +03:00
coffeepots
14ef63294e fix result not found by changing import order... 2018-05-29 13:20:07 +03:00
coffeepots
1953a35532 Added some more simple tests 2018-05-29 13:20:07 +03:00
coffeepots
34a89b6bb9 Update comment to be clearer 2018-05-29 13:20:07 +03:00
coffeepots
68dc4351d1 Fix undeclared identifier: result in myProc custom rpc 2018-05-29 13:20:07 +03:00
coffeepots
0193ba2bab Use rpcserver import 2018-05-29 13:20:07 +03:00
coffeepots
ca7a1efa97 Remove redundant tests, add more error checks 2018-05-29 13:20:07 +03:00
coffeepots
444bbc1493 Updated tests to check return type processing 2018-05-29 13:20:07 +03:00
coffeepots
758653fb62 Remove {.rpc.} macro and merged testing into testrpcmacro 2018-05-29 13:20:07 +03:00
coffeepots
fdb553687e Added testrpcmacro to test module 2018-05-29 13:20:07 +03:00
coffeepots
8a3aad64d1 Updated paths 2018-05-29 13:20:07 +03:00
coffeepots
1cf3a930b5 Moved rpc macro tests out into separate module 2018-05-29 13:20:07 +03:00
coffeepots
da6ef049ca Updated test to return input data 2018-05-29 13:20:07 +03:00
coffeepots
f15a48b1c2 Initialise ethprocs automatically on import rpcserver 2018-05-29 13:20:07 +03:00
coffeepots
c5653a8cfd Update tests to run with nimble test 2018-05-29 13:20:07 +03:00
coffeepots
364fa6f031 Updated test to use new on macro 2018-05-29 13:20:07 +03:00