Commit Graph
16 Commits
Author SHA1 Message Date
Tim Bruijnzeels f23bc90b4a Publishing at the server, from the client, integration test working. 2018-12-05 17:04:01 +01:00
Tim Bruijnzeels 09189d54df Perform a list query, and parse the reply. 2018-12-04 16:14:53 +01:00
Tim Bruijnzeels 77c0346612 Expose http handler for receiving list and publish requests. Note this will be tested in the integration test once the client side is implemented. 2018-12-03 15:35:47 +01:00
Tim Bruijnzeels 7817e27e93 Using reqwest instead of hyper, because synchronous requests are all we need here, both in testing and for the publication client 2018-12-03 11:31:46 +01:00
Tim Bruijnzeels 93bba5c985 Replacing Hyper with Actix Web for the server. 2018-11-30 16:39:07 +01:00
Tim Bruijnzeels 00275d852d Moving PublisherStore into the provisioning module, rather than repo. 2018-11-26 15:08:27 +01:00
Tim Bruijnzeels b527dbb643 Combining PublisherStore and FileStore in a single Repository. Also passing config options by reference as much as possible. 2018-11-26 14:58:15 +01:00
Tim Bruijnzeels b3d73ade3d Process repository response in publisher client. 2018-11-20 15:27:02 +01:00
Tim Bruijnzeels 200191839a Let server generate a RepositoryResponse for a Publisher. Also refactored things to use PathBuf for directories, rather than String, in lots of related places. 2018-11-19 16:55:16 +01:00
Tim Bruijnzeels c8f9e491d4 Rename server.rs to daemon.rs, will have separate stateful server (eg with identity) as the next step. 2018-11-16 16:28:04 +01:00
Tim Bruijnzeels a28b132509 Extended integration test to set up client, and add that as a publisher to the server. 2018-11-16 15:45:34 +01:00
Tim Bruijnzeels febec5d16d Failed to extract generic function or macro for boiler plate around response testing in the integration test. Leaving this commented out though for discussion and future work. 2018-11-16 11:09:02 +01:00
Tim Bruijnzeels e4a1d09b53 Shorten waiting time for server to come up in integration test. 2018-11-15 12:53:13 +01:00
Tim Bruijnzeels 544b5c11a5 Integration test.. can be improved but at least starting a server and parsing a response. 2018-11-14 16:22:15 +01:00
Tim Bruijnzeels 3e2aaa93e5 Fixing warnings for integration test, leaving it as a work in progress. 2018-10-29 14:41:32 +01:00
Tim Bruijnzeels cd47bd3b25 Various fixes: keystore is immutable so it can go in an Arc, yet it can update things internally using its RWLock. Now syncing the PublisherList at start up and passing to the server. A start of an integration test was added, but it needs a whole more work to make it play with starting a hyper server for the duration of the test. 2018-10-26 16:47:29 +02:00