Merge lp:~axwalk/juju-core/manual-auto-generate-storageauthkey into lp:~go-bot/juju-core/trunk
Proposed by
Andrew Wilkins
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2273 |
Proposed branch: | lp:~axwalk/juju-core/manual-auto-generate-storageauthkey |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
201 lines (+66/-19) 6 files modified
cmd/jujud/machine_test.go (+1/-1) provider/null/config_test.go (+9/-9) provider/null/environ_test.go (+3/-3) provider/null/export_test.go (+8/-0) provider/null/provider.go (+13/-6) provider/null/provider_test.go (+32/-0) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/manual-auto-generate-storageauthkey |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+203693@code.launchpad.net |
Commit message
manual: generate storage-auth-key in Prepare
Description of the change
manual: generate storage-auth-key in Prepare
To post a comment you must log in.
Reviewers: mp+203693_ code.launchpad. net,
Message:
Please take a look.
Description:
manual: generate storage-auth-key in Prepare
https:/ /code.launchpad .net/~axwalk/ juju-core/ manual- auto-generate- storageauthkey/ +merge/ 203693
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/58210043/
Affected files (+68, -19 lines): machine_ test.go null/config_ test.go null/environ_ test.go null/export_ test.go null/provider. go null/provider_ test.go
A [revision details]
M cmd/jujud/
M provider/
M provider/
A provider/
M provider/
A provider/
Index: [revision details] 20140129060438- 5kse5gkrbnxkwu2 7
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: tarmac-
+New revision: <email address hidden>
Index: cmd/jujud/ machine_ test.go machine_ test.go' machine_ test.go 2014-01-29 04:59:18 +0000 machine_ test.go 2014-01-29 10:08:01 +0000
=== modified file 'cmd/jujud/
--- cmd/jujud/
+++ cmd/jujud/
@@ -31,8 +31,8 @@
charmtesting "launchpad. net/juju- core/state/ apiserver/ charmrevisionup dater/testing" net/juju- core/state/ testing" net/juju- core/state/ watcher" net/juju- core/testing" net/juju- core/testing" net/juju- core/testing" net/juju- core/testing/ checkers" net/juju- core/testing/ testbase" net/juju- core/tools"
statetesting "launchpad.
"launchpad.
+ "launchpad.
coretesting "launchpad.
- "launchpad.
jc "launchpad.
"launchpad.
"launchpad.
Index: provider/ null/config_ test.go null/config_ test.go' null/config_ test.go 2013-12-23 06:06:40 +0000 null/config_ test.go 2014-01-29 10:08:01 +0000
=== modified file 'provider/
--- provider/
+++ provider/
@@ -21,7 +21,7 @@
var _ = gc.Suite( &configSuite{ })
-func minimalConfigVa lues() map[string] interface{ } { lues() map[string] interface{ } { interface{ }{
+func MinimalConfigVa
return map[string]
"name": "test",
"type": provider.Null,
@@ -34,8 +34,8 @@
}
}
-func minimalConfig(c *gc.C) *config.Config { lues() lues() New(config. UseDefaults, minimal)
- minimal := minimalConfigVa
+func MinimalConfig(c *gc.C) *config.Config {
+ minimal := MinimalConfigVa
testConfig, err := config.
c.Assert(err, gc.IsNil)
return testConfig
@@ -50,7 +50,7 @@
}
func (s *configSuite) TestValidateCon fig(c *gc.C) { Apply(map[ string] interface{ }{"bootstrap- host": ""}) }.Validate( testConfig, nil) }.Validate( testConfig, nil)
- testConfig := minimalConfig(c)
+ testConfig := MinimalConfig(c)
testConfig, err :=
testConfig.
c.Assert(err, gc.IsNil)
_, err = nullProvider{
@@ -61,7 +61,7 @@
_, err = nullProvider{
c.Assert(err, gc.ErrorMatches, "storage-auth-key: expected string, got
nothing")
- testConfig = minimalConfig(c) }.Validate( testConfig, nil)
+ testConfig = MinimalConfig(c)
valid, err := nullProvider{
c.Assert(err, gc.IsNil)
@@ -73,7 +73,7 @@
}
func (s *configSuite) TestConfigMutab ility(c *gc.C) { }.Validate( testConfig, nil)
- testConfig := minimalConfig(c)
+ testConfig := MinimalConfig(c)
valid, err := nullProvider{
c.Assert(err, gc.IsNil)
unknownAttrs := vali...