Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(530)

Unified Diff: environs/jujutest/livetests.go

Issue 6458161: state: add initial config map to Initialise (Closed)
Patch Set: state: add initial config map to Initialise Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « environs/dummy/environs.go ('k') | state/open.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/jujutest/livetests.go
=== modified file 'environs/jujutest/livetests.go'
--- environs/jujutest/livetests.go 2012-08-17 15:44:41 +0000
+++ environs/jujutest/livetests.go 2012-08-24 01:45:40 +0000
@@ -164,9 +164,20 @@
st, err := conn.State()
c.Assert(err, IsNil)
+ // check that the minimum configuration is present in the environment
+ cfg, err := st.EnvironConfig()
// Check that we can upgrade the machine agent on the bootstrap machine.
m, err := st.Machine(0)
c.Assert(err, IsNil)
+ v, ok := cfg.Get("name")
+ c.Assert(ok, Equals, true)
+ c.Assert(v, Not(Equals), "")
+ v, ok = cfg.Get("type")
+ c.Assert(ok, Equals, true)
+ c.Assert(v, Not(Equals), "")
+ v, ok = cfg.Get("authorized-keys")
+ c.Assert(ok, Equals, true)
+ c.Assert(v, Not(Equals), "")
t.checkUpgradeMachineAgent(c, m)
« no previous file with comments | « environs/dummy/environs.go ('k') | state/open.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 204d58d