Commit Graph

237 Commits (19568c5bcd40753ce539196e44e042b5902f0622)

Author SHA1 Message Date
derekpierre 668f25bc38 Add pre-commit hook to ensure that AGPL license is included in python source files 2020-05-22 08:55:06 -04:00
Kieran Prasch 3f7d06421e
Fixes rest host determination test bug and reorders the module for faster feedback.
Ensures non-interactive 'rapid deployment' test; Remove __eq__ from configs.
2020-05-20 21:42:23 -07:00
Kieran Prasch f263e4c2a0
Promote and clear constants modules;
Partly convert constants to Pathlib, Use safe mock IP address constants.
Accommodate more pathlib in tests
2020-05-15 08:36:11 -07:00
Kieran Prasch 3b4e9b47dc
Optimize imports for the entire codebase 2020-05-15 08:34:25 -07:00
Kieran Prasch a935dc8e2d
Annihilate the sandbox 2020-05-15 08:33:38 -07:00
Kieran Prasch 93ca641441
Respond to RFCs; Sensor -> Tracker; Testing touch up/follow up. 2020-04-06 12:14:06 -07:00
K Prasch 9bc98a0384
Merge pull request #1800 from vepkenez/upload-limits-1743
Limit data size posted to Nucypher nodes to 50k
2020-04-01 09:28:20 -07:00
Kieran Prasch 285715e290
Respond to RFCs in PR #1462; Implement RestMiddleware client for self-health checks. 2020-03-31 11:05:25 -07:00
Kieran R. Prasch f4895ae1e9
Network level availability score testing; Exception handling for status flow control. Make Excuses.
Co-authored-by: derekpierre <derek.pierre@gmail.com>
2020-03-31 11:05:25 -07:00
Kieran R. Prasch 64786b572d
Allow opt-out for uptime checks via configuration and disable it during tests by default. 2020-03-31 11:05:25 -07:00
Kieran R. Prasch d6df4af401
Passing tests with @michwill's scoring suggestions. 2020-03-31 11:05:25 -07:00
Kieran R. Prasch e02628b032
Understand 1.0 to indicate higher availability. 2020-03-31 11:05:25 -07:00
Kieran R. Prasch b055d40c4f
Building on threaded tests for self-checks. Fixes several design bugs caught in-test on AvailabilitySensor. 2020-03-31 11:05:25 -07:00
Kieran R. Prasch 5c9fb6823f
Demonstrates a method to test self-availablity checks in successful conditions 2020-03-31 11:05:25 -07:00
Kieran R. Prasch 2b8533abb8
Sheepish attempt at threading availability loop tests. 2020-03-31 11:05:25 -07:00
damon a437feac9a hendrix handles content length validation 2020-03-26 13:26:03 -07:00
damon 308d354fd6 implement non-working flask implementation of MAX_CONTENT_LENGTH 2020-03-26 13:26:03 -07:00
jMyles d6d73612bb This lives in learning tests now. 2020-01-08 16:43:39 -08:00
jMyles 264b18e232 The end of automatic mixed operating mode. Removes and cleans up lots of federated_only kwargs. Closes #410. 2020-01-08 16:43:39 -08:00
jMyles bab41dd398 This mock needs to know about the node now. 2020-01-08 16:43:39 -08:00
jMyles 93d1f7f3dc It is no longer the case that Alice will get NotEnoughNodes here; in fact she can't help but learn about (and verify) the nodes she needs at grant time. 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 32593b432c Flask wants testing set to true in order for this to be treated like a test client. 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
jMyles f7e90f4bc3 Updating test to account for use of NodeSprout. 2020-01-08 16:43:39 -08:00
jMyles bc6950dd8f Better tracking of mock verifications. 2020-01-08 16:43:39 -08:00
jMyles 0555018ff1 Test showing #1450. 2020-01-08 16:43:39 -08:00
jMyles cd29869ac4 Crazy web of patches. These are the minimum mocks required to produce 5000 Ursulas in the timeframe required for a test. 2020-01-08 16:43:39 -08:00
jMyles d329b98293 A fast mock public key. 2020-01-08 16:43:39 -08:00
jMyles 6a336aecbd Insane monkey patching block. This is how you make several thousand Ursulas in a test. 2020-01-08 16:43:39 -08:00
Kieran R. Prasch 9059ddf660 Extricate Status Apps. 2019-11-25 16:22:50 -08:00
derekpierre 0417f3540a Fixed Ursula status pages test to pass once federated ursula status pages work
Add circleci_only marker for tests
2019-11-25 16:22:50 -08:00
derekpierre 748fd0e34d Update reasoning for skipping Ursula status page tests 2019-11-25 16:22:50 -08:00
derekpierre 7daedf4bf6 Initial code to transition tests to dash[testing] from pytest-dash.
Note, tests are skipped and don't yet work with dash[testing] - this is to allow for CI builds to pass
2019-11-25 16:22:50 -08:00
derekpierre b2e98930e4 Setup tests to work once latest stable Chrome version can be used by instapy-chromedriver
Specify named parameters to UrsulaStatusPage
2019-11-25 16:22:50 -08:00
derekpierre 5335eae273 Moe/Ursula status page: separate network tests for status pages into subfolder.
Only tests in the network folder itself are run (not subdirectories)
Created status subdirectory for status tests so that they are run separately
2019-11-25 16:22:50 -08:00
derekpierre 9106231ccb Moe/Ursula status page: Updated unit tests for ursula status page
Hooked up pytest-dash/selenium for UI test
Removed extra logging
2019-11-25 16:22:50 -08:00
Kieran R. Prasch 64d40a7f80 Whoops! Restores 'address' and respectively 2019-08-27 09:56:41 -07:00
Kieran Prasch 58f34dac7b Checkpoint #4 - Fixes policy sampling bugs - continue reflow fixes. 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 324c2805f5 Checkpoint #2 - Refactor Policy, and Blockchain / Registry Reflow. 2019-08-27 09:54:14 -07:00
Kieran Prasch d04094c1e9 Skip Vladimir tests in accordance with Issue #1075 2019-07-04 11:23:49 +02:00
David Núñez 21bb66d0c3 Fix all network tests and almost all character tests. 2019-07-04 11:23:49 +02:00
Kieran Prasch add336af3f Ensure that known_nodes passed into configs are retained for re-use 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 877833aaf3 Understand Staker and Staking to be separate ideas. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 3a80eec247 Goodbye, Three Agents. Hello, Agency. 2019-07-04 11:22:38 +02:00
Kieran R. Prasch 5551ce950c MinerEscrow -> StakingEscrow, and MiningAdjudicator -> Adjudicator in agency, and in-test 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