(c *C)
| 1184 | } |
| 1185 | |
| 1186 | func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) { |
| 1187 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}}) |
| 1188 | err := r.Push(&PushOptions{}) |
| 1189 | c.Assert(err, NotNil) |
| 1190 | } |
| 1191 | |
| 1192 | func (s *RemoteSuite) TestPushOverriddenEndpoint(c *C) { |
| 1193 | r := NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: []string{"http://perfectly-valid-url.example.com"}}) |