Example #1
0
func (s *poolSuite) TestListFilterInvalidNames(c *gc.C) {
	valid, err := apiserverstorage.ValidateNames(
		s.api,
		[]string{invalidName})
	s.assertError(c, valid, err, ".*not valid.*")
}
Example #2
0
func (s *poolSuite) TestListFilterValidNames(c *gc.C) {
	valid, err := apiserverstorage.ValidateNames(
		s.api,
		[]string{validName})
	s.assertNoError(c, valid, err)
}