Граф коммитов

9 Коммитов

Автор SHA1 Сообщение Дата
Giuseppe Valente 453fa3cd1b gerrit: add Client.GetProjectTags method, WebLinkInfo, TagInfo
Change-Id: Iebe0796ecd65b98b75b73b1f4008fef0177fb9c8
GitHub-Last-Rev: 5807f37ca6
GitHub-Pull-Request: golang/build#13
Reviewed-on: https://go-review.googlesource.com/c/143838
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2018-10-23 20:50:23 +00:00
Kevin Burke d13a093a9c gerrit: fix vet error
"go vet" now runs when the tests run, and errors on this test.

Change-Id: I239f23f51477530e4bda19793979e519fa371cdf
Reviewed-on: https://go-review.googlesource.com/80302
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-11-28 21:59:26 +00:00
Tobias Klauser c9ba2777a2 all: fix vet format string warnings
Change-Id: Iec22c99fad05b880c52c9b6d09284fe03967471b
Reviewed-on: https://go-review.googlesource.com/75070
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-11-01 15:41:47 +00:00
Jude Pereira ec36dd2dea x/build/gerrit: add support for querying accounts in Gerrit
Added support for querying accounts in Gerrit. This is a pre-requisite
for golang/go#21216

Change-Id: Ic6776ddf18a23e347d0eb7edf91a934d2feb01c9
Reviewed-on: https://go-review.googlesource.com/61970
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-09-07 19:25:33 +00:00
Lann Martin be55dc02bb gerrit: add TimeStamp.MarshalJSON method
This mirrors TimeStamp.UnmarshalJSON. Helps in emulating a Gerrit server
in integration tests.

Add tests for TimeStamp.UnmarshalJSON and .MarshalJSON.

Fixes golang/go#21261

Change-Id: I972164c35308f5c5c46cf68847d52da2475182c3
Reviewed-on: https://go-review.googlesource.com/52471
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-08-02 03:56:33 +00:00
Kevin Burke bf074728a2 gerrit: Fix tests
We changed the API for this but I forgot to update the tests to match
the new API.

Change-Id: If31536655d99bcc403c9095198092693a05c4f02
Reviewed-on: https://go-review.googlesource.com/48598
Reviewed-by: Kevin Burke <kev@inburke.com>
2017-07-15 05:15:33 +00:00
Kevin Burke afc6d121f3 gerrit: add GetChange API call
GetChange returns details about a specific change, and we need it for
CL 46390.

Change-Id: I0047e7170e4c9f822663640e28ee4eaf24b184de
Reviewed-on: https://go-review.googlesource.com/48553
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-07-14 17:27:11 +00:00
Brad Fitzpatrick bce074b887 gerrit: switch to use std context package, require Go 1.7+
This ends support for Go 1.6.

Change-Id: If7765a15add556a5a7a881b24b1a38d96ff10841
Reviewed-on: https://go-review.googlesource.com/40938
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-18 05:16:09 +00:00
Kevin Burke 84c3f714d2 gerrit: support contexts
Switch all API methods that make requests to Gerrit to take a
context.Context as their first argument. Adds a package example and
a simple test that we make requests to the correct endpoint and that
the Client can handle correct responses and error responses from the
Gerrit server.

Switches all code in the x/build tree to use the new Gerrit
client. There are several projects outside the tree that import
x/build/gerrit; I'll submit CL's against those to pull in the new
interface once this gets merged.

Documents that the API is unstable.

Fixes golang/go#18742.
Fixes golang/go#18743.

Change-Id: Ifa78cbb058981e23cf5769955f6312fcbe08e174
Reviewed-on: https://go-review.googlesource.com/35559
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-01-23 21:06:28 +00:00