#134 - Add fixture values for tests.
We now specify test properties for Jira and GitHub integrations to prevent a fallback to values from application-local.properties.
This commit is contained in:
@@ -228,7 +228,7 @@ public class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests
|
||||
github.assignReleaseTicketToMe(BUILD_HOPPER_RC1);
|
||||
|
||||
verify(patchRequestedFor(urlPathMatching(RELEASE_TICKET_URI))
|
||||
.withRequestBody(equalToJson("{\"assignees\":[\"mp911de\"]}")));
|
||||
.withRequestBody(equalToJson("{\"assignees\":[\"dummy\"]}")));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -249,7 +249,7 @@ public class GitHubIssueTrackerIntegrationTests extends AbstractIntegrationTests
|
||||
github.closeIteration(BUILD_HOPPER_RC1);
|
||||
|
||||
verify(patchRequestedFor(urlPathMatching(RELEASE_TICKET_URI))
|
||||
.withRequestBody(equalToJson("{\"state\":\"closed\",\"assignees\":[\"mp911de\"]}")));
|
||||
.withRequestBody(equalToJson("{\"state\":\"closed\",\"assignees\":[\"dummy\"]}")));
|
||||
}
|
||||
|
||||
private void mockGetIssueWith(String fromClassPath, int issueId) {
|
||||
|
||||
@@ -10,4 +10,9 @@ deployment.repository-prefix=test-
|
||||
jira.username=dummy
|
||||
jira.password=dummy
|
||||
jira.api-url=http://localhost:8888
|
||||
github.api-url=http://localhost:8888
|
||||
|
||||
git.username=dummy
|
||||
git.password=dummy
|
||||
git.email=dummy@dummy.com
|
||||
git.author=dummy
|
||||
github.api-url=http://localhost:8888
|
||||
|
||||
Reference in New Issue
Block a user