{"push_id":551768678,"size":4,"distinct_size":4,"ref":"refs/heads/master","head":"624640881fb780db074634368f0580bfc6ccd207","before":"029fec890f3b818290ff96d740a7ec0a2693a5ba","commits":[{"sha":"06851d9fe575409b64c6a0c11160e81e5213cde4","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@penhey.net","name":"Tim Penhey"},"message":"Make the rest of the apiserver handle multiple environments.","distinct":true,"url":"https://api.github.com/repos/juju/juju/commits/06851d9fe575409b64c6a0c11160e81e5213cde4"},{"sha":"ab4a6da6cb95a23075846df476d01981e8dcff90","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@penhey.net","name":"Tim Penhey"},"message":"Oops, forgot to add the test file.","distinct":true,"url":"https://api.github.com/repos/juju/juju/commits/ab4a6da6cb95a23075846df476d01981e8dcff90"},{"sha":"08a99d27c2be566878dc1bed0dcfab9dd0fbafe3","author":{"email":"5ee0edb9e2229c0838f1959779f1949031de0123@penhey.net","name":"Tim Penhey"},"message":"Tweak the validation.","distinct":true,"url":"https://api.github.com/repos/juju/juju/commits/08a99d27c2be566878dc1bed0dcfab9dd0fbafe3"},{"sha":"624640881fb780db074634368f0580bfc6ccd207","author":{"email":"28c2b79e213f53c52a14677e00898d5b855059a0@users.noreply.github.com","name":"Juju bot"},"message":"Merge pull request #1455 from howbazaar/httphandler-env-uuid-verification\n\nMake the rest of the apiserver handle multiple environments.\n\nThe httpHandler needed to be updated to handle environment validation for non state server environments.  I moved the validation code that was being used by the apiHandler into utils and gave it a few more args, and explicit tests (utils_test.go).\r\n\r\nA key part I noticed was that the *state.State value that was used by the various concrete httpHandler implementations had to be one that was only there for the session.  To make this happen, I created the stateWrapper.  The authentication is then hung off this as it is environment dependent.\r\n\r\nExtra tests were added to each of the concrete handlers to test for new environments.\r\n\r\nThe debuglog handler only used the httpHandler for authentication, and not for the state connection.  We need some thought around how to handle the logging across multiple environments, but we knew this before.\r\n\r\nThe backup endpoint is only valid for the state server environment - this we also knew is an issue to be solved later.\r\n\r\nThe order of the embedded suites in the JujuConnSuite was altered so the cleanup code is run before the mgo cleanup, that way we can have cleanup functions that close state connections.\n\n(Review request: http://reviews.vapour.ws/r/776/)","distinct":true,"url":"https://api.github.com/repos/juju/juju/commits/624640881fb780db074634368f0580bfc6ccd207"}]}