Commit Graph

445 Commits (d91eacefe3593d37a6435fb56f6f221edee47f4b)

Author SHA1 Message Date
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