mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-07 14:05:52 +01:00
Fix tests for add labels to ApiIssue/ApiPullRequest
This commit is contained in:
@@ -221,6 +221,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
number = 1347,
|
number = 1347,
|
||||||
title = "Found a bug",
|
title = "Found a bug",
|
||||||
user = apiUser,
|
user = apiUser,
|
||||||
|
labels = List(apiLabel),
|
||||||
state = "open",
|
state = "open",
|
||||||
body = "I'm having a problem with this.",
|
body = "I'm having a problem with this.",
|
||||||
created_at = date1,
|
created_at = date1,
|
||||||
@@ -231,6 +232,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
"title": "Found a bug",
|
"title": "Found a bug",
|
||||||
"body": "I'm having a problem with this.",
|
"body": "I'm having a problem with this.",
|
||||||
"user": $apiUserJson,
|
"user": $apiUserJson,
|
||||||
|
"labels": [$apiLabelJson],
|
||||||
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
|
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
|
||||||
"html_url": "${context.baseUrl}/octocat/Hello-World/issues/1347",
|
"html_url": "${context.baseUrl}/octocat/Hello-World/issues/1347",
|
||||||
"created_at": "2011-04-14T16:00:49Z",
|
"created_at": "2011-04-14T16:00:49Z",
|
||||||
@@ -241,6 +243,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
number = 1347,
|
number = 1347,
|
||||||
title = "Found a bug",
|
title = "Found a bug",
|
||||||
user = apiUser,
|
user = apiUser,
|
||||||
|
labels = List(apiLabel),
|
||||||
state = "open",
|
state = "open",
|
||||||
body = "I'm having a problem with this.",
|
body = "I'm having a problem with this.",
|
||||||
created_at = date1,
|
created_at = date1,
|
||||||
@@ -251,6 +254,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
"title": "Found a bug",
|
"title": "Found a bug",
|
||||||
"body": "I'm having a problem with this.",
|
"body": "I'm having a problem with this.",
|
||||||
"user": $apiUserJson,
|
"user": $apiUserJson,
|
||||||
|
"labels": [$apiLabelJson],
|
||||||
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
|
"comments_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/issues/1347/comments",
|
||||||
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
|
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
|
||||||
"pull_request": {
|
"pull_request": {
|
||||||
@@ -283,6 +287,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
title = "new-feature",
|
title = "new-feature",
|
||||||
body = "Please pull these awesome changes",
|
body = "Please pull these awesome changes",
|
||||||
user = apiUser,
|
user = apiUser,
|
||||||
|
labels = List(apiLabel),
|
||||||
assignee = Some(apiUser)
|
assignee = Some(apiUser)
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -315,6 +320,7 @@ class JsonFormatSpec extends FunSuite {
|
|||||||
"body": "Please pull these awesome changes",
|
"body": "Please pull these awesome changes",
|
||||||
"user": $apiUserJson,
|
"user": $apiUserJson,
|
||||||
"assignee": $apiUserJson,
|
"assignee": $apiUserJson,
|
||||||
|
"labels": [$apiLabelJson],
|
||||||
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
|
"html_url": "${context.baseUrl}/octocat/Hello-World/pull/1347",
|
||||||
"url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347",
|
"url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347",
|
||||||
"commits_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347/commits",
|
"commits_url": "${context.baseUrl}/api/v3/repos/octocat/Hello-World/pulls/1347/commits",
|
||||||
|
|||||||
Reference in New Issue
Block a user