示例#1
0
func (s *poolSuite) TestListFilterUnregisteredProvider(c *gc.C) {
	s.state.envName = "noprovidersregistered"
	valid, err := apiserverstorage.ValidateProviders(
		s.api,
		[]string{validProvider})
	s.assertError(c, valid, err, ".*not supported.*")
}
示例#2
0
func (s *poolSuite) TestListFilterUnknownProvider(c *gc.C) {
	s.registerProviders(c)
	valid, err := apiserverstorage.ValidateProviders(
		s.api,
		[]string{invalidProvider})
	s.assertError(c, valid, err, ".*not supported.*")
}
示例#3
0
func (s *poolSuite) TestListFilterValidProviders(c *gc.C) {
	s.registerProviders(c)
	valid, err := apiserverstorage.ValidateProviders(
		s.api,
		[]string{validProvider})
	s.assertNoError(c, valid, err)
}