Commit Graph

62 Commits (6f52fd6ce4cd0fc8410007af80ae2e218acc855c)

Author SHA1 Message Date
David Núñez 3da6bdf087 Don't set globally a default domain in tests
Otherwise, tests are not modeling real behavior, where we don't have a default.
2020-01-19 19:58:38 +01:00
jMyles c510c3531e For test purposes, we need to mature the sprout to see its cert. 2020-01-08 16:43:39 -08:00
jMyles 923f2377ba These assertions don't work at the moment, though it's not clear how important that is. 2020-01-08 16:43:39 -08:00
jMyles 332d072c40 This needs to be eager now, as we won't verify (and thus get the tested warning) otherwise. 2020-01-08 16:43:39 -08:00
jMyles b49dcf98b3 Some more optimizations to lower test time. 2020-01-08 16:43:39 -08:00
jMyles 3f372d4053 Comments and new mocks for highperf Alice test. 2020-01-08 16:43:39 -08:00
jMyles 91e757b021 highperf mocked ursula fleet is now variable in size. 2020-01-08 16:43:39 -08:00
jMyles d06b92cd45 Testing showing JIT validation of Ursula, with TODO showing where we might eventually do that. 2020-01-08 16:43:39 -08:00
jMyles 5de196329a New fixture for high-performance mocked Alice, which is compatible with Ursulas fixture in previous commit. 2020-01-08 16:43:39 -08:00
jMyles 377d88c81c Making fixture out of high-performance mocked ursulas. 2020-01-08 16:43:39 -08:00
jMyles 367195d5e7 Moving performance mocks to separate module. 2020-01-08 16:43:39 -08:00
jMyles dd9f866ba7 Collating all mocks needed to make high-performance mock ursulas. 2020-01-08 16:43:39 -08:00
jMyles 80778dc957 Pass entire class throug in order to instantiate NodeSprout or node instance. 2020-01-08 16:43:39 -08:00
jMyles 7df1fde295 New test module for discovery phases. 2020-01-08 16:43:39 -08:00
Kieran Prasch 22fc7d16b4 Adapt PeriodTracker to WorkTracker; Geth client duration bug fix. 2019-08-31 11:32:25 -07:00
Kieran R. Prasch 64d40a7f80 Whoops! Restores 'address' and respectively 2019-08-27 09:56:41 -07:00
Kieran Prasch 2a299aaca1 Checkpoint #3 - Reflow StakeHolder, Stake and Wallet Management. 2019-08-27 09:56:36 -07:00
Kieran Prasch 69aea3f725 Checkpoint: Refactors lifecycle of Blockchain and Registry. 2019-08-27 09:54:13 -07:00
Kieran Prasch 9408463dec Refactor from_seed_and_stake_info to accept a checksum_address inclusive in the URI. 2019-08-18 11:58:04 +02:00
Kieran Prasch 70803d3e22
Post rebase renames. 2019-07-15 12:06:44 -07:00
David Núñez afbcff6b04 Introduce make_ursula_for_staker test utility, instead of activate_idle_staker fixture 2019-07-04 11:23:51 +02:00
David Núñez 5b530430dd Draft test for learning about worker with insolvent Staker. See #1075 2019-07-04 11:23:50 +02:00
Kieran Prasch 35f39001c3 Removes assumption that last web3 account is non-staking, in dialog faut-tolerance test. 2019-07-04 11:23:49 +02:00
Kieran Prasch d04094c1e9 Skip Vladimir tests in accordance with Issue #1075 2019-07-04 11:23:49 +02:00
Kieran Prasch 66b0e25165 Robust tests for BaseConfiguration API; Second layer for character configurations; Return of ABC. 2019-07-04 11:22:39 +02:00
David Núñez b9dd215421 Fix test for emission of unknown LL version warnings. Closes #1039 2019-07-04 11:22:38 +02:00
Kieran Prasch 6097c83eb7
Almost all of checksum_public_address -> checksum_address 2019-06-08 14:25:35 -07:00
Kieran Prasch 1f618addba
Perform on-chain staking-check as node verification (Fix); Handle InvalidNode exception subclasses for logging 2019-06-04 21:39:46 +03:00
Kieran R. Prasch 2ab9c303d4
Ensure node discovery verification and identity_evidence remian compadible with federated nodes 2019-06-03 23:47:05 +03:00
K Prasch 775d314f6f
Apply suggestions from code review
Co-Authored-By: David Núñez <david@nucypher.com>
2019-06-03 23:41:06 +03:00
Kieran R. Prasch eca834c00a
Handle non-staking Ursula in-tests; Annotations for failing tests, Make Ursula display name a class attr 2019-06-03 22:52:22 +03:00
Kieran R. Prasch e74ba944f8
Handle geth --dev process as a fixture to stop when finished. Additional test bug fixes, found missing assertions. 2019-06-03 22:52:22 +03:00
Kieran R. Prasch 2903c6d3e7
Adjust tests to accomodate new eip 191 and on-chain staking checks. 2019-06-03 22:52:22 +03:00
Bogdan Opanchuk e83ad3d186
Make domain names `str` instead of `bytes` throughout the code, and only convert to bytes on serialization
Fixed #1026
2019-06-03 22:52:22 +03:00
Kieran R. Prasch d5f7289515
Do not assume the existence of a global domain in test 2019-06-03 22:51:39 +03:00
David Núñez e704e7290e Duplicated tests. See tests/characters/test_ursula_prepares_to_act_as_mining_node.py 2019-05-06 13:20:21 +02:00
Kieran Prasch 88ff212f3c
Post-rebase cleanup Pt. II. 2019-03-09 17:32:04 -08:00
MacLane Wilkison 9ed5b1e6f6 Remove unused variables+imports and make PEP 8 fixes in tests 2019-02-15 15:12:33 -07:00
jMyles b0b0645e4d We don't pass certificate_filepath anymore. 2019-02-08 10:06:23 -07:00
jMyles 0578b8023c Mocking Response with namedtuple. 2019-02-02 21:02:34 -05:00
jMyles 706614cd93 Fake cert filepath for Vlad here too. 2019-01-15 15:20:17 -05:00
jMyles bed79d4fac Handling 204 response during learning. Fixes #630. 2019-01-15 15:20:17 -05:00
jMyles bf0a9e702b Test for case where Ursula knows nobody. Currently forced to fail. See #630. 2019-01-15 15:20:17 -05:00
jMyles 485a362da3 Fixes to respond to RFCs: GLOBAL_DOMAIN docstring, bad line break. 2018-12-09 03:28:37 -05:00
jMyles f19601912d Fixed imports and some other formatting issues following merge commit. 2018-12-06 21:19:57 -05:00
jMyles a3fb853ffa Pre-arranged merge commit between @kprasch and myself to reconcile our branches.
Quite a few conflicts resolved.
2018-12-06 20:55:09 -05:00
jMyles b919e84184 Test showing that POSTing version messiness results in sane handling. 2018-12-06 18:21:41 -05:00
jMyles 46a0fee06f Passing domains and versions all the way through de/serialization flow and template. 2018-12-06 18:21:41 -05:00
jMyles b129f3298d More sane error messages for node mismatches; tests for the same. 2018-12-06 18:19:57 -05:00
jMyles b767405d02 That's what from_bytes is supposed to look like. 2018-12-06 18:18:23 -05:00