Commit Graph

2222 Commits (d615587e64030f7f45e8ed9b470604963840cc77)

Author SHA1 Message Date
Kieran Prasch d615587e64 Once again, allow mypy failures.. for now 2018-09-22 21:24:35 -07:00
Kieran Prasch 9b04aee6d0 Update tests with updates to configuration and missleware 2018-09-22 21:05:11 -07:00
Kieran Prasch 6b0d7c956c Collapse Configuration classes, adjust middleware certificate validation 2018-09-22 21:04:40 -07:00
Kieran Prasch 5e10e48f54 Resolve discrepancy with NotEnoughNodes exceptions; preserve discription of multi inheretance 2018-09-22 21:03:09 -07:00
Kieran Prasch 51a3d0b1c4 Use configuration in simulate demno 2018-09-22 21:01:31 -07:00
Kieran Prasch 4c898453d7 Use strager certificate to consider arrangement 2018-09-22 16:54:41 -07:00
Kieran Prasch 239305081f Let the CLI lean on configuration defaults; slim down run_ursula to the essentials, pushing preinit logic into UrsulaConfiguration.produce 2018-09-22 15:45:51 -07:00
Kieran Prasch aaba33290d Update tests to new learner names, help with cleanup a little. 2018-09-22 15:44:37 -07:00
Kieran Prasch 13764517ac Reflect character initialization logic in NodeConfiguration subclasses; Integrate with local filesystem paths in dev and non-dev modes. 2018-09-22 15:43:35 -07:00
Kieran Prasch f7b99df465 Allow HostingKeypair to handle certi generation without a configuration filepath 2018-09-22 15:41:40 -07:00
Kieran Prasch d1daf8767c Push node metadata writing logic up in Learner; Integrate with VerifiableNode certificate deterministic certificate filename generation via common name 2018-09-22 15:39:53 -07:00
Kieran Prasch b255416b1b localize certificate references on VerifiableNode 2018-09-22 15:37:42 -07:00
Kieran Prasch 9061da4fdf Update templae configuration file 2018-09-22 15:34:54 -07:00
jMyles a09c3d8858 Reintroducing demo entry modules. 2018-09-21 21:52:57 +02:00
jMyles 7ed24bd333 Methods directly on VerifiableNode for cert handling. 2018-09-21 21:48:30 +02:00
jMyles 7f45bd020a Fixing up other cert-saving places, making middleware use existing certs and simple reference to rest interface. 2018-09-21 21:48:10 +02:00
jMyles dbe59d79e5 Removing other places whree saving logic existed; adding it to ProxyRESTRoutes so that 'anounced' nodes can be saved. 2018-09-21 21:44:19 +02:00
jMyles c5b2c9a457 OK, let's have this be the primary canonical location for the logic of automatic node certificate storage, at least for now. 2018-09-21 21:42:43 +02:00
jMyles 8df28ce369 We actually don't want to immediately learn again here, or we risk an infinite recursiion. 2018-09-21 21:41:59 +02:00
Kieran Prasch fb7a2716c6 Fix top-lvel ContractAgent bug - accept contract at agent init-time 2018-09-21 12:24:34 -07:00
Kieran Prasch b137ebbc76 Resolve typing ImportError in policy 2018-09-21 12:01:50 -07:00
Kieran Prasch 4e1fe0e659 Tone-down mypy even more 2018-09-21 11:43:07 -07:00
Kieran Prasch 37c3ffd384 Bug fixes indicated by mypy checks; More annotations for all. 2018-09-21 11:42:44 -07:00
Kieran Prasch 824ef32a85 type hints for blockchain submodules 2018-09-21 11:04:52 -07:00
Kieran Prasch ba8bfdf435 Type hints for keyring; fixes several NameErrors along the way 2018-09-21 10:47:38 -07:00
Kieran Prasch 4c02e5cd9e A huge slew of type hints and annotations to help resolve mypy checks 2018-09-21 10:16:38 -07:00
Kieran Prasch 8387602295 Skip run_ursula test due to multi calls to reactor.run during tests 2018-09-21 09:39:12 -07:00
Kieran Prasch 2bcc485f93 Add local try/finally in cli.config test to cleanup a single test dir 2018-09-21 09:03:45 -07:00
Kieran Prasch e39ffc8461 Work on lazy default configurations; NetworkMiddleware default values 2018-09-21 09:03:02 -07:00
Kieran Prasch db0219ff24 straggler Teacher -> Learner 2018-09-20 12:57:23 -07:00
Kieran Prasch 2384cbf7a0 Update fixture chatacter configurations to use local tmpdir 2018-09-20 12:54:16 -07:00
Kieran Prasch c0cde6778d Test coverage for run_ursula CLI: lone ursula 2018-09-20 12:54:16 -07:00
Kieran Prasch 6ad7d8d141 Handle db_filepath on ProxyRestServer a bit more closely 2018-09-20 12:54:16 -07:00
Kieran Prasch a5d561f9b6 type hints for crypto.api SSl functions 2018-09-20 12:54:16 -07:00
Kieran Prasch ba0a23c889 Allow for not-commital generation of filepaths for CLI; Type hints throughout 2018-09-20 12:54:16 -07:00
Kieran Prasch a8b931ad33 Additional work letting cli command fallback on Nocdeconfiguration defaults 2018-09-20 12:54:16 -07:00
jMyles 0c4db097ee Teacher is now Learner. 2018-09-20 18:39:32 +02:00
jMyles f7447d50e9 Fixing the test by copying Ursula's stamp. 2018-09-20 14:06:45 +02:00
jMyles 659a0a882a Vlad can optionally copy Ursula's signing public key now. 2018-09-20 14:06:29 +02:00
Kieran Prasch d1ffec14c2 CLI configuration test coverage; Mark unimplemented test as skip 2018-09-19 17:01:01 -07:00
Kieran Prasch b29e652e99 Name tmp CLI files seperately 2018-09-19 17:00:07 -07:00
Kieran Prasch 2ce01ccd3a Restore Ursula.from_config: use UrsulaConfiguration API 2018-09-19 16:27:00 -07:00
Kieran Prasch c2d35c887d Remove temporary databases by database engine path reference 2018-09-19 16:26:15 -07:00
Kieran Prasch c897ccb74a cache the db filepath on ProxyRestServer and ProxyRestRoutes 2018-09-19 16:25:51 -07:00
Kieran Prasch 0e9c75ada5 Add CLI Todos, Leave default calues to config classes 2018-09-19 16:25:14 -07:00
Kieran Prasch 7e403f39a2 Use pytest fixtures to cleanup temporary directories 2018-09-19 15:25:54 -07:00
Kieran Prasch d311c397a1 Include dbatabase filepath as a configuration option; Stop spraying databases during tests. 2018-09-19 14:30:53 -07:00
Kieran Prasch a63a99c3d9 Auto-initialize temp configuration in fixtures 2018-09-19 13:36:16 -07:00
Kieran Prasch 5b34800761 Use lazy and dynamic runtime path generation, with temp storage options 2018-09-19 13:21:11 -07:00
Kieran Prasch d2b35f8ed0 Further integrate NodeConfiguration with CLI 2018-09-19 13:20:29 -07:00