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

Unified Diff: juju/testing/conn.go

Issue 6553049: all: use MgoSuite rather than ZkSuite
Patch Set: all: use MgoSuite rather than ZkSuite Created 12 years, 6 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 | « juju/deploy_test.go ('k') | state/confignode_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: juju/testing/conn.go
=== modified file 'juju/testing/conn.go'
--- juju/testing/conn.go 2012-09-12 22:31:00 +0000
+++ juju/testing/conn.go 2012-09-21 13:37:42 +0000
@@ -30,7 +30,7 @@
// $HOME is set to point to RootDir/home/ubuntu.
type JujuConnSuite struct {
testing.LoggingSuite
- testing.ZkSuite
+ testing.MgoSuite
Conn *juju.Conn
State *state.State
RootDir string // The faked-up root directory.
@@ -41,30 +41,30 @@
environments:
dummyenv:
type: dummy
- zookeeper: true
+ state-server: true
authorized-keys: 'i-am-a-key'
default-series: decrepit
`)
func (s *JujuConnSuite) SetUpSuite(c *C) {
s.LoggingSuite.SetUpSuite(c)
- s.ZkSuite.SetUpSuite(c)
+ s.MgoSuite.SetUpSuite(c)
}
func (s *JujuConnSuite) TearDownSuite(c *C) {
- s.ZkSuite.TearDownSuite(c)
+ s.MgoSuite.TearDownSuite(c)
s.LoggingSuite.TearDownSuite(c)
}
func (s *JujuConnSuite) SetUpTest(c *C) {
s.LoggingSuite.SetUpTest(c)
- s.ZkSuite.SetUpTest(c)
+ s.MgoSuite.SetUpTest(c)
s.setUpConn(c)
}
func (s *JujuConnSuite) TearDownTest(c *C) {
s.tearDownConn(c)
- s.ZkSuite.TearDownTest(c)
+ s.MgoSuite.TearDownTest(c)
s.LoggingSuite.TearDownTest(c)
}
@@ -138,10 +138,6 @@
}
}
-func (s *JujuConnSuite) StateInfo(c *C) *state.Info {
- return &state.Info{Addrs: []string{testing.ZkAddr}}
-}
-
func (s *JujuConnSuite) AddTestingCharm(c *C, name string) *state.Charm {
ch := testing.Charms.Dir("series", name)
ident := fmt.Sprintf("%s-%d", name, ch.Revision())
« no previous file with comments | « juju/deploy_test.go ('k') | state/confignode_test.go » ('j') | no next file with comments »

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