#162 - Attach label/component to IssueTracker.createTicket(…).

This commit is contained in:
Mark Paluch
2020-11-23 08:50:26 +01:00
parent 43222fdca7
commit d0bc11d1c2
17 changed files with 268 additions and 141 deletions

View File

@@ -156,7 +156,8 @@ class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests {
github.createReleaseTicket(BUILD_HOPPER_RC1);
verify(postRequestedFor(urlPathMatching(ISSUES_URI))
.withRequestBody(equalToJson("{\"title\":\"Release 1.8 RC1 (Hopper)\",\"milestone\":45}")));
.withRequestBody(
equalToJson("{\"title\":\"Release 1.8 RC1 (Hopper)\",\"milestone\":45,\"labels\":[ \"type: task\" ]}")));
}
@Test // #5

View File

@@ -25,11 +25,10 @@ import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.json.JsonTest;
import org.springframework.boot.test.json.JacksonTester;
import org.springframework.data.release.issues.github.GitHubIssue.Milestone;
import org.springframework.test.context.junit.jupiter.SpringExtension;
/**
* Unit tests for {@link GitHubIssue}.
* Unit tests for {@link GitHubWriteIssue}.
*
* @author Mark Paluch
*/