-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: log the response from GH when error occurs (#170)
* github: log the response from GH when error occurs * license up * tests up, auto-close inputstream --------- Co-authored-by: Benjamin Broadaway <[email protected]>
- Loading branch information
1 parent
643126b
commit 50344d0
Showing
8 changed files
with
197 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tasks/git/src/test/java/com/walmartlabs/concord/plugins/git/v2/CommitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tasks/git/src/test/java/com/walmartlabs/concord/plugins/git/v2/IssueTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
tasks/git/src/test/java/com/walmartlabs/concord/plugins/git/v2/PullRequestTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tasks/git/src/test/resources/wiremock/repo/mappings/get_error.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"id": "4bcaaca9-73fa-443d-a8ef-ebbe5b4e63fb", | ||
"name": "github_task_test_repo_get_error", | ||
"request": { | ||
"url": "/api/v3/repos/octocat/error-repo", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "application/vnd.github.v3.full+json" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 999, | ||
"body": "very unexpected error", | ||
"headers": { | ||
"Date": "Thu, 03 Oct 2019 21:18:41 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"Server": "GitHub.com", | ||
"Status": "999 fake error", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4907", | ||
"X-RateLimit-Reset": "1570140015" | ||
} | ||
}, | ||
"uuid": "43cfd527-8dc8-4025-ab6f-41f6c45a86bd", | ||
"persistent": true, | ||
"insertionIndex": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters