Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
apiserver: ALWAYS return apiserver.UpgradeInProgress #4629
Conversation
davecheney
reviewed
Mar 7, 2016
| @@ -527,7 +527,7 @@ func (s *loginSuite) TestLoginValidationDuringUpgrade(c *gc.C) { | ||
| c.Assert(err, jc.ErrorIsNil) | ||
| err = st.APICall("Client", 1, "", "DestroyModel", nil, nil) | ||
| - c.Assert(err, gc.ErrorMatches, ".*upgrade in progress - Juju functionality is limited.*") | ||
| + c.Assert(errors.Cause(err), gc.DeepEquals, &rpc.RequestError{Message: "upgrade in progress", Code: ""}) |
davecheney
Mar 7, 2016
Contributor
This still isn't right, the Code should be "upgrade in progress", not the message. But at least it's coming in an rpc.RequestError.
cherylj
commented
Mar 8, 2016
|
Please hold off on merging this until after we ship beta2 (should be in the next day or so). |
|
Will do, that'll give me more time for manual testing. On Wed, Mar 9, 2016 at 4:02 AM, Cheryl Jennings notifications@github.com
|
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Tests failed |
davecheney
added some commits
Mar 7, 2016
|
$$merge$$ |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
davecheney commentedMar 7, 2016
Always, always, return apiserver.UpgradeInProgress if there is an
upgrade in progress.
(Review request: http://reviews.vapour.ws/r/4070/)