(c *C)
| 1196 | } |
| 1197 | |
| 1198 | func (s *RemoteSuite) TestPushInvalidSchemaEndpoint(c *C) { |
| 1199 | r := NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: []string{"qux://foo"}}) |
| 1200 | err := r.Push(&PushOptions{}) |
| 1201 | c.Assert(err, ErrorMatches, ".*unsupported scheme.*") |
| 1202 | } |
| 1203 | |
| 1204 | func (s *RemoteSuite) TestPushInvalidFetchOptions(c *C) { |
| 1205 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"qux://foo"}}) |