(c *C)
| 1166 | } |
| 1167 | |
| 1168 | func (s *RemoteSuite) TestPushNonExistentEndpoint(c *C) { |
| 1169 | r := NewRemote(nil, &config.RemoteConfig{Name: "foo", URLs: []string{"ssh://non-existent/foo.git"}}) |
| 1170 | err := r.Push(&PushOptions{}) |
| 1171 | c.Assert(err, NotNil) |
| 1172 | } |
| 1173 | |
| 1174 | func (s *RemoteSuite) TestPushOverriddenEndpoint(c *C) { |
| 1175 | r := NewRemote(nil, &config.RemoteConfig{Name: "origin", URLs: []string{"http://perfectly-valid-url.example.com"}}) |