Merge lp:~axwalk/juju-core/lp1254642-manual-provision-apiinfo into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2105 |
Proposed branch: | lp:~axwalk/juju-core/lp1254642-manual-provision-apiinfo |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
36 lines (+22/-0) 1 file modified
environs/manual/provisioner_test.go (+22/-0) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/lp1254642-manual-provision-apiinfo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+197011@code.launchpad.net |
Commit message
environs/manual: add test for API/State info
There was a regression in manual provisioning
wherein the APIInfo was being populated with
state server (mongo) addresses. This led to
manually provisioned machines being unable to
connect to the API server.
Kapil fixed this in another branch; this is
a test to ensure that it doesn't regress
again.
Description of the change
environs/manual: add test for API/State info
There was a regression in manual provisioning
wherein the APIInfo was being populated with
state server (mongo) addresses. This led to
manually provisioned machines being unable to
connect to the API server.
Kapil fixed this in another branch; this is
a test to ensure that it doesn't regress
again.
Reviewers: mp+197011_ code.launchpad. net,
Message:
Please take a look.
Description:
environs/manual: add test for API/State info
There was a regression in manual provisioning
wherein the APIInfo was being populated with
state server (mongo) addresses. This led to
manually provisioned machines being unable to
connect to the API server.
Kapil fixed this in another branch; this is
a test to ensure that it doesn't regress
again.
https:/ /code.launchpad .net/~axwalk/ juju-core/ lp1254642- manual- provision- apiinfo/ +merge/ 197011
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/34630043/
Affected files (+24, -0 lines): manual/ provisioner_ test.go
A [revision details]
M environs/
Index: [revision details] 20131128012708- 7muo6qwh39wu805 f
=== 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: environs/ manual/ provisioner_ test.go manual/ provisioner_ test.go' manual/ provisioner_ test.go 2013-11-18 05:41:36 +0000 manual/ provisioner_ test.go 2013-11-28 05:33:34 +0000 net/juju- core/environs/ testing" net/juju- core/instance" net/juju- core/juju/ testing" net/juju- core/state" net/juju- core/state/ api/params" net/juju- core/testing/ checkers" net/juju- core/version" e(args) neConfig( c *gc.C) { c).Restore( ) e(s.getArgs( c)) State.Client( ) nfig(client, machineId, series, arch, Nonce, "/var/lib/juju") mcfg.APIInfo, gc.NotNil) mcfg.StateInfo, gc.NotNil) Environ. StateInfo( ) mcfg.APIInfo. Addrs, gc.DeepEquals, apiInfo.Addrs) mcfg.StateInfo. Addrs, gc.DeepEquals, stateInfo.Addrs)
=== modified file 'environs/
--- environs/
+++ environs/
@@ -12,6 +12,7 @@
envtesting "launchpad.
"launchpad.
"launchpad.
+ "launchpad.
"launchpad.
jc "launchpad.
"launchpad.
@@ -89,3 +90,24 @@
_, err = ProvisionMachin
c.Assert(err, gc.ErrorMatches, "error checking if provisioned: exit
status 255")
}
+
+func (s *provisionerSuite) TestCreateMachi
+ const series = "precise"
+ const arch = "amd64"
+ defer fakeSSH{Series: series, Arch: arch}.install(
+ machineId, err := ProvisionMachin
+ c.Assert(err, gc.IsNil)
+
+ // Now check what we would've configured it with.
+ client := s.APIConn.
+ mcfg, err := createMachineCo
state.Bootstrap
+ c.Assert(err, gc.IsNil)
+ c.Assert(mcfg, gc.NotNil)
+ c.Assert(
+ c.Assert(
+
+ stateInfo, apiInfo, err := s.APIConn.
+ c.Assert(err, gc.IsNil)
+ c.Assert(
+ c.Assert(
+}