-
Notifications
You must be signed in to change notification settings - Fork 733
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix GHNotificationStream "Unable to parse If-Modified-Since request h…
…eader" (#1984) * fix GitHub notification interface return "Unable to parse If-Modified-Since request header" * updated test for GHNotificationStream
- Loading branch information
Showing
5 changed files
with
57 additions
and
3 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
5 changes: 5 additions & 0 deletions
5
...resources/org/kohsuke/github/AppTest/wiremock/notifications/__files/27-notifications.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,5 @@ | ||
{ | ||
"message": "Unable to parse If-Modified-Since request header. Please make sure value is in an acceptable format.", | ||
"documentation_url": "https://docs.github.com/rest/activity/notifications#list-notifications-for-the-authenticated-user", | ||
"status": "422" | ||
} |
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
47 changes: 47 additions & 0 deletions
47
...esources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/27-notifications.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,47 @@ | ||
{ | ||
"id": "ac22e3e2-f0d3-4ff1-af23-23e9c7915874", | ||
"name": "notifications", | ||
"request": { | ||
"url": "/notifications", | ||
"method": "GET", | ||
"headers": { | ||
"Accept": { | ||
"equalTo": "application/vnd.github+json" | ||
}, | ||
"If-Modified-Since":{ | ||
"equalTo": "null" | ||
} | ||
} | ||
}, | ||
"response": { | ||
"status": 422, | ||
"bodyFileName": "27-notifications.json", | ||
"headers": { | ||
"Date": "Wed, 20 Nov 2024 13:55:23 GMT", | ||
"Content-Type": "application/json; charset=utf-8", | ||
"X-OAuth-Scopes": "repo", | ||
"X-Accepted-OAuth-Scopes": "notifications, repo", | ||
"X-GitHub-Media-Type": "github.v3; format=json", | ||
"x-github-api-version-selected": "2022-11-28", | ||
"X-RateLimit-Limit": "5000", | ||
"X-RateLimit-Remaining": "4992", | ||
"X-RateLimit-Reset": "1732111985", | ||
"X-RateLimit-Used": "8", | ||
"X-RateLimit-Resource": "core", | ||
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset", | ||
"Access-Control-Allow-Origin": "*", | ||
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", | ||
"X-Frame-Options": "deny", | ||
"X-Content-Type-Options": "nosniff", | ||
"X-XSS-Protection": "0", | ||
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", | ||
"Content-Security-Policy": "default-src 'none'", | ||
"Vary": "Accept-Encoding, Accept, X-Requested-With", | ||
"Server": "github.com", | ||
"X-GitHub-Request-Id": "052F:2E353B:3FE0C:42EBB:673DEA4B" | ||
} | ||
}, | ||
"uuid": "ac22e3e2-f0d3-4ff1-af23-23e9c7915874", | ||
"persistent": true, | ||
"insertionIndex": 26 | ||
} |