63 Commits

Author SHA1 Message Date
Adrià Cidre
00df3ff9f8 [#618] Jail.Call to return valid JSON string based results (#619) 2018-02-08 12:25:01 +01:00
Federico Gimenez
2f4be933bf Add a test case with multiple transactions and upstream node (#615)
* Add a test case with multiple transactions and upstream node

* address review comments
2018-02-05 16:48:54 +01:00
Federico Gimenez
13454e827b e2e: wait and get message before asserting empty list (#610)
* e2e: wait and get message before asserting empty list

* Added comments

* remove redundant checks

* remove redundant check

* address review comments
2018-02-05 15:40:27 +02:00
Dmitry Shulyak
653da5bcd0 Result of tx processing returned as QueuedTxResult
Currently it is quite easy to introduce concurrency issues while working
with transaction object. For example, race issue will exist every time
while transaction is processed in a separate goroutine and caller will
try to check for an error before event to Done channel is sent.

This change removes all the data that is updated on transaction and leaves
it with ID, Args and Context (which is not used at the moment).

Signed-off-by: Dmitry Shulyak <yashulyak@gmail.com>
2018-02-02 09:47:56 +02:00
Adam Babik
5383182251
Fix race conditions in e2e transaction tests (#582) 2018-01-31 08:34:31 +01:00
Dmitry Shulyak
ba0433367c Add instructions how to prepare/run e2e tests (#577) 2018-01-29 11:14:55 +01:00
Dmitry Shulyak
ba0b20e53f Remove mocks for transaction manager and transaction queue
It is very unlikely that there will be 2 or more implementations
of tx manager and queue, as they are tailored specifically to status project
requirements.
2018-01-26 15:21:34 +01:00
Dmitry Shulyak
680d0513b7 Refactoring of TxQueue and Manager (#530) 2018-01-25 21:59:21 -08:00
Dmitry Shulyak
889eeca31d Add a workaround for waiting till node is synced with network (#565) 2018-01-24 23:26:34 -08:00
Daniel Nephin
755a646bd4 Use gometalinter config instead of makefile (#560) 2018-01-24 00:25:28 -08:00
Adam Babik
c153a60dc3
Clean up whisper log delivery (#555) 2018-01-19 15:53:16 +01:00
Igor Mandrigin
bffd2fda08 Add Content-Type to the whisper tests as required in geth 1.7.3. (#553) 2018-01-17 17:12:40 +01:00
Adam Babik
953790c641 Add a test case to reproduce the issue (#548) 2018-01-11 18:17:41 +01:00
Igor Mandrigin
21132a441f Remove creating global _status_catalog variable 2018-01-09 17:53:33 +01:00
b00ris
97c473ad7a Add group messaging MailServer test case (#515)
This e2e test exchanges a message between a group of three nodes and checks if MailServer properly responds to a request for historic messages.
2017-12-26 13:21:07 +01:00
Adam Babik
b7fb51d92a
Refactor shh_requestMessages method (#513) 2017-12-21 11:26:01 +01:00
b00ris
ba6c96532b add enode to request messages params (#508) 2017-12-12 12:00:17 +01:00
Caner Çıdam
34df7e8abb CreateAndInitCell should allow reinitializing a cell #497 (#500)
Changes Jail.createCell to Jail.obtainCell, which alters the error-throwing behaviour for better Jail.CreateAndInitCell

This PR allows cells to be reinitialized without being recreated.

Important changes:
- Calling with same cell ID won't cause any errors.
- Consecutive calls with same cell ID only reinitialize existing cell.
- Parse in library.go uses StatusAPI.CreateAndInitCell.
2017-12-08 22:32:30 +07:00
b00ris
9559ff074a Support for historic messages from MailServer (#503)
Add `shh_requestMessages` RPC method. It sends a message to MailServer that can return cached, possibly expired, Whisper message.
2017-12-07 14:37:43 +01:00
b00ris
6bf980a1a7 Issue/fix dataraces in jail tests#457 (#460) 2017-11-27 22:56:52 +01:00
perissology
f0beeb3829 fix failing tests in PRs from other repos, fixes #459 (#461)
Fix failing tests for users w/o access to the ACCOUNT_PASSWORD env variable. Disable e2e public network tests in Travis pull requests. Exclude lib dir from unit tests.
2017-11-20 10:21:30 -08:00
Evgeny Danilenko
209d5fed74 Issue/fix public testnet tests #424 (#438)
* Accounts are now encrypted with a strong passphrase.
* The encrypted passphrase is stored in .travis.yml
* Public testnet tests are now run after tests on a private net
2017-11-07 12:46:11 -05:00
b00ris
9a3302ac36 Makes random panics on node manager tests less frequent (#433) 2017-11-07 12:43:49 -05:00
Adam Babik
086747a695 Refactor jail part 2 (#401)
Refactor jail so that it's more self-descriptive and easier to understand by newcomers. Also, the test coverage has been improved.

Changes requiring status-react team actions:
* Replace Parse calls with new CreateAndInitCell and ExecuteJS bindings,
* Make sure web3.isConnected is ok as its response change to boolean value.
2017-11-07 12:36:42 -05:00
Ewetumo Alexander
cb5ccb52c4 Emit messages logs for processing and sorting out messaging problems (#420)
* Add DeliveryService to Whisper to track incoming and outgoing messages.
* Have log tagged log lines for incoming and outgoing messages.
2017-11-06 14:10:52 -05:00
Adam Babik
fb75054a35 Fix TestJailWhisper e2e test (#442)
We have a test called TestJailWhisper that checks various Whisper communication scenarios (like sending a message signed with a symmetric key, asymmetric keys etc.). However, it was written in a bit cryptic way, so I also refactored it.

Important changes:
* Cleaner way of importing keys using AddKeyPair() method in the test suite,
* Removed TestEncryptedAnonymousMessage because it is not needed anymore as "test 4" in TestJailWhisper was fixed,
* Bumped PoW to 2.0. 0.01 used by status-react makes this test flaky.
2017-11-06 11:04:45 -05:00
Ivan Tomilov
21beb685b4 Add -network flag for Makefile to chose a network to run tests on #430
PR adds test flag -network to e2e pacakge, for the selection of the desired blockchain network for running tests. It updates readme to demonstrates usage of flag.
2017-10-26 22:51:04 +03:00
Ivan Tomilov
004aa83d84 Remove unnecessary return 2017-10-26 22:36:45 +03:00
Alexander Ewetumo
7a2c7651db Skip does not need return 2017-10-26 20:10:34 +01:00
Alexander Ewetumo
efa10134e8 Fixing missing imports 2017-10-26 14:14:11 +01:00
Alexander Ewetumo
1cc90541da Update makefiles and make changes regards review 2017-10-26 14:11:24 +01:00
Alexander Ewetumo
681a2d2d83 Skip test requiring network url for statuschain 2017-10-26 13:33:42 +01:00
Adam Babik
8cbd7ed1c4 fix linter across the whole project 2017-10-26 12:20:16 +02:00
Alexander Ewetumo
41d883a564 Update makefile with network flag for needed test and fix failing tests 2017-10-25 23:36:47 +01:00
Alexander Ewetumo
e80768a090 Swap GetNetworkIDHash/GetHeadHashForNetworkID 2017-10-25 23:24:01 +01:00
Alexander Ewetumo
8207a2724d Update usage of direct network id 2017-10-25 23:09:27 +01:00
Alexander Ewetumo
4d356e0873 Update regards review 2017-10-25 23:07:50 +01:00
Alexander Ewetumo
468a52737a Fixing changes and url bug in accounts and transactions 2017-10-25 13:37:42 +01:00
Alexander Ewetumo
ed61a1b19c Update code with network id and url returner 2017-10-25 13:08:33 +01:00
Ivan Tomilov
39cc60b8a7 Fixed make lint 2017-10-24 19:48:31 +03:00
Ivan Tomilov
f80827dc1f Feature/integrate linters into ci#387 (#427)
Solves #387 linters was integrated into ci
Added inergration linters to CI
Important changes:
- new linter warnings was fixed
- extracted linters targets into separated mk file
2017-10-24 19:36:52 +03:00
Alexander Ewetumo
6b9298fbc1 Update readme 2017-10-24 16:14:26 +01:00
Alexander Ewetumo
ca221f41f5 Fix import usage for jail test 2017-10-24 11:50:10 +01:00
Alexander Ewetumo
33fdc7dc82 Fix import usage for jail test 2017-10-24 11:44:15 +01:00
Alexander Ewetumo
46c46436f7 Fix conflicts with develop 2017-10-24 11:36:46 +01:00
Alexander Ewetumo
a2cabd9d68 Fix test to ensure consistency with checks 2017-10-24 11:35:13 +01:00
Alexander Ewetumo
a1668add06 Update readme and update code for testing 2017-10-24 11:23:53 +01:00
Frank Mueller
e14b2331eb Made EnsureNodeSync() throws a panic instead of returning an error (#431)
EnsureNodeSync() has been changed to return no error anymore, Instead in case of an internal error or a timeout a panic is thrown.
2017-10-24 00:39:13 +03:00
Alexander Ewetumo
a257d1c201 Fix errors on network chain id validation in tests 2017-10-23 18:18:09 +01:00
Alexander Ewetumo
d856660d09 Update readme and fix pointer bug 2017-10-23 17:28:12 +01:00