예제 #1
0
파일: block_test.go 프로젝트: imoapps/juju
func (s *BlockCommandSuite) TestBlockCmdMoreArgs(c *gc.C) {
	_, err := testing.RunCommand(c, block.NewDestroyCommand(), "change", "too much")
	c.Assert(
		err,
		gc.ErrorMatches,
		`.*can only specify block message.*`)
}
예제 #2
0
파일: block_test.go 프로젝트: imoapps/juju
func (s *BlockCommandSuite) TestBlockDestroyOperations(c *gc.C) {
	command := block.NewDestroyCommand()
	_, err := testing.RunCommand(c, command, "TestBlockDestroyOperations")
	c.Assert(err, jc.ErrorIsNil)
	s.assertBlock(c, command.Info().Name, "TestBlockDestroyOperations")
}
예제 #3
0
파일: block_test.go 프로젝트: imoapps/juju
func (s *BlockCommandSuite) TestBlockCmdNoMessage(c *gc.C) {
	command := block.NewDestroyCommand()
	_, err := testing.RunCommand(c, command)
	c.Assert(err, jc.ErrorIsNil)
	s.assertBlock(c, command.Info().Name, "")
}