Example #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.*")
}
Example #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.*")
}
Example #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)
}