Kieran Prasch
ed53696cf4
unskip IP detection CLI tests with required mocks
2022-12-07 11:29:26 +00:00
Kieran Prasch
0222a17c6b
Restores unit tests to not compile solidity.
2022-12-07 11:29:26 +00:00
Kieran Prasch
9b38075d24
Partial correction of abstraction leak between Ursula an Operator by code reorg.
2022-12-07 11:29:26 +00:00
Kieran Prasch
fda5c86db2
Removes "decentralized" and "blockchain" differentiation from "federated"
2022-12-07 11:29:26 +00:00
Kieran Prasch
7b7f2f071f
Atomically unfederate (most of) the tests; Restores "federated" functionality by way of mocking. Takes advantage of fixture overriding to intercept testerchain.
2022-12-07 11:28:40 +00:00
derekpierre
37ddd90830
Use thread-safe set for caching active ports.
...
Stop the use of MOCK_URSULA_START_PORT constant which may cause inadvertent port reuse.
Adjust rules for selecting ports to ensure early short circuit for invalid ports.
2022-11-24 10:51:01 -05:00
Kieran Prasch
ff3f414331
Sort fixtures that compile to localized acceptance/unit conftest respectively; Faster unit test suite.
2022-11-17 15:22:55 +00:00
Kieran Prasch
15b98e5479
de-duplicate condition fixture definition
2022-11-17 15:20:43 +00:00
Kieran Prasch
6ca73c2849
remove lisence header from tests
2022-11-16 13:27:47 +00:00
Kieran Prasch
d2dcdb9230
Introduce dynamic multi-chain support; enforce condition chain ID as an int.
2022-11-07 12:51:31 +00:00
Kieran Prasch
f3dd8ec870
Remove unused stakeholder fixtures
2022-10-31 20:16:35 +00:00
Kieran Prasch
42d8e7d5de
pytest11 entry points to export fixtures
2022-10-31 20:16:35 +00:00
Kieran Prasch
73b6b8d15d
Removes WebController and WebEmitter
2022-10-27 21:14:34 +01:00
Kieran Prasch
d1269d1507
atomically extricate porter to nucypher/nucypher-porter
2022-10-27 17:26:32 +01:00
Kieran Prasch
febc6093c1
Removes lmdb datastore usage
2022-10-27 10:12:17 +01:00
Kieran Prasch
9ae4d5c966
to/from wei method updates for web3 v6+ support
2022-10-18 20:10:37 +02:00
derekpierre
f972c72470
Code cleanup to condition context variable - follow up RFCs from #2966 .
2022-10-18 20:09:25 +02:00
derekpierre
f164cfb3a9
Clenup of tests regarding `context`. Minor fix for using lists for ConditionLingo conditions instead of tuple.
2022-10-18 20:09:25 +02:00
derekpierre
46b40dcc57
Update format of `context` for tests.
2022-10-18 20:09:25 +02:00
derekpierre
15cb062940
Added some tests that provide a context for re-encryption.
2022-10-18 20:09:25 +02:00
Kieran Prasch
0acfc7e381
Support for web3.py v6
2022-10-18 20:08:52 +02:00
derekpierre
7689b446a7
Add web controller tests for handling of WorkerPoolException.
...
Improve efficiency of Porter tests by reducing execution timeout.
2022-04-13 11:05:03 -04:00
Kieran Prasch
320e5bc4b3
test adjustments for london fork
2022-04-04 22:01:32 -07:00
Kieran Prasch
c809b69f9a
Restoration of StakingEscrowDeployer and select tests; cleanup.
2022-02-21 17:23:26 -08:00
Kieran Prasch
73b238a587
Removes staking entities
2022-02-21 17:17:11 -08:00
vzotova
856abe4892
Renames `provider_uri` to `eth_provider_uri`
2022-02-18 11:27:15 +03:00
Kieran R. Prasch
2aae09f1e4
Respond to RFCs in PR #2862
2022-02-16 13:24:35 -08:00
Kieran Prasch
419e649ec7
Respond to RFCs for PR #2857
2022-02-08 11:04:34 -08:00
Kieran Prasch
ee2a5190e6
adjust tests
2022-02-08 11:04:27 -08:00
Kieran Prasch
622ae3429a
Removes PolicyManagerPayment
2022-02-08 11:04:27 -08:00
derekpierre
d442375e5f
Cleanup of Porter tests to account for duration_periods no longer needed for sampling.
2022-02-08 11:04:27 -08:00
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