Skip to content

Commit 2a5de62

Browse files
committed
update gitlab integration test data [ci skip]
1 parent 75d6480 commit 2a5de62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scm/driver/gitlab/integration/content_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func testContentFind(client *scm.Client) func(t *testing.T) {
3030
if got, want := result.Path, "VERSION"; got != want {
3131
t.Errorf("Got file path %q, want %q", got, want)
3232
}
33-
if got, want := string(result.Data), "6.7.0.pre"; got != want {
33+
if got, want := string(result.Data), "6.7.0.pre\n"; got != want {
3434
t.Errorf("Got file data %q, want %q", got, want)
3535
}
3636
}
@@ -47,7 +47,7 @@ func testContentFindBranch(client *scm.Client) func(t *testing.T) {
4747
if got, want := result.Path, "VERSION"; got != want {
4848
t.Errorf("Got file path %q, want %q", got, want)
4949
}
50-
if got, want := string(result.Data), "6.7.0.pre"; got != want {
50+
if got, want := string(result.Data), "6.7.0.pre\n"; got != want {
5151
t.Errorf("Got file data %q, want %q", got, want)
5252
}
5353
}

scm/driver/gitlab/integration/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func testPullRequest(pr *scm.PullRequest) func(t *testing.T) {
156156
if got, want := pr.Author.Name, "Drew Blessing"; got != want {
157157
t.Errorf("Want pr Author Name %q, got %q", want, got)
158158
}
159-
if got, want := pr.Author.Avatar, "https://secure.gravatar.com/avatar/b5bf44866b4eeafa2d8114bfe15da02f?s=80&d=identicon"; got != want {
159+
if got, want := pr.Author.Avatar, "https://assets.gitlab-static.net/uploads/-/system/user/avatar/13356/avatar.png"; got != want {
160160
t.Errorf("Want pr Author Avatar %q, got %q", want, got)
161161
}
162162
if got, want := pr.Closed, true; got != want {
@@ -188,7 +188,7 @@ func testPullRequestComment(comment *scm.Comment) func(t *testing.T) {
188188
if got, want := comment.Author.Name, "Drew Blessing"; got != want {
189189
t.Errorf("Want pr comment Author Name %q, got %q", want, got)
190190
}
191-
if got, want := comment.Author.Avatar, "https://secure.gravatar.com/avatar/b5bf44866b4eeafa2d8114bfe15da02f?s=80&d=identicon"; got != want {
191+
if got, want := comment.Author.Avatar, "https://assets.gitlab-static.net/uploads/-/system/user/avatar/13356/avatar.png"; got != want {
192192
t.Errorf("Want pr comment Author Avatar %q, got %q", want, got)
193193
}
194194
if got, want := comment.Created.Unix(), int64(1450463422); got != want {

0 commit comments

Comments
 (0)