~rogpeppe/juju-core/128-jujud-bootstrap-do-not-use-bootstrapped-environment

« back to all changes in this revision

Viewing changes to cmd/juju/cmd_test.go

  • Committer: Roger Peppe
  • Date: 2012-10-12 13:51:07 UTC
  • Revision ID: roger.peppe@canonical.com-20121012135107-03ajfd8mlijzc2ri
cmd/{jujud, juju}: do not use bootstrapped state when testing bootstrap

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
        return
126
126
}
127
127
 
128
 
func (*CmdSuite) TestBootstrapCommand(c *C) {
 
128
func (s *CmdSuite) TestBootstrapCommand(c *C) {
 
129
        // Revert to an unbootstrapped state.
 
130
        s.Reset(c, false)
 
131
        s.JujuConnSuite.WriteConfig(envConfig)
129
132
        // normal bootstrap
130
133
        opc, errc := runCommand(new(BootstrapCommand))
131
134
        c.Check(<-errc, IsNil)