Merge lp:~thumper/juju-core/test-import-fix into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1484 |
Proposed branch: | lp:~thumper/juju-core/test-import-fix |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
216 lines (+41/-39) 2 files modified
container/lxc/lxc_test.go (+33/-32) container/lxc/test.go (+8/-7) |
To merge this branch: | bzr merge lp:~thumper/juju-core/test-import-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+175430@code.launchpad.net |
Commit message
Update the container tests to use gc prefix.
Only import name changes, nothing else.
Description of the change
Update the container tests to use gc prefix.
Only import name changes, nothing else.
To post a comment you must log in.
Reviewers: mp+175430_ code.launchpad. net,
Message:
Please take a look.
Description:
Update the container tests to use gc prefix.
Only import name changes, nothing else.
https:/ /code.launchpad .net/~thumper/ juju-core/ test-import- fix/+merge/ 175430
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/11450046/
Affected files: lxc/lxc_ test.go lxc/test. go
A [revision details]
M container/
M container/
Index: [revision details] 20130717131918- jsmkfqhgevnvnlc w
=== 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: container/ lxc/lxc_ test.go lxc/lxc_ test.go' lxc/lxc_ test.go 2013-07-15 01:16:52 +0000 lxc/lxc_ test.go 2013-07-17 22:41:36 +0000
=== modified file 'container/
--- container/
+++ container/
@@ -10,19 +10,20 @@
"path/filepath"
stdtesting "testing"
- . "launchpad. net/gocheck" net/gocheck" net/goyaml" net/juju- core/container/ lxc" net/juju- core/instance" net/juju- core/juju/ testing" net/juju- core/state" net/juju- core/testing" net/juju- core/testing/ checkers" net/juju- core/testing/ checkers" net/juju- core/version"
+ gc "launchpad.
"launchpad.
+
"launchpad.
"launchpad.
jujutesting "launchpad.
"launchpad.
"launchpad.
- . "launchpad.
+ jc "launchpad.
"launchpad.
)
func Test(t *stdtesting.T) {
- TestingT(t)
+ gc.TestingT(t)
}
type LxcSuite struct {
@@ -30,29 +31,29 @@
lxc.TestSuite
}
-var _ = Suite(&LxcSuite{}) &LxcSuite{ })
+var _ = gc.Suite(
-func (s *LxcSuite) SetUpSuite(c *C) { te.SetUpSuite( c) SetUpSuite( c)
+func (s *LxcSuite) SetUpSuite(c *gc.C) {
s.LoggingSui
s.TestSuite.
}
-func (s *LxcSuite) TearDownSuite(c *C) { TearDownSuite( c) te.TearDownSuit e(c)
+func (s *LxcSuite) TearDownSuite(c *gc.C) {
s.TestSuite.
s.LoggingSui
}
-func (s *LxcSuite) SetUpTest(c *C) { te.SetUpTest( c) SetUpTest( c)
+func (s *LxcSuite) SetUpTest(c *gc.C) {
s.LoggingSui
s.TestSuite.
}
-func (s *LxcSuite) TearDownTest(c *C) { TearDownTest( c) te.TearDownTest (c)
+func (s *LxcSuite) TearDownTest(c *gc.C) {
s.TestSuite.
s.LoggingSui
}
-func StartContainer(c *C, manager lxc.ContainerMa nager, machineId string) nager, machineId EnvironConfig( c) FakeStateInfo( machineId) FakeAPIInfo( machineId)
instance.Instance {
+func StartContainer(c *gc.C, manager lxc.ContainerMa
string) instance.Instance {
config := testing.
stateInfo := jujutesting.
apiInfo := jujutesting.
@@ -65,77 +66,77 @@
}
inst, err := manager. StartContainer( machineId, series, nonce, tools,
config, stateInfo, apiInfo)
- c.Assert(err, IsNil)
+ c.Assert(err, gc.IsNil)
return inst
}
-func (s *LxcSuite) TestStartContai ner(c *C) { ner(c *gc.C) { rManager( lxc.ManagerConf ig{})
+func (s *LxcSuite) TestStartContai
manager := lxc.NewContaine
instance := StartContainer(c, manager, "1/lxc/0")
name := string( instance. Id()) filepath. Join(s. ContainerDir, name, "lxc.conf"), IsNonEmptyFile) filepath. Join(s. ContainerDir, name, "lxc.conf"),...
// Check our container config files.
- c.Assert(
+ c.Assert(