Merge lp:~thumper/juju-core/verify-storage-move into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1939 |
Proposed branch: | lp:~thumper/juju-core/verify-storage-move |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
478 lines (+116/-73) 10 files modified
cmd/juju/bootstrap.go (+6/-0) cmd/juju/bootstrap_test.go (+29/-8) environs/bootstrap/bootstrap.go (+10/-19) environs/emptystorage.go (+0/-25) environs/emptystorage_test.go (+2/-2) environs/jujutest/livetests.go (+6/-2) environs/jujutest/tests.go (+9/-5) environs/open.go (+30/-2) environs/open_test.go (+3/-3) provider/dummy/environs.go (+21/-7) |
To merge this branch: | bzr merge lp:~thumper/juju-core/verify-storage-move |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+188974@code.launchpad.net |
Commit message
Fail earlier when bootstrapping if up already.
I broke apart the VerifyBootstrap method into two:
EnsureNotBoot
VerifyStorage
Well I didn't create the second, just didn't call it
from the EnsureNotBootst
The ensure method is now called in the command bootstrap
prior to any upload tools checks.
However the implication of this was much futher reaching
than I expected. Many tests assumed that bootstrap.Bootstrap
was enough to bootstrap and environment, and that it would
complain if already bootstrapped. Since the complaining was
moved into the command function, some changes had to be made.
Since some of the tests were refactored to check the storage,
this required making the dummy provider actually write the
provider-state into storage like a normal provider.
I moved the VerifyStorage out of emptystorage.go and into open.go
as it seemed better fitting there (and the comment actually
makes sense now).
Also used the environs constant for the VerificationFil
Description of the change
Fail earlier when bootstrapping if up already.
I broke apart the VerifyBootstrap method into two:
EnsureNotBoot
VerifyStorage
Well I didn't create the second, just didn't call it
from the EnsureNotBootst
The ensure method is now called in the command bootstrap
prior to any upload tools checks.
However the implication of this was much futher reaching
than I expected. Many tests assumed that bootstrap.Bootstrap
was enough to bootstrap and environment, and that it would
complain if already bootstrapped. Since the complaining was
moved into the command function, some changes had to be made.
Since some of the tests were refactored to check the storage,
this required making the dummy provider actually write the
provider-state into storage like a normal provider.
I moved the VerifyStorage out of emptystorage.go and into open.go
as it seemed better fitting there (and the comment actually
makes sense now).
Also used the environs constant for the VerificationFil
Reviewers: mp+188974_ code.launchpad. net,
Message:
Please take a look.
Description:
Fail earlier when bootstrapping if up already.
I broke apart the VerifyBootstrap method into two: tstrapped rapped call.
EnsureNotBoo
VerifyStorage
Well I didn't create the second, just didn't call it
from the EnsureNotBootst
The ensure method is now called in the command bootstrap
prior to any upload tools checks.
However the implication of this was much futher reaching
than I expected. Many tests assumed that bootstrap.Bootstrap
was enough to bootstrap and environment, and that it would
complain if already bootstrapped. Since the complaining was
moved into the command function, some changes had to be made.
Since some of the tests were refactored to check the storage,
this required making the dummy provider actually write the
provider-state into storage like a normal provider.
I moved the VerifyStorage out of emptystorage.go and into open.go
as it seemed better fitting there (and the comment actually
makes sense now).
Also used the environs constant for the VerificationFil ename.
https:/ /code.launchpad .net/~thumper/ juju-core/ verify- storage- move/+merge/ 188974
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/14279044/
Affected files (+119, -74 lines): bootstrap. go bootstrap_ test.go bootstrap/ bootstrap. go emptystorage. go emptystorage_ test.go jujutest/ livetests. go jujutest/ tests.go open_test. go dummy/environs. go
A [revision details]
M cmd/juju/
M cmd/juju/
M environs/
M environs/
M environs/
M environs/
M environs/
M environs/open.go
M environs/
M provider/