Kieran Prasch
b193465f98
adjust tests
2022-02-08 11:03:50 -08:00
Kieran Prasch
1c34045a81
Prepares economics and deployment constants for use with threshold network.
2022-02-08 11:02:17 -08:00
Kieran Prasch
bbc509910d
Adjust tests to accommodate swapable payment methods.
2022-02-08 11:01:24 -08:00
Kieran Prasch
fe36bf9d9d
Introduce SubscriptionManager Deployer
2022-02-08 11:01:24 -08:00
Damon Ciarelli
c1f66c0ef6
ursula pre_application_agent working; contract interactions required to run ursula.
2022-02-08 11:01:24 -08:00
Kieran Prasch
141b719db9
Mocked threhold staking interface.
2022-02-08 11:01:24 -08:00
Kieran Prasch
4136e740e8
PREApplicationDeployer
2022-02-08 11:01:24 -08:00
Bogdan Opanchuk
e5620c3155
Changes to make the tests pass
2022-01-08 15:29:22 -08:00
Kieran Prasch
3b3ca65f9f
Removes 'handpicked ursula' language.
2021-10-29 07:56:20 -07:00
Bogdan Opanchuk
ca2ae89ba6
Get rid of passing a Callable to EncryptedTreasureMap.decrypt()
2021-10-15 15:19:19 -07:00
Bogdan Opanchuk
0f85435ac7
Require encrypted_treasure_map in retrieve()
2021-09-08 08:21:04 -07:00
Bogdan Opanchuk
1d3642d960
Retrieval rework
2021-09-08 08:21:03 -07:00
Bogdan Opanchuk
a338ff1a69
Don't return the signature along with the MessageKit from MessageKit.author()
2021-09-07 11:58:55 -07:00
Kieran R. Prasch
024bcb1c5f
Finish deprecation of map storage from tests.
2021-08-20 16:58:58 -07:00
Bogdan Opanchuk
6164137610
Rename m -> threshold, num_kfrags -> shares
2021-08-20 19:26:56 -04:00
Bogdan Opanchuk
c595850952
RFCs, part 2
2021-08-19 17:06:45 -04:00
Bogdan Opanchuk
509b8c1bfc
Split treasure maps into decrypted and encrypted
2021-08-19 17:06:45 -04:00
Piotr Roslaniec
662bc34439
Use Path methods instead of os module
2021-08-06 18:10:22 +02:00
Piotr Roslaniec
6a270c1713
Use pathlib
2021-08-06 18:10:20 +02:00
derekpierre
463078ce0d
Fix issues after TMapConKFrag rebase including how work orders are created and used for tests. exec_work_order tests now actually use /reencrypt ursulas endpoints.
2021-07-26 15:14:43 -04:00
derekpierre
e8f0e20400
Add Basic Authentication tests.
2021-07-26 15:14:43 -04:00
derekpierre
dbeec7f1ae
Add integration and acceptance tests for porter functionality.
...
Remove unused 'publish_treasure_map' parameter from _enact() function.
Loosen validation on treasure map id which can be 32 bytes (federated) or 16 bytes (non-federated). Probably only care about non-federated but for ease of testing, federated really helps.
2021-07-26 15:14:42 -04:00
derekpierre
589ddff4de
Initial refactoring of "character control"; abstract what is now "character control" into a general "base control" from which "character control" can sub-class.
2021-07-26 15:14:42 -04:00
Kieran Prasch
b92d04ab00
Notify and interactively confirm mnemonic generation.
2021-06-28 14:33:31 -07:00
Kieran R. Prasch
4f7bdf5c46
tests respect the Keystore API
2021-06-28 14:33:31 -07:00
Bogdan Opanchuk
2fe7c85af4
Flatten stacked context managers
2021-06-25 11:43:06 -07:00
David Núñez
6279827657
Remove stale references to PreallocationEscrow contract stuff
2021-04-30 10:23:13 +02:00
Piotr Roslaniec
9669280639
Test fallback behaviour
2021-04-22 12:36:37 +02:00
Piotr Roslaniec
58f37da94a
Move TEACHER_NODES to nodes.py
2021-04-21 18:04:51 +02:00
vzotova
3136a97aa6
Fix other tests
2021-03-22 11:37:27 -07:00
Bogdan Opanchuk
03bab50289
Minor RFC
2021-03-02 18:20:48 -08:00
Bogdan Opanchuk
c0a303a783
Help nucypher-monitor get the info it needs
2021-03-02 18:20:48 -08:00
Kieran Prasch
06d89fef07
ContractAdministrator is a BaseActor subclass. Respond to RFCs in PR #2572
2021-03-02 10:24:41 -08:00
Kieran Prasch
ba464989ba
Actors accept a transacting power or an address but not both + Cleanup.
2021-02-26 13:38:37 -08:00
Kieran Prasch
7e07bd267e
Handle injected transacting power in tests.
2021-02-26 13:38:37 -08:00
Kieran Prasch
acfa1cad71
Do not return agents from agency fixture
2021-02-26 13:25:17 -08:00
Kieran Prasch
37774897bc
Understand Ursula.run as the coordinated single point of service startup.
2021-02-18 18:06:31 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
vzotova
61d8dc1ec0
New deployment order: StakingEscrow dispatcher, then PolicyManager+Dispatcher -> Adjudicator+Dispatcher -> WorkLock and only after this StakingEscrow itself
2021-02-02 19:24:28 +03:00
vzotova
9815440464
New order of contracts deployment, StakingEscrow uses other addresses of main contracts in constructor
2021-02-02 19:24:28 +03:00
vzotova
546e84a653
Remove test mode from StakingEscrow
2021-02-02 19:24:27 +03:00
Kieran Prasch
eda57b8c60
Force clearance of the mock ursulas cache
2021-01-15 18:20:05 -08:00
damon c
e907a598a2
Merge pull request #2462 from KPrasch/automagic
...
IP address checks on worker startup
2021-01-14 20:47:32 -08:00
Bogdan Opanchuk
bbc4390f68
Generalize NodeEngagementMutex
2021-01-14 11:19:35 -08:00
Bogdan Opanchuk
a2b99daa1d
Merge proposals and enactment into a single method, return EnactedPolicy
2021-01-14 11:19:35 -08:00
Kieran R. Prasch
2daa9b499d
Closes #2424
2021-01-12 13:10:15 -08:00
Kieran Prasch
c6b3ea31c1
Deprecates embedded geth integration tests and managed process usage.
2020-12-11 11:04:49 -08:00
Kieran Prasch
cd0f9c7b35
Deprecates embedded geth integration tests.
2020-12-11 10:25:09 -08:00
Kieran Prasch
2eefc07d31
Deprecates internal geth process mode.
2020-12-09 17:39:42 -08:00
vzotova
96e959f60a
Fix after rebasing
2020-12-03 16:48:33 +03:00
Kieran Prasch
6f04cef63d
Rescues a test utility from fixtures and modifies estimate gas metrics to use standard compiler output.
2020-12-03 16:48:31 +03:00
Kieran R. Prasch
11a807c096
Simplify solidity compiler module with a more stateless and functional approach; Use the standard compiler method.
2020-12-03 16:48:28 +03:00
David Núñez
145ebdf8ef
When sending TXs, allow to specify if we want to use a pending nonce or not
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
David Núñez
f42de3ae11
Some janitorial stuff
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
K Prasch
1f5407e7d5
Merge pull request #2220 from KPrasch/signer
...
Trezorlib Transaction Signing
2020-09-24 08:06:54 -07:00
Bogdan Opanchuk
35944ad8de
Add _finalize() method to Ursula to force releasing the datastore and call it in fixtures
2020-09-22 16:55:37 -07:00
Kieran Prasch
148528b24c
Signers is now a package
2020-09-17 13:26:33 -07:00
David Núñez
a7bc85c075
Get rid of the Translators idea and use Agents instead ...
...
... but this time the agent only defines the methods for getting function calls (with the name preceded by _ to mark this), since we'll only use this contract indirectly
2020-09-15 10:04:42 +02:00
jMyles
2157fcdd6d
Ensure that threadpool gets cleaned up.
2020-09-05 17:39:38 -07:00
jMyles
2810948d21
Completing publication in order to get publication threadpool to stop.
2020-08-27 14:45:40 -07:00
jMyles
24bc71be6e
Give Bob a chance to hit seednodes before bailing.
2020-08-27 13:16:36 -07:00
jMyles
c75519637a
More descriptive name to suit @derekpierre's fancies.
2020-08-20 17:50:53 -07:00
jMyles
34a5ad910d
Removing stale debugging tooling.
2020-08-18 12:05:55 -07:00
jMyles
0336e4d6e9
Mege commit uniting @fjarri sampling work and the rest of the async branch of TI. Done in order to provide a surface for blocking when sampling. See https://ptb.discordapp.com/channels/411401661714792449/411401661714792451/744248303528575037 .
2020-08-18 05:14:05 -07:00
jMyles
fc79601936
Need to block here in order to assert later.
2020-08-18 05:10:44 -07:00
jMyles
b18dfd9a69
Evolving test.
2020-08-18 05:10:44 -07:00
David Núñez
52e21bbb65
Fix mock_ursula_reencrypts so it produces expected output types
2020-08-14 12:15:16 -07:00
jMyles
5547f397ba
Cleaning up some warts that were causing occasional failures.
2020-08-10 13:02:13 -07:00
jMyles
a6a873482f
Merging #2128 , #2137 , #2155 into a rebase over main (instead of three separate github-generated merge commits, which caused a conflict).
2020-08-10 13:01:47 -07:00
jMyles
fdb726095a
Some more debug-level logs instead of prints.
2020-08-10 12:55:29 -07:00
jMyles
eaf7fbca37
Some debugging breadcrumbs for Ursula.
2020-08-10 12:54:04 -07:00
jMyles
a341962155
Struggling with some ALreadyCalled issues - turning debugging on for the defer module gives some useful insight.
2020-08-10 12:53:48 -07:00
jMyles
8cd182e26d
Stopping Bob and Ursula at appropriate times.
2020-08-10 12:53:33 -07:00
jMyles
78eb904c10
Flagging test bob's origins for inspection on other threads.
2020-08-10 12:53:33 -07:00
jMyles
7362b4bfe2
Adding cancellation to keep_learning logic.
2020-08-10 12:53:32 -07:00
jMyles
e7e710bb36
Stop Alice's publication threadpool in disenchant().
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
a0db5ffb15
Moving federated tests into their own module to keep the cache cleaner.
2020-08-10 12:52:30 -07:00
jMyles
fde4d9049b
Fixturizing lonely_ursula_maker for cleanup purposes.
2020-08-10 12:51:42 -07:00
jMyles
046c8e3989
Reworked logic to determine good serials for mocks.
2020-08-10 12:49:54 -07:00
jMyles
a69705475a
Fixing up fixtures to fail fast and delete Ursulas when done.
2020-08-10 12:49:26 -07:00
jMyles
babcd9174e
No need to reset checksum_address in Worker - let's try to set it in as few places as possible. #1547 .
2020-08-10 12:49:23 -07:00
jMyles
18993022ea
Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang.
2020-08-10 12:47:33 -07:00
jMyles
295518033e
Refining both test and threadpooling. Looking pretty good now.
2020-08-10 12:45:22 -07:00
jMyles
359980288d
Cleaning up here results in faster test run exit.
2020-08-10 12:45:22 -07:00
tuxxy
52038e36dc
Create a MockLMDBEnv w/ fixture and fix up some tests
...
Patch the PolicyArrangement model to fix discovery phase tests
2020-08-10 15:38:12 +02:00
tuxxy
846625d917
Replace as much old datastore logic as possible
2020-08-10 15:37:30 +02:00
tuxxy
184b3bf563
Create a base 'DatastoreRecord' class and models with tests
...
Move the base models to base.py and add more datastore tests
Change key structure to 'RecordType:RecordField:RecordID'
Eliminate the db module
2020-08-10 15:37:30 +02:00
David Núñez
e438f2f944
Use our new Logger replacement everywhere
2020-08-08 03:14:45 +02:00
jMyles
39f0dc4d6b
Some more debug-level logs instead of prints.
2020-07-26 19:20:47 -07:00
jMyles
d06deba742
Some debugging breadcrumbs for Ursula.
2020-07-22 16:16:30 -07:00
jMyles
695c1c4bd8
Struggling with some ALreadyCalled issues - turning debugging on for the defer module gives some useful insight.
2020-07-22 16:15:48 -07:00
jMyles
1534bc07a9
Stopping Bob and Ursula at appropriate times.
2020-07-22 15:55:31 -07:00
jMyles
4a616d143d
Flagging test bob's origins for inspection on other threads.
2020-07-22 15:55:31 -07:00
jMyles
4261743594
Adding cancellation to keep_learning logic.
2020-07-22 15:55:27 -07:00
jMyles
7e964fe4ec
Stop Alice's publication threadpool in disenchant().
2020-07-17 19:36:57 -07:00
jMyles
86398eb43a
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-07-09 20:42:27 -07:00
jMyles
8c6cdf5145
Moving federated tests into their own module to keep the cache cleaner.
2020-06-25 23:18:14 -07:00