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

Unified Diff: juju/testing/conn.go

Issue 13481043: Introduce the format 1.16 for agent confg.
Patch Set: Introduce the format 1.16 for agent confg. Created 11 years, 7 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
Index: juju/testing/conn.go
=== modified file 'juju/testing/conn.go'
--- juju/testing/conn.go 2013-09-11 12:18:04 +0000
+++ juju/testing/conn.go 2013-09-11 22:12:29 +0000
@@ -11,6 +11,7 @@
gc "launchpad.net/gocheck"
+ "launchpad.net/juju-core/agent"
"launchpad.net/juju-core/charm"
"launchpad.net/juju-core/constraints"
"launchpad.net/juju-core/environs"
@@ -303,3 +304,18 @@
c.Assert(err, gc.IsNil)
return sch
}
+
+func (s *JujuConnSuite) AgentConfigForTag(c *gc.C, tag string) agent.Config {
+ config, err := agent.NewAgentConfig(
+ agent.AgentConfigParams{
+ DataDir: s.DataDir(),
+ Tag: tag,
+ Password: "dummy-secret",
+ Nonce: "nonce",
+ StateAddresses: s.StateInfo(c).Addrs,
+ APIAddresses: s.APIInfo(c).Addrs,
+ CACert: []byte(testing.CACert),
+ })
+ c.Assert(err, gc.IsNil)
+ return config
+}

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