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.*") }
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.*") }
func (s *poolSuite) TestListFilterValidProviders(c *gc.C) { s.registerProviders(c) valid, err := apiserverstorage.ValidateProviders( s.api, []string{validProvider}) s.assertNoError(c, valid, err) }