~smoser/ubuntu/precise/juju-core/cloud-tools

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/state/environ_test.go

  • Committer: Scott Moser
  • Date: 2014-02-26 16:17:47 UTC
  • mfrom: (24.1.5 trusty-proposed)
  • Revision ID: smoser@ubuntu.com-20140226161747-dk6h7wp288370ave
* New upstream point release (LP: #1271941, #834930, #1240667, #1274210):
  - https://launchpad.net/juju-core/trunk/1.17.3
* No change rebuild with gccgo-4.9 as default gccgo. 
* d/control,rules,juju-core.{postinst,prerm}.in: Drop build of gccgo built
  binaries for architectures supported by golang gc.
* d/juju-core.postinst.in: Drop --force option when installing alternatives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
        c.Assert(s.env.Tag(), gc.Equals, expected)
29
29
}
30
30
 
 
31
func (s *EnvironSuite) TestName(c *gc.C) {
 
32
        c.Assert(s.env.Name(), gc.Equals, "testenv")
 
33
}
 
34
 
31
35
func (s *EnvironSuite) TestUUID(c *gc.C) {
32
36
        uuidA := s.env.UUID()
33
37
        c.Assert(uuidA, gc.HasLen, 36)
36
40
        s.State.Close()
37
41
        s.MgoSuite.TearDownTest(c)
38
42
        s.MgoSuite.SetUpTest(c)
39
 
        s.State = state.TestingInitialize(c, nil)
 
43
        s.State = state.TestingInitialize(c, nil, state.Policy(nil))
40
44
        env, err := s.State.Environment()
41
45
        c.Assert(err, gc.IsNil)
42
46
        uuidB := env.UUID()