Bogdan Opanchuk
26076b1d98
Remove IndisputableEvidence and related functions and tests
2021-05-18 13:14:04 -07:00
piotr-roslaniec
66ad917b28
Merge pull request #2657 from piotr-roslaniec/teacher-fallback#2481
...
Fallback chain of teacher nodes
2021-04-29 10:17:19 +02:00
Piotr Roslaniec
c98fbc43cd
Implicitly remove whitespaces from character nicknames
2021-04-28 11:31:59 +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
KPrasch
74c986e53b
Merge branch 'main' into dao-proposal-1
2021-04-14 08:16:40 -07:00
KPrasch
fed186975b
Merge pull request #2628 from piotr-roslaniec/nickname-delim#2471
...
Change nickname delimiter in card filename
2021-04-08 13:29:57 -07:00
Piotr Roslaniec
ec757bf4a9
Use constant for loopback address
2021-04-08 13:33:34 +02:00
Piotr Roslaniec
8edd343ab8
Test qr code output
2021-04-08 11:57:02 +02:00
Piotr Roslaniec
f43ad5d055
Change nickname delineation
2021-04-08 11:56:39 +02:00
vzotova
3136a97aa6
Fix other tests
2021-03-22 11:37:27 -07:00
Kieran Prasch
ed032de9e8
Translating economic parameters to handle 7 day periods.
2021-03-22 11:37:27 -07:00
derekpierre
305bf0a7fb
Added unit and integration tests for keyring.
2021-02-18 18:08:40 -08:00
derekpierre
cbe03d9dc1
Add unit tests for (de)serialization if keys from/to files.
2021-02-18 18:08:40 -08:00
derekpierre
6f25d57971
Better organize serialization/deserialization functions.
...
Use loopback address functions.
Respond to RFCs for #2536 .
2021-02-18 18:08:40 -08:00
derekpierre
ab30f1f497
Improve serialization/deserialization logic of private keys.
2021-02-18 18:07:43 -08:00
Bogdan Opanchuk
4de9b91d2a
Refactor FleetSensor
2021-02-16 22:45:55 -08:00
K Prasch
6b2a9ecdbb
Merge pull request #2533 from cygnusv/fast-unit
...
Fixes to unit tests. Fix for #2484
2021-01-21 10:26:58 -08:00
David Núñez
0b2eb927be
We were incorrectly using net_version to identify the EthereumClient chain in certain places
...
Fixes #2484
2021-01-20 13:05:23 +01:00
David Núñez
d7e45d2959
Unskip cards unit tests
2021-01-20 12:36:27 +01:00
Kieran Prasch
bb0f317898
Bigfix: Use Worker HTTP client for fleet-sourced external IP determination (and supporting tests)
2021-01-18 10:48:55 -08:00
Kieran Prasch
3c65c566ae
Expands external IP determination unit testing
2021-01-17 14:36:53 -08:00
Kieran Prasch
9cb7c1979b
Bugfix and supporting tests for automated IP determination
2021-01-15 18:19:39 -08:00
Kieran Prasch
c7fd63630b
Unskips worker rate limiting test - Fixes unexpee limit test
2021-01-12 13:10:15 -08:00
Kieran R. Prasch
2d98971b43
Temp. skip work tracker test for CI runs.
2021-01-12 13:10:15 -08:00
Bogdan Opanchuk
2e0efe451e
Use in-memory mock LMDB environment for most tests
2021-01-02 17:19:13 -08:00
Kieran Prasch
1cf48ede24
Installs new plumbing for --max-gas-price througout CLI and configuration modules.
2020-12-25 01:51:16 +01:00
David Núñez
568d05ae52
Simplify max_price_gas_strategy: not controlled by an envvar anymore
2020-12-25 01:51:16 +01:00
David Núñez
9cba73bd53
Deprecate datafeed_fallback_gas_strategy
2020-12-25 01:51:16 +01:00
damon
5ed448058c
worktracker: enforce random_interval after one failure
2020-12-25 01:51:16 +01:00
David Núñez
489e7e6c70
Use the 3 gas price datafeeds we have to build a median-based strategy
2020-12-25 01:51:15 +01:00
David Núñez
356cc1ad4a
Include the Zoltu gas price oracle in the datafeed fallback strategy
2020-12-25 01:51:15 +01:00
David Núñez
659c8db947
Added gas price data feed from gas-oracle.zoltu.io
2020-12-25 01:51:15 +01:00
David Núñez
a6a089f76f
Introduce a max price gas strategy wrapper that caps the price of any strategy
...
Controlled by the NUCYPHER_MAX_GAS_PRICE_GWEI envvar
2020-12-25 01:51:15 +01:00
David Núñez
0c3b9c2742
Use canonical speed names internally in gas price datafeeds
2020-12-25 01:51:15 +01:00
David Núñez
6e83b0ffe1
Prioritize Upvest gas price datafeed
2020-12-25 01:51:15 +01:00
David Núñez
a56ce5151d
Construct the datafeed gas strategy based on the speed name
2020-12-25 01:51:15 +01:00
David Núñez
71ad8c2c31
Introduce equivalence classes for gas speed names
2020-12-25 01:50:43 +01:00
David Núñez
5f93a3ae59
Skip card unit tests until qrcode module is added as dependency in 2440
2020-12-17 23:30:51 +01:00
Kieran Prasch
89043b3065
Deprecates managed provider/client syncing
2020-12-14 12:01:18 -08:00
Kieran Prasch
2eefc07d31
Deprecates internal geth process mode.
2020-12-09 17:39:42 -08:00
Kieran Prasch
d21d7ee947
Additional help text and accompanying test; Relocate help test to CLI unit.
2020-12-09 14:10:03 -08:00
Kieran R. Prasch
c51c4a7f09
Character cards are verifiable
2020-12-08 23:55:10 -08:00
Kieran Prasch
66ada04432
Relax regex testing for contract versioning.
2020-12-05 08:16:27 -08:00
Kieran Prasch
e8370513f8
Increase maximum acceptable version length in regex test for contracts.
2020-12-03 16:48:04 -08:00
Kieran Prasch
a16691bd62
Return of import remappings.
2020-12-03 16:48:33 +03:00
Kieran Prasch
d40c422ceb
Use absoute import paths for nucypher
2020-12-03 16:48:30 +03:00
Kieran Prasch
70cf785c7f
Arrange tests to respect upstream changes; Conventionalize testerchain class attrs; Accept nonce atability testing with delay.
2020-12-03 16:48:30 +03:00
Kieran R. Prasch
7b0896f121
hypothesis validation for devdoc regex. Finish test split.
2020-12-03 16:48:29 +03:00
Kieran R. Prasch
3e648673f6
Better support for programatic usage of help paths.
2020-11-23 11:58:05 -08:00
Kieran R. Prasch
9299ab186d
newsfragment for PR #2446
2020-11-18 20:07:19 -08:00
David Núñez
3b70b06a8a
Support for user-provided gas price via a fixed-price gas strategy
2020-11-06 12:19:34 +01:00
David Núñez
7f45dedecf
Merge pull request #2412 from cygnusv/llaves
...
Use NuCypher Logger instead of Twisted Logger. Closes #2404
2020-11-06 12:17:14 +01:00
jMyles
c4786f551a
No longer are there 'serving' domains and 'learning' domains. Everybody just has a domain.
2020-11-03 18:13:15 -07:00
David Núñez
03b7545a92
Additional test cases for loggers
2020-11-03 12:03:09 +01:00
David Núñez
67596a8aec
Change NuCypherLogger behavior to always escape curly braces.
...
The rationale is that it's unclear how to justify the previous behavior with some edge cases like `{{}`, which was `{}`.
Also unit tests are improved even further.
2020-10-30 21:53:14 +01:00
David Núñez
1d750af1f9
Even more detailed tests for NuCypher logger: now with JSON observer
2020-10-30 20:55:56 +01:00
jMyles
38958f69ea
Adding assertions to make sure that the error handler is working and emitting logs.
2020-10-28 08:40:33 -06:00
jMyles
4c17201be2
Moving tests over to unit package.
2020-10-28 07:21:39 -06: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
David Núñez
32a8d92320
Enriching web3 gas strategies: better error messages; expected confirmation times
2020-10-19 18:59:28 +02:00
David Núñez
9b87786510
Create a gas strategies module in nucypher.utilities
2020-10-19 18:52:22 +02:00
derekpierre
e27f7ef482
Reduce the frequency of the prometheus metrics collection.
2020-10-16 13:06:28 -04:00
Kieran Prasch
4d86930ffd
Include missing lisence file to avoid precommit hook failures.
2020-10-14 15:33:07 -07:00
tuxxy
828a630c0e
Remove treasure_map_id param from receive_treasure_map API endpoint
...
Fix up logic and add tests. Additionally, skip test_mass_treasure_map_placement
2020-10-13 10:01:37 +02:00
tuxxy
46e1fdd4c1
Create a TreasureMap datastore record and move model tests to test_datastore_models
...
Move test_datastore_models to unit tests
2020-10-13 10:01:37 +02:00
derekpierre
c979083a81
Handle the inlcusive block range when filtering events.
2020-10-02 09:29:42 -04:00
K Prasch
7edcdc4f9e
Merge pull request #2287 from derekpierre/try-retry
...
Add default retry functionality to EthereumClients
2020-09-29 19:11:14 -07:00
derekpierre
3e8834e174
Code cleanup including reusing existing add_middleware function, and general cleanup of tests.
2020-09-25 09:43:04 -04:00
derekpierre
43ea03f022
Add retry middleware for Infura.
2020-09-24 21:45:38 -04:00
derekpierre
96084fb1b9
Remove infura:// scheme for infura specific provider - it isn't used.
2020-09-24 19:32:08 -04:00
derekpierre
cc9ea699c9
Use Web3 middleware, instead of modifying web3 provider classes, to automatically retry requests based on response/exception returned.
...
Add unit test for AlchemyClient
2020-09-24 19:32:09 -04:00
derekpierre
7f362e0c24
Refactor name of retry callable parameter.
2020-09-24 19:32:08 -04:00
derekpierre
9e8df7509f
Initial work for retry functionality with Alchemy providers.
2020-09-24 19:32:08 -04:00
David Núñez
0fb2cad64a
Relocate keypairs.py from datastore to crypto
2020-09-24 20:28:27 +02:00
David Núñez
064972e800
Some unit tests reorganization
2020-09-24 20:27:13 +02:00
Kieran Prasch
11c8021363
Rework trezor transaction signing so that operations on the tx dictionary are non-mutative
2020-09-23 21:09:59 -07:00
Kieran Prasch
fbda526cbd
Prevent CI from importing libusb1
2020-09-23 13:28:28 -07:00
Kieran Prasch
d1966a9451
Lazier evaluation of trezor derivation root
2020-09-23 13:08:23 -07:00
Kieran Prasch
f526b72790
SLIP44 support and EIP-155 compliance for trezor testnet derivation paths
2020-09-22 21:19:24 -07:00
Kieran Prasch
69b6cd1cd0
Repond to RFCs in PR #2220
2020-09-18 13:59:49 -07:00
Kieran R. Prasch
765adb0310
Allow module-scoped trezor imports.
2020-09-17 13:26:38 -07:00
Kieran R. Prasch
8f6def2851
Respond to RFCs - Returns filesystem integration tests to thier home.
2020-09-17 13:26:38 -07:00
Kieran Prasch
6a0e1eeb17
Accomodate basic trezor signer URI scheme; Fixturize mocked trezorlib components
2020-09-17 13:26:38 -07:00
Kieran Prasch
9677b25fb3
Consolodate web3 signer unit tests; Improvements to trezor method decoration.
2020-09-17 13:26:38 -07:00
derekpierre
d79b878c12
Added unit test for Trezor transaction format conversion.
2020-09-17 13:26:38 -07:00
Derek Pierre
c10b9665ce
Merge pull request #2245 from derekpierre/prometheus-events-throttle
...
Batch/Throttle events filter results 1000 (default) blocks at a time for CommitmentMade prometheus metrics collector
2020-09-16 15:06:06 -04:00
David Núñez
822dad77de
Add docstrings to the aragon module classes. Clarify usage of a DAORegistry exception
2020-09-15 10:04:42 +02:00
David Núñez
e03c65b969
Unified approach to construct contract registries filepaths
2020-09-15 10:04:42 +02:00
David Núñez
b29ab877ca
Introducing a DAO registry to store the DAO instances' address and type
...
* The concept of "instance" here refers to the fact of the same Aragon contract being deployed several times with different uses
* This registry is per network (if it has a DAO), so it's in the same directory than the contract registry
2020-09-15 10:04:42 +02:00
David Núñez
0d8826ccb1
Test encoding of multiple actions
2020-09-15 10:04:42 +02:00
David Núñez
0100ce3b47
Test encoding of ContractFunction with a mock web3 contract
2020-09-15 10:04:42 +02:00
David Núñez
a32a187416
Generalize action encoding to support also ContractFunctions and HexStr input
2020-09-15 10:04:42 +02:00
David Núñez
d33e6fa5f2
Initial implementation and test of Aragon's CallScript encoding logic
2020-09-15 10:04:42 +02:00
derekpierre
7a9c57dcb4
Ensure that --metrics-port is specified when --prometheus is used when running ursula.
...
Added/Cleaned up some tests
2020-09-14 10:23:16 -04:00
derekpierre
0180bc8625
Add unit test for BaseMetricsCollector.
2020-09-14 10:22:29 -04:00
derekpierre
4d511f1267
Added unit test for estimating block number for a period.
2020-09-14 10:22:06 -04:00
jMyles
8dead4d333
In the fixture we trust.
2020-09-05 18:13:01 -07:00
jMyles
de266be0cf
Resolving import conflicts with main.
2020-08-31 01:07:27 -07:00
David Núñez
066fd8461d
Renaming Oracles to Datafeeds
2020-08-28 18:00:19 +02:00
David Núñez
231c3c80f9
Better name for the EthereumClient method to get gas prices for transactions
2020-08-28 18:00:19 +02:00
David Núñez
ab0369b56e
Some touches to the Oracles module: relocate __repr__, improved reference to oracle exception, testing speed names
...
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>
2020-08-28 18:00:19 +02:00
David Núñez
342ac40e3e
Testing Etherchain and Upvest oracle gas strategies
2020-08-28 18:00:19 +02:00
David Núñez
d6c986d9bb
First pass at integrating gas price oracles
2020-08-28 18:00:19 +02:00
David Núñez
1883624c44
New method EthereumClient.generate_gas_price. Gives a gas price according to current gas strategy
2020-08-28 18:00:19 +02:00
David Núñez
39404e4e5e
Fixing bug in BlockchainInterface.get_gas_strategy() for callable inputs
...
Unit tests for this method
2020-08-28 18:00:19 +02:00
Kieran R. Prasch
efc5fba094
Adds missing license in several modules. Fixes EOF. Comment for precommit test regarding addional setup.
2020-08-25 07:09:59 -07:00
Kieran R. Prasch
19f438c277
Move the slowest unit test to integration tests since it hits the disk.
2020-08-25 07:09:59 -07:00
Kieran R. Prasch
abf8ada3ed
Uses a local context for rough economics test (was getiing very small errors.)
2020-08-25 07:09:59 -07:00
jMyles
0de8e25132
Merge commit from main (and merge candidate into main.)
2020-08-21 20:32:45 -07:00
vzotova
bfa2da251f
Apply suggestions from code review #2170
...
Co-authored-by: K Prasch <kieranprasch@gmail.com>
Co-authored-by: David Núñez <david@nucypher.com>
2020-08-20 00:49:20 +03:00
vzotova
f85d1f6b69
Cashing registry id
2020-08-20 00:46:04 +03: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
fc859440cf
Eh, unit test reflecting incorrect LMDB_MAP_SIZE.
2020-08-18 05:10:44 -07:00
David Núñez
0d9f95ee85
Unit tests for WorkOrder
2020-08-14 12:15:16 -07:00
David Núñez
13c636f26a
Improve input validation of PRETask.get_specification() and add test
2020-08-14 12:15:16 -07:00
David Núñez
74757a9ab9
Fixed size for decentralized identity evidence (it's 65, btw)
2020-08-14 12:15:16 -07:00
David Núñez
ef692f3474
Basic unit tests for PRETask
2020-08-14 12:15:16 -07:00
jMyles
7b0e8110bd
Tests were hanging.
2020-08-10 12:54:05 -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
tuxxy
d033c0b318
Respond to review changes
2020-08-10 15:38:59 +02:00
David Núñez
7a043cb80a
Unit tests for new Logger
2020-08-08 04:11:32 +02:00
damon
6d79d8db7b
test fixes resulting from change in keys
2020-06-17 11:31:48 -07:00
K Prasch
f4b64fc365
Merge pull request #2069 from derekpierre/metrics-iteration
...
Initial Refactor of ursula prometheus metrics work from #1923
2020-06-15 09:36:44 -07:00
derekpierre
f60aa70203
Fix failing unit test
2020-06-12 11:03:01 -04:00
derekpierre
6a578f034a
Fixed issues related to manual testing. General code cleanup.
...
I believe we are now on par with original functionality.
2020-06-09 14:13:32 -04:00
derekpierre
591d1cbec5
Fix Ursula typing and some general cleanup.
2020-06-09 08:50:18 -04:00
derekpierre
a37c5661df
Initial refactor of prometheus metric collection. Use of collection of individual metric collectors.
2020-06-09 08:50:18 -04:00
derekpierre
d282900bd0
Re-organize prometheus tests into the unit testing category
2020-06-09 08:50:18 -04:00
derekpierre
28b29edd70
Initial refactor of prometheus metrics configuration.
2020-06-09 08:50:18 -04:00
David Núñez
3c71c708c2
Unit tests for EthereumClient.wait_for_receipt()
...
Some code changes based on test feedback
2020-06-07 02:10:26 +02:00
David Núñez
dfa812e42f
Unit tests for EthereumClient.block_until_enough_confirmations()
2020-06-05 04:08:55 +02:00
David Núñez
af0b636098
Update tests to current approach for block confirmations
2020-06-05 04:08:55 +02:00
David Núñez
b0e9a40f9c
...and relocate and improve tests for get_confirmations
2020-06-05 04:05:39 +02:00
Kieran Prasch
28cce2fccc
Reorganize tests into multiple suites.
2020-05-27 14:11:25 -07:00