David Núñez
32a8d92320
Enriching web3 gas strategies: better error messages; expected confirmation times
2020-10-19 18:59:28 +02:00
Bogdan Opanchuk
1557617afd
Since web3=5.12.2 some of `eth` methods require positional arguments
2020-10-18 00:16:05 -07:00
jMyles
3fce2c2c0b
Unskipping and fixing remaining tests.
2020-10-14 11:16:09 -07:00
David Núñez
cd47a3b566
Relocate test/utils/solidity.py to nucypher/utilities/ethereum.py
2020-10-05 12:12:17 +02:00
David Núñez
f96e82d95e
Utility test to obtain versioned Ursulas' metadata hexstrings
2020-09-24 20:28:31 +02:00
David Núñez
4cf7dcadc3
We're done with multiple domains, for the moment.
...
Closes #2144 . Closes #1580 .
2020-09-24 20:27:13 +02:00
jMyles
d1b2257797
This test actually performs better with random values - when every node takes the same amount of time to return, there's a much more likely chance of all of them returning at the same moment, and thus overshooting the mutex requirement for unblocking.
2020-08-31 10:10:43 -07:00
jMyles
de266be0cf
Resolving import conflicts with main.
2020-08-31 01:07:27 -07:00
David Núñez
920ae58bc3
Setting a free gas strategy in tests that create a new blockchain interface
2020-08-28 18:00:19 +02:00
jMyles
6498992f61
Deduplicating test; moving json validation utils to utils.
2020-08-24 09:42:15 -07:00
jMyles
59bcbcf70d
Crash sooner if a test is looking for a nonexistent Ursula.
2020-08-24 07:21:07 -07:00
jMyles
34a5ad910d
Removing stale debugging tooling.
2020-08-18 12:05:55 -07:00
jMyles
b18dfd9a69
Evolving test.
2020-08-18 05:10:44 -07:00
jMyles
e0918764d8
Big fixup for the remaining errors blocking integration.learning.
2020-08-10 12:54:35 -07:00
jMyles
5fd14a7109
make_federated_ursulas gets called from a few places of varying depths in the stack - accounting for that.
2020-08-10 12:54:05 -07:00
jMyles
eaf7fbca37
Some debugging breadcrumbs for Ursula.
2020-08-10 12:54:04 -07:00
jMyles
16bc34754d
Another test that was passing for the wrong reason. It now works regardless of whether the future Ursula is a hardcoded seednode or a user-specified one.
2020-08-10 12:52:31 -07:00
jMyles
784814c4bb
Don't ship blockchain_bob with known_nodes; he can use his domain hardcoded nodes. Also, don't start his learning loop after the fact. This caused this test to pass even when he was unable to actually find the nodes in join_policy.
2020-08-10 12:52:31 -07:00
jMyles
6faadb775d
Only simulate hardcoded domain nodes for TEMPORARY_DOMAIN, not nonstandard test domains.
2020-08-10 12:51:11 -07:00
jMyles
4ffecd85fd
Going back to defined ports in the hopes of working out #1546 / #1689 .
2020-08-10 12:49:26 -07:00
jMyles
e85acfccaa
Moving hardcoded seednodes to middleware.
2020-08-10 12:49:26 -07:00
jMyles
645533421e
If the port is too high, try again. Attempting to deal with #1546 .
2020-08-10 12:49:26 -07:00
jMyles
86b24373ac
Setting checksum_address to staker address, and looking up TransactingPower in the usual (albeit private) way.
2020-08-10 12:49:26 -07:00
jMyles
f2b8daa1ff
Putting the fake latency on either side of the endpoint gives slightly more realistic conditions.
2020-08-10 12:45:22 -07:00
jMyles
1923568166
What happens if we add a little slowness like network latency? (And here's where we'll have to add concurrency).
2020-08-10 12:42:17 -07:00
jMyles
6d60c66ec2
Alice now proposes Arrangements; Ursula considers them. Fixes #1924 .
2020-08-10 12:42:17 -07:00
tuxxy
f5a7577290
Fix tests with new datastore changes
...
Use a unique temp directory for each blockchain_ursula and fix the flunky test query
Fix test_decentralized_grant test
Catch RecordNotFound errors in test_freerider_attacks
Provide a db_filepath for the test_collect_rewards_integration Ursula
Add unique temp directory for Ursula in test_collect_rewards_integration
2020-08-10 15:38:58 +02:00
David Núñez
e438f2f944
Use our new Logger replacement everywhere
2020-08-08 03:14:45 +02:00
David Núñez
637ba98ff6
Don't use web3 directly, when we can use the client API
2020-06-05 04:07:57 +02:00
David Núñez
b0e9a40f9c
...and relocate and improve tests for get_confirmations
2020-06-05 04:05:39 +02:00
Kieran Prasch
bb32d210a3
Update test contract compilation path
2020-05-27 14:11:25 -07:00
Bogdan Opanchuk
276c7ad0eb
Prohibit Pytest from trying to pick up TesterBlockchain
2020-05-26 10:26:42 -07:00
derekpierre
3e0bea5997
Update latest files after rebase with nucypher license.
2020-05-22 09:07:41 -04:00
derekpierre
668f25bc38
Add pre-commit hook to ensure that AGPL license is included in python source files
2020-05-22 08:55:06 -04:00
Kieran Prasch
722d26bcb4
Common factory function module for test character configurations
2020-05-20 21:41:45 -07:00
Kieran Prasch
ecb773291a
Post rebase cleanup ( #1959 )
2020-05-15 09:05:09 -07:00
Kieran Prasch
f263e4c2a0
Promote and clear constants modules;
...
Partly convert constants to Pathlib, Use safe mock IP address constants.
Accommodate more pathlib in tests
2020-05-15 08:36:11 -07:00
Kieran Prasch
3b4e9b47dc
Optimize imports for the entire codebase
2020-05-15 08:34:25 -07:00
Kieran Prasch
a935dc8e2d
Annihilate the sandbox
2020-05-15 08:33:38 -07:00
David Núñez
94a2480416
Introduce some basic test utilities for Solidity and TesterBlockchain
...
The interesting utils are the ones to compute location of mapping entries and array data, as they will allow us to further improve our Solidity unit tests
2020-04-28 00:25:32 +02:00