Exemplo n.º 1
0
func (s *CreateSuite) TestRunAPIConnectFails(c *gc.C) {
	s.command = space.NewCreateCommand(nil)
	s.AssertRunFails(c,
		"cannot connect to the API server: no environment specified",
		"myspace", "10.20.30.0/24",
	)
	// No API calls recoreded.
	s.api.CheckCallNames(c)
}
Exemplo n.º 2
0
func (s *CreateSuite) SetUpTest(c *gc.C) {
	s.BaseSpaceSuite.SetUpTest(c)
	s.command = space.NewCreateCommand(s.api)
	c.Assert(s.command, gc.NotNil)
}