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

Side by Side Diff: environs/cloudinit_test.go

Issue 66540044: Added LogDir to agent conf, upgrade steps (Closed)
Patch Set: Added LogDir to agent conf, upgrade steps Created 11 years, 1 month ago
Left:
Right:
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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 Canonical Ltd. 1 // Copyright 2013 Canonical Ltd.
2 // Licensed under the AGPLv3, see LICENCE file for details. 2 // Licensed under the AGPLv3, see LICENCE file for details.
3 3
4 package environs_test 4 package environs_test
5 5
6 import ( 6 import (
7 "time" 7 "time"
8 8
9 gc "launchpad.net/gocheck" 9 gc "launchpad.net/gocheck"
10 "launchpad.net/goyaml" 10 "launchpad.net/goyaml"
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 CACert: []byte("CA CERT\n" + testing.CACert), 169 CACert: []byte("CA CERT\n" + testing.CACert),
170 Tag: "machine-10", 170 Tag: "machine-10",
171 }, 171 },
172 APIInfo: &api.Info{ 172 APIInfo: &api.Info{
173 Addrs: []string{"127.0.0.1:1234"}, 173 Addrs: []string{"127.0.0.1:1234"},
174 Password: "pw2", 174 Password: "pw2",
175 CACert: []byte("CA CERT\n" + testing.CACert), 175 CACert: []byte("CA CERT\n" + testing.CACert),
176 Tag: "machine-10", 176 Tag: "machine-10",
177 }, 177 },
178 DataDir: environs.DataDir, 178 DataDir: environs.DataDir,
179 » » LogDir: environs.LogDir, 179 » » LogDir: agent.DefaultLogDir,
180 CloudInitOutputLog: environs.CloudInitOutputLog, 180 CloudInitOutputLog: environs.CloudInitOutputLog,
181 RsyslogConfPath: environs.RsyslogConfPath, 181 RsyslogConfPath: environs.RsyslogConfPath,
182 Config: envConfig, 182 Config: envConfig,
183 StatePort: envConfig.StatePort(), 183 StatePort: envConfig.StatePort(),
184 APIPort: envConfig.APIPort(), 184 APIPort: envConfig.APIPort(),
185 SyslogPort: envConfig.SyslogPort(), 185 SyslogPort: envConfig.SyslogPort(),
186 StateServer: stateServer, 186 StateServer: stateServer,
187 AgentEnvironment: map[string]string{agent.ProviderType: " dummy"}, 187 AgentEnvironment: map[string]string{agent.ProviderType: " dummy"},
188 AuthorizedKeys: "wheredidileavemykeys", 188 AuthorizedKeys: "wheredidileavemykeys",
189 MachineAgentServiceName: "jujud-machine-10", 189 MachineAgentServiceName: "jujud-machine-10",
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 "ssh_authorized_keys": []interface{}{"wheredidileavemyke ys"}, 228 "ssh_authorized_keys": []interface{}{"wheredidileavemyke ys"},
229 }) 229 })
230 } else { 230 } else {
231 // Just check that the cloudinit config looks good, 231 // Just check that the cloudinit config looks good,
232 // and that there are more runcmds than the additional 232 // and that there are more runcmds than the additional
233 // ones we passed into ComposeUserData. 233 // ones we passed into ComposeUserData.
234 c.Check(config["apt_upgrade"], gc.Equals, true) 234 c.Check(config["apt_upgrade"], gc.Equals, true)
235 c.Check(len(runCmd) > 2, jc.IsTrue) 235 c.Check(len(runCmd) > 2, jc.IsTrue)
236 } 236 }
237 } 237 }
OLDNEW

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