(c *C)
| 273 | } |
| 274 | |
| 275 | func (s *ConfigSuite) TestValidateInvalidRemoteKey(c *C) { |
| 276 | config := &Config{ |
| 277 | Remotes: map[string]*RemoteConfig{ |
| 278 | "bar": {Name: "foo"}, |
| 279 | }, |
| 280 | } |
| 281 | |
| 282 | c.Assert(config.Validate(), Equals, ErrInvalid) |
| 283 | } |
| 284 | |
| 285 | func (s *ConfigSuite) TestRemoteConfigValidateMissingURL(c *C) { |
| 286 | config := &RemoteConfig{Name: "foo"} |