Commit graph

8 commits

Author SHA1 Message Date
Thong Kuah
f540ffcef6 Add frozen_string_literal to spec/lib (part 1)
Using the sed script from
https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
2019-07-26 13:25:07 +12:00
Stan Hu
660dcd5b7c Fix Bitbucket Server importer error handling
The importer would display a 500 error page if you attempted to import
using a non-existent DNS entry. This commit rescues known network issues
and consolidates them into
BitbucketServer::Connection::ConnectionError`.  The previous error
handling in the paginator doesn't work because it returns a lazy
collection.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/56154
2019-01-12 22:14:08 -08:00
Stan Hu
57d1b60f61 Handle invalid JSON from server 2018-07-27 14:29:05 -07:00
Stan Hu
450030e902 Add Accept header for JSON 2018-07-27 12:58:17 -07:00
Stan Hu
9d59616b95 Fix URL for deleting branches 2018-07-18 23:15:24 -07:00
Stan Hu
c793252e8b Add support for deleting branches via the Bitbucket Server API 2018-07-13 15:39:24 -07:00
Stan Hu
ec4109d413 Make Connection#post consistent with Connection#get and add specs 2018-07-12 23:17:05 -07:00
Stan Hu
15220291ae Add spec for BitbucketServer::Connection 2018-07-12 22:33:36 -07:00