Beispiel #1
0
func (s *JujuRebootSuite) TestInfo(c *gc.C) {
	rebootCmd, err := jujuc.NewJujuRebootCommand(nil)
	c.Assert(err, jc.ErrorIsNil)
	cmdInfo := rebootCmd.Info()

	c.Assert(cmdInfo.Name, gc.Equals, "juju-reboot")
	c.Assert(cmdInfo.Args, gc.Equals, "")
	c.Assert(cmdInfo.Purpose, gc.Equals, "Reboot the host machine")
}
Beispiel #2
0
func (s *JujuRebootSuite) TestNewJujuRebootCommand(c *gc.C) {
	cmd, err := jujuc.NewJujuRebootCommand(nil)
	c.Assert(err, jc.ErrorIsNil)
	c.Assert(cmd, gc.DeepEquals, &jujuc.JujuRebootCommand{})
}