(c *C)
| 57 | } |
| 58 | |
| 59 | func (s *RemoteSuite) TestFetchOverriddenEndpoint(c *C) { |
| 60 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"http://perfectly-valid-url.example.com"}}) |
| 61 | err := r.Fetch(&FetchOptions{RemoteURL: "http://\\"}) |
| 62 | c.Assert(err, ErrorMatches, ".*invalid character.*") |
| 63 | } |
| 64 | |
| 65 | func (s *RemoteSuite) TestFetchInvalidFetchOptions(c *C) { |
| 66 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}}) |