diff --git a/src/main/java/org/kohsuke/github/GitHubHttpUrlConnectionClient.java b/src/main/java/org/kohsuke/github/GitHubHttpUrlConnectionClient.java index 0fcfc65769..0398c8cac8 100644 --- a/src/main/java/org/kohsuke/github/GitHubHttpUrlConnectionClient.java +++ b/src/main/java/org/kohsuke/github/GitHubHttpUrlConnectionClient.java @@ -5,7 +5,6 @@ import java.io.IOException; import java.io.InputStream; -import java.lang.reflect.Field; import java.net.HttpURLConnection; import java.net.ProtocolException; import java.nio.charset.StandardCharsets; @@ -163,30 +162,9 @@ private static void setRequestMethod(String method, HttpURLConnection connection connection.setRequestMethod(method); } catch (ProtocolException e) { // JDK only allows one of the fixed set of verbs. Try to override that - try { - Field $method = HttpURLConnection.class.getDeclaredField("method"); - $method.setAccessible(true); - $method.set(connection, method); - } catch (Exception x) { - throw (IOException) new IOException("Failed to set the custom verb").initCause(x); - } - // sun.net.www.protocol.https.DelegatingHttpsURLConnection delegates to another HttpURLConnection - try { - Field $delegate = connection.getClass().getDeclaredField("delegate"); - $delegate.setAccessible(true); - Object delegate = $delegate.get(connection); - if (delegate instanceof HttpURLConnection) { - HttpURLConnection nested = (HttpURLConnection) delegate; - setRequestMethod(method, nested); - } - } catch (NoSuchFieldException x) { - // no problem - } catch (IllegalAccessException x) { - throw (IOException) new IOException("Failed to set the custom verb").initCause(x); - } + connection.setRequestProperty("X-HTTP-Method-Override", method); + connection.setRequestMethod("POST"); } - if (!connection.getRequestMethod().equals(method)) - throw new IllegalStateException("Failed to set the request method to " + method); } /** diff --git a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java index 00627cb7c2..6775c776b0 100644 --- a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java +++ b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java @@ -159,6 +159,9 @@ private void recordSnapshot(WireMockServer server, String target, boolean isRawS if (server != null) { server.snapshotRecord(recordSpec().forTarget(target) + // "X-HTTP-Method-Override" is used to send http methods not supported by + // HttpURLConnection without using hacky Java reflection techniques + .captureHeader("X-HTTP-Method-Override") // "If-None-Match" header used for ETag matching for caching connections .captureHeader("If-None-Match") // "If-Modified-Since" header used for ETag matching for caching connections diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/notifications_threads_523050578-25.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/notifications_threads_523050578-25.json index 15139f692e..6c7f65a458 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/notifications_threads_523050578-25.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/notifications/mappings/notifications_threads_523050578-25.json @@ -3,7 +3,6 @@ "name": "notifications_threads_523050578", "request": { "url": "/notifications/threads/523050578", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_46267761-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_46267761-7.json index bf5b3eed3b..09e8bc9579 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_46267761-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateCommitComment/mappings/repos_kohsuke_sandbox-ant_comments_46267761-7.json @@ -3,8 +3,11 @@ "name": "repos_kohsuke_sandbox-ant_comments_46267761", "request": { "url": "/repos/kohsuke/sandbox-ant/comments/46267761", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateIssue/mappings/repos_hub4j-test-org_github-api-test_issues_1-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateIssue/mappings/repos_hub4j-test-org_github-api-test_issues_1-11.json index 1be92dd515..f237a6d640 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateIssue/mappings/repos_hub4j-test-org_github-api-test_issues_1-11.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testCreateIssue/mappings/repos_hub4j-test-org_github-api-test_issues_1-11.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api-test_issues_1", "request": { "url": "/repos/hub4j-test-org/github-api-test/issues/1", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-3.json index e9c342cead..d742982c16 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-3.json @@ -3,8 +3,11 @@ "name": "repos_bitwiseman_github-api-test-rename", "request": { "url": "/repos/bitwiseman/github-api-test-rename", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-4.json index 3750a686cd..99429ccc28 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-4.json @@ -3,8 +3,11 @@ "name": "repos_bitwiseman_github-api-test-rename", "request": { "url": "/repos/bitwiseman/github-api-test-rename", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-5.json index 43d5f6163e..1943ce43b5 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-5.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-5.json @@ -3,8 +3,11 @@ "name": "repos_bitwiseman_github-api-test-rename", "request": { "url": "/repos/bitwiseman/github-api-test-rename", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-6.json index cb45c72b11..58f8859d2f 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-6.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-6.json @@ -3,8 +3,11 @@ "name": "repos_bitwiseman_github-api-test-rename", "request": { "url": "/repos/bitwiseman/github-api-test-rename", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-7.json index b07872c7a8..2fea832839 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoCRUD/mappings/repos_bitwiseman_github-api-test-rename-7.json @@ -3,8 +3,11 @@ "name": "repos_bitwiseman_github-api-test-rename", "request": { "url": "/repos/bitwiseman/github-api-test-rename", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/repos_hub4j-test-org_test-labels-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/repos_hub4j-test-org_test-labels-2.json index fb85645b35..383e3874a3 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/repos_hub4j-test-org_test-labels-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/repos_hub4j-test-org_test-labels-2.json @@ -8,7 +8,7 @@ "login": "hub4j-test-org", "id": 7544739, "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hub4j-test-org", "html_url": "https://github.com/hub4j-test-org", @@ -105,7 +105,7 @@ "login": "hub4j-test-org", "id": 7544739, "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", - "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/7544739?v=4", "gravatar_id": "", "url": "https://api.github.com/users/hub4j-test-org", "html_url": "https://github.com/hub4j-test-org", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/user-1.json index c77b3c73a0..2bdbc3872b 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/user-1.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/__files/user-1.json @@ -2,7 +2,7 @@ "login": "bitwiseman", "id": 1958953, "node_id": "MDQ6VXNlcjE5NTg5NTM=", - "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "avatar_url": "https://avatars.githubusercontent.com/u/1958953?v=4", "gravatar_id": "", "url": "https://api.github.com/users/bitwiseman", "html_url": "https://github.com/bitwiseman", @@ -23,23 +23,12 @@ "location": "Seattle, WA, USA", "email": "bitwiseman@gmail.com", "hireable": null, - "bio": "https://twitter.com/bitwiseman", - "public_repos": 181, - "public_gists": 7, - "followers": 149, - "following": 9, + "bio": null, + "twitter_username": "bitwiseman", + "public_repos": 206, + "public_gists": 8, + "followers": 181, + "following": 11, "created_at": "2012-07-11T20:38:33Z", - "updated_at": "2020-03-26T21:08:45Z", - "private_gists": 8, - "total_private_repos": 10, - "owned_private_repos": 0, - "disk_usage": 33697, - "collaborators": 0, - "two_factor_authentication": true, - "plan": { - "name": "free", - "space": 976562499, - "collaborators": 0, - "private_repos": 10000 - } + "updated_at": "2021-04-02T21:55:29Z" } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels-2.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels-2.json index 189accb706..d8d0d9d245 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels-2.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels-2.json @@ -1,5 +1,5 @@ { - "id": "e24be5d0-73bf-4748-8c79-a68eb5e2becf", + "id": "55f5d0e7-2f1f-4a8a-812c-204ea56540f7", "name": "repos_hub4j-test-org_test-labels", "request": { "url": "/repos/hub4j-test-org/test-labels", @@ -14,33 +14,33 @@ "status": 200, "bodyFileName": "repos_hub4j-test-org_test-labels-2.json", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:19 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4993", - "X-RateLimit-Reset": "1585263138", + "Date": "Thu, 08 Apr 2021 20:38:59 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"6b3e989ed9af12ce6cd75038c1664ab5\"", + "ETag": "W/\"86fbc9276b6690bc16bd74f81c0ce45c1f5fda7db638aaa2c4bb0bcdd63da176\"", "Last-Modified": "Sun, 15 Feb 2015 14:49:09 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4937", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "63", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1CC:2452B:5E7D2411" + "X-GitHub-Request-Id": "E09C:148F:17AC74:19F151:606F69E3" } }, - "uuid": "e24be5d0-73bf-4748-8c79-a68eb5e2becf", + "uuid": "55f5d0e7-2f1f-4a8a-812c-204ea56540f7", "persistent": true, "insertionIndex": 2 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-15.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-15.json index f0c0d2a1ad..11d8ddc060 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-15.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-15.json @@ -1,5 +1,5 @@ { - "id": "2c942d88-1a5a-4fba-ae09-ada2a5dff83f", + "id": "7896038e-2291-4a94-8ce9-ea12923353b2", "name": "repos_hub4j-test-org_test-labels_labels", "request": { "url": "/repos/hub4j-test-org/test-labels/labels", @@ -13,41 +13,41 @@ { "equalToJson": "{\"color\":\"123457\",\"name\":\"test2\",\"description\":\"this is a different test\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 201, - "body": "{\"id\":1937402965,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTY1\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123457\",\"default\":false,\"description\":\"this is a different test\"}", + "body": "{\"id\":2897001309,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMzA5\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123457\",\"default\":false,\"description\":\"this is a different test\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:22 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4980", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:02 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"648a902d66c2f46f74c7b836969fdfe9\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"6bb2796b20a76d6ab8e7a147bf6b19cf6d0605587e59367c34afe06bb4786f60\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4924", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "76", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D214:245B7:5E7D2416" + "X-GitHub-Request-Id": "E09C:148F:17AD20:19F219:606F69E6", + "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2" } }, - "uuid": "2c942d88-1a5a-4fba-ae09-ada2a5dff83f", + "uuid": "7896038e-2291-4a94-8ce9-ea12923353b2", "persistent": true, "insertionIndex": 15 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-18.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-18.json index 08c369c976..63910b020e 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-18.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-18.json @@ -1,5 +1,5 @@ { - "id": "3f418ea2-7ad2-4a8d-a0e0-aa8dba0bc3aa", + "id": "6e74fbe2-04df-4da4-bc1e-b47d70f8859f", "name": "repos_hub4j-test-org_test-labels_labels", "request": { "url": "/repos/hub4j-test-org/test-labels/labels", @@ -13,41 +13,41 @@ { "equalToJson": "{\"color\":\"123458\",\"name\":\"test2\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 201, - "body": "{\"id\":1937403007,\"node_id\":\"MDU6TGFiZWwxOTM3NDAzMDA3\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123458\",\"default\":false,\"description\":null}", + "body": "{\"id\":2897001319,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMzE5\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123458\",\"default\":false,\"description\":null}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:23 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4977", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:02 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"b44c275d6657bfc2df3d5bfe449bff8d\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"7e509bb6bfb281f1384f5d57791a3d8ba047a0c3d0b85ee4fa1cbe97aed88087\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4921", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "79", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D220:245C5:5E7D2416" + "X-GitHub-Request-Id": "E09C:148F:17AD66:19F25F:606F69E6", + "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2" } }, - "uuid": "3f418ea2-7ad2-4a8d-a0e0-aa8dba0bc3aa", + "uuid": "6e74fbe2-04df-4da4-bc1e-b47d70f8859f", "persistent": true, "insertionIndex": 18 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-3.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-3.json index 223e565799..3e4a719907 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-3.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-3.json @@ -1,5 +1,5 @@ { - "id": "2ec8e57b-45b1-417f-bc4e-6ea23334d4df", + "id": "36809c63-2d61-4819-8a71-4d49c9297eea", "name": "repos_hub4j-test-org_test-labels_labels", "request": { "url": "/repos/hub4j-test-org/test-labels/labels", @@ -14,32 +14,32 @@ "status": 200, "bodyFileName": "repos_hub4j-test-org_test-labels_labels-3.json", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:19 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4992", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:38:59 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"e7c4fba8fbd1312b7b8bc4cac1dfbc25\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"00b3a4cbf9037c3810a8853aef5c28e7847b3f6d7d8fed6d803203bbf758aedd\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4936", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "64", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1D0:2455A:5E7D2413" + "X-GitHub-Request-Id": "E09C:148F:17AC7A:19F15B:606F69E3" } }, - "uuid": "2ec8e57b-45b1-417f-bc4e-6ea23334d4df", + "uuid": "36809c63-2d61-4819-8a71-4d49c9297eea", "persistent": true, "insertionIndex": 3 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-5.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-5.json index 55f558ba9d..19d0117cb7 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-5.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels-5.json @@ -1,5 +1,5 @@ { - "id": "95656815-d16d-4592-9678-10766659ddeb", + "id": "463b99c3-2031-488d-acf0-ab106d5d4f3d", "name": "repos_hub4j-test-org_test-labels_labels", "request": { "url": "/repos/hub4j-test-org/test-labels/labels", @@ -13,41 +13,41 @@ { "equalToJson": "{\"color\":\"123456\",\"name\":\"test\",\"description\":\"\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 201, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:19 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "201 Created", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4990", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:00 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "\"48de34595ef7992c2e74e8ceb548cdfa\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "\"30be2cbd89d25d27271419964a66bc1dce33812d6e0e519ff5801bb0b09b4b62\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", - "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4934", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "66", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1D9:24565:5E7D2413" + "X-GitHub-Request-Id": "E09C:148F:17AC80:19F168:606F69E4", + "Location": "https://api.github.com/repos/hub4j-test-org/test-labels/labels/test" } }, - "uuid": "95656815-d16d-4592-9678-10766659ddeb", + "uuid": "463b99c3-2031-488d-acf0-ab106d5d4f3d", "persistent": true, "insertionIndex": 5 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_enhancement-4.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_enhancement-4.json index f1f164f8b3..4a7dd11fcd 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_enhancement-4.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_enhancement-4.json @@ -1,5 +1,5 @@ { - "id": "2b5a3df5-478a-4539-b5ff-a1aa27b6a164", + "id": "8e6459a2-d1f8-4e7b-a9dd-542cb0c954ef", "name": "repos_hub4j-test-org_test-labels_labels_enhancement", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/enhancement", @@ -14,33 +14,33 @@ "status": 200, "body": "{\"id\":177339106,\"node_id\":\"MDU6TGFiZWwxNzczMzkxMDY=\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/enhancement\",\"name\":\"enhancement\",\"color\":\"84b6eb\",\"default\":true,\"description\":null}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:19 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4991", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:38:59 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"27ddcfc35bfde213e1754cfc9af09e7b\"", + "ETag": "W/\"14222d412fe9506e0624aa60cf0d1b9ba356bae0032bdb63f80dcb0bf75d74fd\"", "Last-Modified": "Sun, 15 Feb 2015 14:49:10 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "65", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1D4:24561:5E7D2413" + "X-GitHub-Request-Id": "E09C:148F:17AC7E:19F160:606F69E3" } }, - "uuid": "2b5a3df5-478a-4539-b5ff-a1aa27b6a164", + "uuid": "8e6459a2-d1f8-4e7b-a9dd-542cb0c954ef", "persistent": true, "insertionIndex": 4 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-10.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-10.json index 6cbe82e7e9..0bd2bc1c39 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-10.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-10.json @@ -1,10 +1,13 @@ { - "id": "cfabb012-1a36-4232-8f6d-e7d3f35673e3", + "id": "d17664b2-c30b-4d25-b10e-a5d14ce27509", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } @@ -13,40 +16,40 @@ { "equalToJson": "{\"color\":\"000000\",\"name\":\"test\",\"description\":\"Deprecated\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"Deprecated\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"Deprecated\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:20 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4985", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:01 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"4a7241dfa969b562ba29b03b5ac9bc3a\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"07a5cf65f90f90ff1092d072a4eeae55a8eb0e6442fbc7b222596f3d1fbc8983\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4929", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "71", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1F5:2458C:5E7D2414" + "X-GitHub-Request-Id": "E09C:148F:17ACBC:19F1AE:606F69E4" } }, - "uuid": "cfabb012-1a36-4232-8f6d-e7d3f35673e3", + "uuid": "d17664b2-c30b-4d25-b10e-a5d14ce27509", "persistent": true, "insertionIndex": 10 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-11.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-11.json index 19282c4a74..cd2a658a82 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-11.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-11.json @@ -1,5 +1,5 @@ { - "id": "dce1e639-fea0-48b9-a21e-43f2dd9b77a1", + "id": "8a8ad40e-67c5-4f3c-8335-8fc8f163f292", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", @@ -12,35 +12,35 @@ }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"Deprecated\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"Deprecated\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:21 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4984", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:01 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"4a7241dfa969b562ba29b03b5ac9bc3a\"", - "Last-Modified": "Thu, 26 Mar 2020 21:52:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"07a5cf65f90f90ff1092d072a4eeae55a8eb0e6442fbc7b222596f3d1fbc8983\"", + "Last-Modified": "Thu, 08 Apr 2021 20:39:01 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4928", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "72", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1FD:24595:5E7D2414" + "X-GitHub-Request-Id": "E09C:148F:17ACD3:19F1CC:606F69E5" } }, - "uuid": "dce1e639-fea0-48b9-a21e-43f2dd9b77a1", + "uuid": "8a8ad40e-67c5-4f3c-8335-8fc8f163f292", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-test-labels-labels-test", "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-labels-labels-test-3", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-12.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-12.json index 65acc2d95f..6aa1524853 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-12.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-12.json @@ -1,10 +1,13 @@ { - "id": "73f6275a-8ea1-4697-9b93-608128f04e47", + "id": "f631b166-3456-4077-a8f6-02bd76f00556", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } @@ -13,40 +16,40 @@ { "equalToJson": "{\"color\":\"000000\",\"name\":\"test\",\"description\":\"this is also a test\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"this is also a test\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"this is also a test\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:21 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4983", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:01 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"d53816a82e924d1178daa76454ed6372\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"bfca8b6c194e9d4c98b1f8c2eb47477761b73647444b0f1c3407337b3ce430c9\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4927", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "73", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D202:2459E:5E7D2415" + "X-GitHub-Request-Id": "E09C:148F:17ACEE:19F1E2:606F69E5" } }, - "uuid": "73f6275a-8ea1-4697-9b93-608128f04e47", + "uuid": "f631b166-3456-4077-a8f6-02bd76f00556", "persistent": true, "insertionIndex": 12 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-13.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-13.json index 752f3aa086..a2edd44c69 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-13.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-13.json @@ -1,5 +1,5 @@ { - "id": "2f35559b-a057-4ebd-926e-37b89964ce0e", + "id": "55586936-51ee-4234-81ef-139c1b88732d", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", @@ -13,26 +13,26 @@ "response": { "status": 204, "headers": { - "Date": "Thu, 26 Mar 2020 21:52:21 GMT", "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4982", - "X-RateLimit-Reset": "1585263137", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "Date": "Thu, 08 Apr 2021 20:39:01 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4926", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "74", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "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, X-GitHub-OpenAPI", - "X-GitHub-Request-Id": "E69B:9495:1D208:245A7:5E7D2415" + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "E09C:148F:17AD02:19F1F8:606F69E5" } }, - "uuid": "2f35559b-a057-4ebd-926e-37b89964ce0e", + "uuid": "55586936-51ee-4234-81ef-139c1b88732d", "persistent": true, "insertionIndex": 13 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-14.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-14.json index 166d656d1b..0c2457e382 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-14.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-14.json @@ -1,5 +1,5 @@ { - "id": "0c78363a-0c1e-4070-9210-a890b324c506", + "id": "6b993840-624c-4b20-96c3-d5036b7502a1", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", @@ -12,29 +12,29 @@ }, "response": { "status": 404, - "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://developer.github.com/v3/issues/labels/#get-a-single-label\"}", + "body": "{\"message\":\"Not Found\",\"documentation_url\":\"https://docs.github.com/rest/reference/issues#get-a-label\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:22 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "404 Not Found", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4981", - "X-RateLimit-Reset": "1585263138", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "Date": "Thu, 08 Apr 2021 20:39:02 GMT", + "Content-Type": "application/json; charset=utf-8", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4925", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "75", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "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, X-GitHub-OpenAPI", - "X-GitHub-Request-Id": "E69B:9495:1D211:245AD:5E7D2415" + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "E09C:148F:17AD12:19F20A:606F69E5" } }, - "uuid": "0c78363a-0c1e-4070-9210-a890b324c506", + "uuid": "6b993840-624c-4b20-96c3-d5036b7502a1", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-test-labels-labels-test", "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-labels-labels-test-4", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-6.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-6.json index 6f00020f16..1a37fe529d 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-6.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-6.json @@ -1,5 +1,5 @@ { - "id": "3e2f3c6f-2300-4da5-a68a-e8ffc23cbaa7", + "id": "f5c0a21a-b320-41f6-8c11-0d7d7a6a935e", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", @@ -12,35 +12,35 @@ }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:20 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4989", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:00 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"48de34595ef7992c2e74e8ceb548cdfa\"", - "Last-Modified": "Thu, 26 Mar 2020 21:52:19 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"30be2cbd89d25d27271419964a66bc1dce33812d6e0e519ff5801bb0b09b4b62\"", + "Last-Modified": "Thu, 08 Apr 2021 20:39:00 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4933", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "67", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1E0:24570:5E7D2413" + "X-GitHub-Request-Id": "E09C:148F:17AC8C:19F176:606F69E4" } }, - "uuid": "3e2f3c6f-2300-4da5-a68a-e8ffc23cbaa7", + "uuid": "f5c0a21a-b320-41f6-8c11-0d7d7a6a935e", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-test-labels-labels-test", "requiredScenarioState": "Started", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-7.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-7.json index edd9e7d5d1..3a5fc99e73 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-7.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-7.json @@ -1,10 +1,13 @@ { - "id": "6d637a44-3eff-4110-bb1f-dd9002d0e051", + "id": "117bb46b-6d0d-4901-b27e-324ef427f5c4", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } @@ -13,40 +16,40 @@ { "equalToJson": "{\"color\":\"000000\",\"name\":\"test\",\"description\":\"It is dark!\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"It is dark!\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"000000\",\"default\":false,\"description\":\"It is dark!\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:20 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4988", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:00 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"14706c3016a6b3a0cfce85c5b6389c4e\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"ba89b8a15e377c2e7eb219dc3c48b277edd958e762f8814667ad312cc33de62c\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4932", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "68", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1E3:24577:5E7D2414" + "X-GitHub-Request-Id": "E09C:148F:17AC95:19F17B:606F69E4" } }, - "uuid": "6d637a44-3eff-4110-bb1f-dd9002d0e051", + "uuid": "117bb46b-6d0d-4901-b27e-324ef427f5c4", "persistent": true, "insertionIndex": 7 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-8.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-8.json index e5a3e70b51..84be361e8f 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-8.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-8.json @@ -1,10 +1,13 @@ { - "id": "6e6dba1e-604f-400c-8edc-9282547d33b2", + "id": "f558f48f-7af7-4263-9770-89e4b515af5a", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } @@ -13,40 +16,40 @@ { "equalToJson": "{\"color\":\"123456\",\"name\":\"test\",\"description\":\"Deprecated\"}", "ignoreArrayOrder": true, - "ignoreExtraElements": true + "ignoreExtraElements": false } ] }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"Deprecated\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"Deprecated\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:20 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4987", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:00 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"362625bccae2af3dc55feed7298cb6eb\"", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"5dda62923a7111d26151ff437289ea9473c852c89983b93781d079758bcf496a\"", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4931", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "69", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1E9:2457F:5E7D2414" + "X-GitHub-Request-Id": "E09C:148F:17AC9F:19F18D:606F69E4" } }, - "uuid": "6e6dba1e-604f-400c-8edc-9282547d33b2", + "uuid": "f558f48f-7af7-4263-9770-89e4b515af5a", "persistent": true, "insertionIndex": 8 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-9.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-9.json index c312b9b77f..a5b849daf6 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-9.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test-9.json @@ -1,5 +1,5 @@ { - "id": "79ce6715-a164-4bb4-974c-7f20616f47d7", + "id": "2e547f9d-8630-49dc-bb8c-95991320aacf", "name": "repos_hub4j-test-org_test-labels_labels_test", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test", @@ -12,35 +12,35 @@ }, "response": { "status": 200, - "body": "{\"id\":1937402918,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTE4\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"Deprecated\"}", + "body": "{\"id\":2897001281,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMjgx\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test\",\"name\":\"test\",\"color\":\"123456\",\"default\":false,\"description\":\"Deprecated\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:20 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4986", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:00 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"362625bccae2af3dc55feed7298cb6eb\"", - "Last-Modified": "Thu, 26 Mar 2020 21:52:20 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"5dda62923a7111d26151ff437289ea9473c852c89983b93781d079758bcf496a\"", + "Last-Modified": "Thu, 08 Apr 2021 20:39:00 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4930", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "70", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1F1:24586:5E7D2414" + "X-GitHub-Request-Id": "E09C:148F:17ACB3:19F1A1:606F69E4" } }, - "uuid": "79ce6715-a164-4bb4-974c-7f20616f47d7", + "uuid": "2e547f9d-8630-49dc-bb8c-95991320aacf", "persistent": true, "scenarioName": "scenario-1-repos-hub4j-test-org-test-labels-labels-test", "requiredScenarioState": "scenario-1-repos-hub4j-test-org-test-labels-labels-test-2", diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-16.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-16.json index 2cd4f3971e..c61a5cc1c0 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-16.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-16.json @@ -1,5 +1,5 @@ { - "id": "e64a0737-c9a7-4ca4-82ce-20e1d0937bbf", + "id": "f6ff2ef4-3475-44b3-8343-8747b248621c", "name": "repos_hub4j-test-org_test-labels_labels_test2", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test2", @@ -12,35 +12,35 @@ }, "response": { "status": 200, - "body": "{\"id\":1937402965,\"node_id\":\"MDU6TGFiZWwxOTM3NDAyOTY1\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123457\",\"default\":false,\"description\":\"this is a different test\"}", + "body": "{\"id\":2897001309,\"node_id\":\"MDU6TGFiZWwyODk3MDAxMzA5\",\"url\":\"https://api.github.com/repos/hub4j-test-org/test-labels/labels/test2\",\"name\":\"test2\",\"color\":\"123457\",\"default\":false,\"description\":\"this is a different test\"}", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:22 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4979", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:39:02 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"648a902d66c2f46f74c7b836969fdfe9\"", - "Last-Modified": "Thu, 26 Mar 2020 21:52:22 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"6bb2796b20a76d6ab8e7a147bf6b19cf6d0605587e59367c34afe06bb4786f60\"", + "Last-Modified": "Thu, 08 Apr 2021 20:39:02 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "repo", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4923", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "77", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D219:245BC:5E7D2416" + "X-GitHub-Request-Id": "E09C:148F:17AD40:19F239:606F69E6" } }, - "uuid": "e64a0737-c9a7-4ca4-82ce-20e1d0937bbf", + "uuid": "f6ff2ef4-3475-44b3-8343-8747b248621c", "persistent": true, "insertionIndex": 16 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-17.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-17.json index abeb393b23..48df401202 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-17.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/repos_hub4j-test-org_test-labels_labels_test2-17.json @@ -1,5 +1,5 @@ { - "id": "932ad601-65b1-4472-9b6a-13ead9cbc248", + "id": "63ae900f-dd82-428d-abb0-6047083b3a5c", "name": "repos_hub4j-test-org_test-labels_labels_test2", "request": { "url": "/repos/hub4j-test-org/test-labels/labels/test2", @@ -13,26 +13,26 @@ "response": { "status": 204, "headers": { - "Date": "Thu, 26 Mar 2020 21:52:22 GMT", "Server": "GitHub.com", - "Status": "204 No Content", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4978", - "X-RateLimit-Reset": "1585263137", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "Date": "Thu, 08 Apr 2021 20:39:02 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4922", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "78", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "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, X-GitHub-OpenAPI", - "X-GitHub-Request-Id": "E69B:9495:1D21C:245BF:5E7D2416" + "Vary": "Accept-Encoding, Accept, X-Requested-With", + "X-GitHub-Request-Id": "E09C:148F:17AD4D:19F246:606F69E6" } }, - "uuid": "932ad601-65b1-4472-9b6a-13ead9cbc248", + "uuid": "63ae900f-dd82-428d-abb0-6047083b3a5c", "persistent": true, "insertionIndex": 17 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/user-1.json b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/user-1.json index c14f67258d..144f626b4a 100644 --- a/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/user-1.json +++ b/src/test/resources/org/kohsuke/github/AppTest/wiremock/testRepoLabel/mappings/user-1.json @@ -1,5 +1,5 @@ { - "id": "0a9dfe83-1110-41c7-9542-4c9d299f430f", + "id": "d82ec73a-75a1-4f50-aace-f39edd6b432b", "name": "user", "request": { "url": "/user", @@ -14,33 +14,33 @@ "status": 200, "bodyFileName": "user-1.json", "headers": { - "Date": "Thu, 26 Mar 2020 21:52:17 GMT", - "Content-Type": "application/json; charset=utf-8", "Server": "GitHub.com", - "Status": "200 OK", - "X-RateLimit-Limit": "5000", - "X-RateLimit-Remaining": "4999", - "X-RateLimit-Reset": "1585263137", + "Date": "Thu, 08 Apr 2021 20:38:58 GMT", + "Content-Type": "application/json; charset=utf-8", "Cache-Control": "private, max-age=60, s-maxage=60", "Vary": [ "Accept, Authorization, Cookie, X-GitHub-OTP", - "Accept-Encoding, Accept, X-Requested-With, X-GitHub-OpenAPI" + "Accept-Encoding, Accept, X-Requested-With" ], - "ETag": "W/\"ef9ba8a02c78b6a718bca0bca9f1bb5d\"", - "Last-Modified": "Thu, 26 Mar 2020 21:08:45 GMT", - "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "ETag": "W/\"0787acf16cf61d6918eeb628d3c11826278c378a9c61ae7a64005efde6229b52\"", + "Last-Modified": "Fri, 02 Apr 2021 21:55:29 GMT", + "X-OAuth-Scopes": "repo, workflow", "X-Accepted-OAuth-Scopes": "", "X-GitHub-Media-Type": "unknown, github.v3", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1617917629", + "X-RateLimit-Used": "57", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-Frame-Options": "deny", "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block", + "X-XSS-Protection": "0", "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", "Content-Security-Policy": "default-src 'none'", - "X-GitHub-Request-Id": "E69B:9495:1D1A7:24524:5E7D2411" + "X-GitHub-Request-Id": "E09C:148F:17AC5A:19F136:606F69E2" } }, - "uuid": "0a9dfe83-1110-41c7-9542-4c9d299f430f", + "uuid": "d82ec73a-75a1-4f50-aace-f39edd6b432b", "persistent": true, "insertionIndex": 1 } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-b00d927c-1c6c-4f49-b568-68327ef7d436.json b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-b00d927c-1c6c-4f49-b568-68327ef7d436.json index b4f9f6edce..1f36d0fc34 100644 --- a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-b00d927c-1c6c-4f49-b568-68327ef7d436.json +++ b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-b00d927c-1c6c-4f49-b568-68327ef7d436.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-checks_check-runs_1424883599", "request": { "url": "/repos/hub4j-test-org/test-checks/check-runs/1424883599", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.antiope-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-f3d54793-977e-48f8-857b-106af311ddea.json b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-f3d54793-977e-48f8-857b-106af311ddea.json index 9f028d4b60..54746868ac 100644 --- a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-f3d54793-977e-48f8-857b-106af311ddea.json +++ b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/createCheckRunManyAnnotations/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883599-f3d54793-977e-48f8-857b-106af311ddea.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-checks_check-runs_1424883599", "request": { "url": "/repos/hub4j-test-org/test-checks/check-runs/1424883599", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.antiope-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/updateCheckRun/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883037-0e994765-90de-46eb-897a-27ab3d509c28.json b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/updateCheckRun/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883037-0e994765-90de-46eb-897a-27ab3d509c28.json index 2a5858ad97..ac31d766c7 100644 --- a/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/updateCheckRun/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883037-0e994765-90de-46eb-897a-27ab3d509c28.json +++ b/src/test/resources/org/kohsuke/github/GHCheckRunBuilderTest/wiremock/updateCheckRun/mappings/repos_hub4j-test-org_test-checks_check-runs_1424883037-0e994765-90de-46eb-897a-27ab3d509c28.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-checks_check-runs_1424883037", "request": { "url": "/repos/hub4j-test-org/test-checks/check-runs/1424883037", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.antiope-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-10.json b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-10.json index c89a96862d..26801194df 100644 --- a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-10.json +++ b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-10.json @@ -3,8 +3,11 @@ "name": "organizations_7544739_team_3451996_discussions_64", "request": { "url": "/organizations/7544739/team/3451996/discussions/64", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-6.json b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-6.json index bac348874c..6c2426f52c 100644 --- a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-6.json +++ b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-6.json @@ -3,8 +3,11 @@ "name": "organizations_7544739_team_3451996_discussions_64", "request": { "url": "/organizations/7544739/team/3451996/discussions/64", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-7.json b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-7.json index ac4113f6c3..395ebc55cb 100644 --- a/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-7.json +++ b/src/test/resources/org/kohsuke/github/GHDiscussionTest/wiremock/testGetAndEditDiscussion/mappings/organizations_7544739_team_3451996_discussions_64-7.json @@ -3,8 +3,11 @@ "name": "organizations_7544739_team_3451996_discussions_64", "request": { "url": "/organizations/7544739/team/3451996/discussions/64", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-4.json b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-4.json index 75764b1eee..61b97a609d 100644 --- a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-4.json +++ b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-4.json @@ -3,8 +3,11 @@ "name": "gists_11a257b91982aafd6370089ef877a682", "request": { "url": "/gists/11a257b91982aafd6370089ef877a682", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-5.json b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-5.json index 39a5718d14..ae2fe45686 100644 --- a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-5.json +++ b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-5.json @@ -3,8 +3,11 @@ "name": "gists_11a257b91982aafd6370089ef877a682", "request": { "url": "/gists/11a257b91982aafd6370089ef877a682", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-6.json b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-6.json index 54750a2654..4b4ba18b77 100644 --- a/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-6.json +++ b/src/test/resources/org/kohsuke/github/GHGistTest/wiremock/lifecycleTest/mappings/gists_11a257b91982aafd6370089ef877a682-6.json @@ -3,8 +3,11 @@ "name": "gists_11a257b91982aafd6370089ef877a682", "request": { "url": "/gists/11a257b91982aafd6370089ef877a682", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHGistUpdaterTest/wiremock/testGitUpdater/mappings/gists_209fef72c25fe4b3f673437603ab6d5d-2.json b/src/test/resources/org/kohsuke/github/GHGistUpdaterTest/wiremock/testGitUpdater/mappings/gists_209fef72c25fe4b3f673437603ab6d5d-2.json index d329d76d8a..cfea186784 100644 --- a/src/test/resources/org/kohsuke/github/GHGistUpdaterTest/wiremock/testGitUpdater/mappings/gists_209fef72c25fe4b3f673437603ab6d5d-2.json +++ b/src/test/resources/org/kohsuke/github/GHGistUpdaterTest/wiremock/testGitUpdater/mappings/gists_209fef72c25fe4b3f673437603ab6d5d-2.json @@ -3,7 +3,6 @@ "name": "gists_209fef72c25fe4b3f673437603ab6d5d", "request": { "url": "/gists/209fef72c25fe4b3f673437603ab6d5d", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"description\":\"Description updated by API\",\"files\":{\"new-file.txt\":{\"content\":\"Added by updater\"},\"rename-me.py\":{\"filename\":\"renamed.py\"},\"update-me.txt\":{\"content\":\"Content updated by API\"}}}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-6.json b/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-6.json index f1cfdc43e6..c63f2672be 100644 --- a/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-6.json +++ b/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-6.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_issues_313", "request": { "url": "/repos/hub4j-test-org/github-api/issues/313", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"labels\":[\"test-label\"]}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-9.json b/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-9.json index 9b5e89adc2..765c6503e1 100644 --- a/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-9.json +++ b/src/test/resources/org/kohsuke/github/GHIssueEventTest/wiremock/testEventsForSingleIssue/mappings/repos_hub4j-test-org_github-api_issues_313-9.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_issues_313", "request": { "url": "/repos/hub4j-test-org/github-api/issues/313", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-6.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-6.json index 3c063cbb50..b2583d7545 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-6.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-6.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_issues_368", "request": { "url": "/repos/hub4j-test-org/github-api/issues/368", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-8.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-8.json index 9c8e2f53c4..a3ec0f5280 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-8.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestone/mappings/repos_hub4j-test-org_github-api_issues_368-8.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_issues_368", "request": { "url": "/repos/hub4j-test-org/github-api/issues/368", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-7.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-7.json index 1843d7ec26..3fa37a89ef 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-7.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-7.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_issues_370", "request": { "url": "/repos/hub4j-test-org/github-api/issues/370", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-9.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-9.json index 8222330785..ccaefbe4fb 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-9.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUnsetMilestoneFromPullRequest/mappings/repos_hub4j-test-org_github-api_issues_370-9.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_issues_370", "request": { "url": "/repos/hub4j-test-org/github-api/issues/370", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-5.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-5.json index b49351e1e6..135e7c1bbc 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-5.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-5.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_milestones_2", "request": { "url": "/repos/hub4j-test-org/github-api/milestones/2", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"title\":\"Updated Title\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-6.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-6.json index ce3cdb3ce2..8c567b419a 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-6.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-6.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_milestones_2", "request": { "url": "/repos/hub4j-test-org/github-api/milestones/2", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"description\":\"Updated Description\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-7.json b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-7.json index 3ac92a8f3b..d1f4ef4219 100644 --- a/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-7.json +++ b/src/test/resources/org/kohsuke/github/GHMilestoneTest/wiremock/testUpdateMilestone/mappings/repos_hub4j-test-org_github-api_milestones_2-7.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_milestones_2", "request": { "url": "/repos/hub4j-test-org/github-api/milestones/2", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"due_on\":\"2020-10-05T13:00:00Z\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testArchiveCard/mappings/projects_columns_cards_27353270-6.json b/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testArchiveCard/mappings/projects_columns_cards_27353270-6.json index efd6133234..ec72ac9172 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testArchiveCard/mappings/projects_columns_cards_27353270-6.json +++ b/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testArchiveCard/mappings/projects_columns_cards_27353270-6.json @@ -3,7 +3,6 @@ "name": "projects_columns_cards_27353270", "request": { "url": "/projects/columns/cards/27353270", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"archived\":true}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testEditCardNote/mappings/projects_columns_cards_27353267-6.json b/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testEditCardNote/mappings/projects_columns_cards_27353267-6.json index 5074f19cdf..4ea3da6328 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testEditCardNote/mappings/projects_columns_cards_27353267-6.json +++ b/src/test/resources/org/kohsuke/github/GHProjectCardTest/wiremock/testEditCardNote/mappings/projects_columns_cards_27353267-6.json @@ -3,7 +3,6 @@ "name": "projects_columns_cards_27353267", "request": { "url": "/projects/columns/cards/27353267", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"note\":\"New note\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectColumnTest/wiremock/testEditColumnName/mappings/projects_columns_6706791-5.json b/src/test/resources/org/kohsuke/github/GHProjectColumnTest/wiremock/testEditColumnName/mappings/projects_columns_6706791-5.json index dbcb31601c..9360612c7d 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectColumnTest/wiremock/testEditColumnName/mappings/projects_columns_6706791-5.json +++ b/src/test/resources/org/kohsuke/github/GHProjectColumnTest/wiremock/testEditColumnName/mappings/projects_columns_6706791-5.json @@ -3,7 +3,6 @@ "name": "projects_columns_6706791", "request": { "url": "/projects/columns/6706791", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"name\":\"new-name\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectBody/mappings/projects_3312435-4.json b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectBody/mappings/projects_3312435-4.json index cd22ef87e4..4497fe5675 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectBody/mappings/projects_3312435-4.json +++ b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectBody/mappings/projects_3312435-4.json @@ -3,7 +3,6 @@ "name": "projects_3312435", "request": { "url": "/projects/3312435", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"body\":\"New body\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectName/mappings/projects_3312436-4.json b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectName/mappings/projects_3312436-4.json index 1ef170af7c..7f2c3992ac 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectName/mappings/projects_3312436-4.json +++ b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectName/mappings/projects_3312436-4.json @@ -3,7 +3,6 @@ "name": "projects_3312436", "request": { "url": "/projects/3312436", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"name\":\"new-name\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectState/mappings/projects_3312433-4.json b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectState/mappings/projects_3312433-4.json index 0f4ffd99e5..3f1eeb47b2 100644 --- a/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectState/mappings/projects_3312433-4.json +++ b/src/test/resources/org/kohsuke/github/GHProjectTest/wiremock/testEditProjectState/mappings/projects_3312433-4.json @@ -3,7 +3,6 @@ "name": "projects_3312433", "request": { "url": "/projects/3312433", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.inertia-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/closePullRequest/mappings/repos_hub4j-test-org_github-api_pulls_272-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/closePullRequest/mappings/repos_hub4j-test-org_github-api_pulls_272-7.json index 6e5bf646a2..11b82a8172 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/closePullRequest/mappings/repos_hub4j-test-org_github-api_pulls_272-7.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/closePullRequest/mappings/repos_hub4j-test-org_github-api_pulls_272-7.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_272", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/272", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/mappings/repos_hub4j-test-org_github-api_pulls_273-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/mappings/repos_hub4j-test-org_github-api_pulls_273-7.json index 48b1676a9d..e9b2a2f139 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/mappings/repos_hub4j-test-org_github-api_pulls_273-7.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequest/mappings/repos_hub4j-test-org_github-api_pulls_273-7.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_273", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/273", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequestComment/mappings/repos_hub4j-test-org_github-api_pulls_270-8.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequestComment/mappings/repos_hub4j-test-org_github-api_pulls_270-8.json index 591c72ba79..4c895a0e2e 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequestComment/mappings/repos_hub4j-test-org_github-api_pulls_270-8.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/createPullRequestComment/mappings/repos_hub4j-test-org_github-api_pulls_270-8.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_270", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/270", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/getUserTest/mappings/repos_hub4j-test-org_github-api_pulls_263-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/getUserTest/mappings/repos_hub4j-test-org_github-api_pulls_263-11.json index 043f612f89..1ade2f3f56 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/getUserTest/mappings/repos_hub4j-test-org_github-api_pulls_263-11.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/getUserTest/mappings/repos_hub4j-test-org_github-api_pulls_263-11.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_263", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/263", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json index d0f47173f3..6ad885a24a 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_395-18.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_pulls_395", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/395", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json index d14259c593..1f7304e4da 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviewComments/mappings/repos_hub4j-test-org_github-api_pulls_comments_562972753-14.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_pulls_comments_562972753", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/comments/562972753", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/repos_hub4j-test-org_github-api_pulls_258-13.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/repos_hub4j-test-org_github-api_pulls_258-13.json index 5f99a5fc5f..a79401f458 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/repos_hub4j-test-org_github-api_pulls_258-13.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/pullRequestReviews/mappings/repos_hub4j-test-org_github-api_pulls_258-13.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_258", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/258", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_259-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_259-10.json index 3dd4b6d395..a3e64815c1 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_259-10.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_259-10.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_259", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/259", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_260-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_260-9.json index dc0352a4d4..79f16db7bd 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_260-9.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsQualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_260-9.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_260", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/260", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_268-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_268-9.json index f35572fa74..c36706c2a6 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_268-9.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_268-9.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_268", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/268", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_269-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_269-10.json index 15a9f780e4..a5dfd34c39 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_269-10.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/queryPullRequestsUnqualifiedHead/mappings/repos_hub4j-test-org_github-api_pulls_269-10.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_269", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/269", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/removeLabels/mappings/repos_hub4j-test-org_github-api_issues_425-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/removeLabels/mappings/repos_hub4j-test-org_github-api_issues_425-5.json index e4d2d16ec9..ec0ac0ee99 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/removeLabels/mappings/repos_hub4j-test-org_github-api_issues_425-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/removeLabels/mappings/repos_hub4j-test-org_github-api_issues_425-5.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_issues_425", "request": { "url": "/repos/hub4j-test-org/github-api/issues/425", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_issues_271-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_issues_271-5.json index 7d5338fccb..00e3d852b6 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_issues_271-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_issues_271-5.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_issues_271", "request": { "url": "/repos/hub4j-test-org/github-api/issues/271", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"assignees\":[\"bitwiseman\"]}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_pulls_271-10.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_pulls_271-10.json index d3bc384505..ef73c2b0d6 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_pulls_271-10.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setAssignee/mappings/repos_hub4j-test-org_github-api_pulls_271-10.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_271", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/271", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranch/mappings/repos_hub4j-test-org_github-api_pulls_382-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranch/mappings/repos_hub4j-test-org_github-api_pulls_382-4.json index a9bc819b8f..f8cdbb2bd8 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranch/mappings/repos_hub4j-test-org_github-api_pulls_382-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranch/mappings/repos_hub4j-test-org_github-api_pulls_382-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_pulls_382", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/382", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-4.json index 4e9373bdea..d8ce51fd5e 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_pulls_381", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/381", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-5.json index 625958a38a..66593edd95 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setBaseBranchNonExisting/mappings/repos_hub4j-test-org_github-api_pulls_381-5.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api_pulls_381", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/381", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_issues_264-5.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_issues_264-5.json index 18426c879a..956e87b500 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_issues_264-5.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_issues_264-5.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_issues_264", "request": { "url": "/repos/hub4j-test-org/github-api/issues/264", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"labels\":[\"setLabels_label_name\"]}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_pulls_264-11.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_pulls_264-11.json index 0810558bb6..6eb10099a2 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_pulls_264-11.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/setLabels/mappings/repos_hub4j-test-org_github-api_pulls_264-11.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api_pulls_264", "request": { "url": "/repos/hub4j-test-org/github-api/pulls/264", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"state\":\"closed\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.shadow-cat-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json index ebab5cdf4b..a4ef8333cb 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated", "request": { "url": "/repos/hub4j-test-org/updateOutdatedBranches/git/refs/heads/outdated", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_8-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_8-9.json index 30a93d73fd..ed80bb7695 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_8-9.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranches/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_8-9.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_updateoutdatedbranches_pulls_8", "request": { "url": "/repos/hub4j-test-org/updateOutdatedBranches/pulls/8", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json index 8cf61ce9d4..6446236a31 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated", "request": { "url": "/repos/hub4j-test-org/updateOutdatedBranches/git/refs/heads/outdated", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-7.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-7.json index 012954d35b..dca0121b29 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-7.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated-7.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_updateoutdatedbranches_git_refs_heads_outdated", "request": { "url": "/repos/hub4j-test-org/updateOutdatedBranches/git/refs/heads/outdated", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_9-9.json b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_9-9.json index f6bc92de2f..13f6b83b01 100644 --- a/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_9-9.json +++ b/src/test/resources/org/kohsuke/github/GHPullRequestTest/wiremock/updateOutdatedBranchesUnexpectedHead/mappings/repos_hub4j-test-org_updateoutdatedbranches_pulls_9-9.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_updateoutdatedbranches_pulls_9", "request": { "url": "/repos/hub4j-test-org/updateOutdatedBranches/pulls/9", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/archive/mappings/repos_hub4j-test-org_github-api-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/archive/mappings/repos_hub4j-test-org_github-api-4.json index 729365aed3..7fa6526a49 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/archive/mappings/repos_hub4j-test-org_github-api-4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/archive/mappings/repos_hub4j-test-org_github-api-4.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"archived\":true,\"name\":\"github-api\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": false } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-4.json index 7a3bc6e5cf..0613218965 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-6.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-6.json index 8e21f6a056..a6fb42009e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-6.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setDeleteBranchOnMerge/mappings/repos_hub4j-test-org_github-api-6.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-3.json index fe4c5db96c..5676533d8e 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-3.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"allow_squash_merge\":true,\"name\":\"temp-setMergeOptions\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-4.json index 62a991e39c..671b807896 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-4.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"allow_merge_commit\":false,\"name\":\"temp-setMergeOptions\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-5.json index dfe7d0dbf1..f886b87ea8 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-5.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":false}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-7.json index 44b9d17677..2a886a6cbf 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-7.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"allow_merge_commit\":true,\"name\":\"temp-setMergeOptions\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-8.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-8.json index eeabdd5c21..fd0d6821e2 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-8.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-8.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"name\":\"temp-setMergeOptions\",\"allow_rebase_merge\":true}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-9.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-9.json index 8561fce262..97d8e7a16d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-9.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/setMergeOptions/mappings/repos_hub4j-test-org_temp-setmergeoptions-9.json @@ -3,7 +3,6 @@ "name": "repos_hub4j-test-org_temp-setmergeoptions", "request": { "url": "/repos/hub4j-test-org/temp-setMergeOptions", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"allow_squash_merge\":false,\"name\":\"temp-setMergeOptions\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-10.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-10.json index 4f0ae7e726..59c61c9e05 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-10.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-10.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-repo-visibility", "request": { "url": "/repos/hub4j-test-org/test-repo-visibility", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.nebula-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-4.json index df22d7aeed..f8928753f5 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-repo-visibility", "request": { "url": "/repos/hub4j-test-org/test-repo-visibility", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.nebula-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-7.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-7.json index a527de1822..a1fd634301 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-7.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testGetRepositoryWithVisibility/mappings/repos_hub4j-test-org_test-repo-visibility-7.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_test-repo-visibility", "request": { "url": "/repos/hub4j-test-org/test-repo-visibility", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "application/vnd.github.nebula-preview+json" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-3.json index 55925dedee..58e3178f32 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-3.json @@ -3,7 +3,6 @@ "name": "repos_bitwiseman_test-repo-public", "request": { "url": "/repos/bitwiseman/test-repo-public", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"private\":true,\"name\":\"test-repo-public\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-5.json index aa58030e9c..95af2f0914 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testSetPublic/mappings/repos_bitwiseman_test-repo-public-5.json @@ -3,7 +3,6 @@ "name": "repos_bitwiseman_test-repo-public", "request": { "url": "/repos/bitwiseman/test-repo-public", - "method": "PATCH", "bodyPatterns": [ { "equalToJson": "{\"private\":false,\"name\":\"test-repo-public\"}", @@ -11,7 +10,11 @@ "ignoreExtraElements": true } ], + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-3.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-3.json index 6852933de6..7f18652712 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-3.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-3.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_temp-testupdaterepository", "request": { "url": "/repos/hub4j-test-org/temp-testUpdateRepository", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-4.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-4.json index bf4eeead36..046ef1c56d 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-4.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-4.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_temp-testupdaterepository", "request": { "url": "/repos/hub4j-test-org/temp-testUpdateRepository", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-5.json b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-5.json index 1a64869043..8dfc710b24 100644 --- a/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-5.json +++ b/src/test/resources/org/kohsuke/github/GHRepositoryTest/wiremock/testUpdateRepository/mappings/repos_hub4j-test-org_temp-testupdaterepository-5.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_temp-testupdaterepository", "request": { "url": "/repos/hub4j-test-org/temp-testUpdateRepository", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-4.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-4.json index f55bae64af..3060e38b19 100644 --- a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-4.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-4.json @@ -3,8 +3,11 @@ "name": "teams_3451996", "request": { "url": "/teams/3451996", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-6.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-6.json index a658fa590b..9b52a0061d 100644 --- a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-6.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetDescription/mappings/teams_3451996-6.json @@ -3,8 +3,11 @@ "name": "teams_3451996", "request": { "url": "/teams/3451996", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-4.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-4.json index bbfcc17989..c4cb805289 100644 --- a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-4.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-4.json @@ -3,8 +3,11 @@ "name": "teams_3451996", "request": { "url": "/teams/3451996", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-6.json b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-6.json index c432cf4d1d..7769b0b0e6 100644 --- a/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-6.json +++ b/src/test/resources/org/kohsuke/github/GHTeamTest/wiremock/testSetPrivacy/mappings/teams_3451996-6.json @@ -3,8 +3,11 @@ "name": "teams_3451996", "request": { "url": "/teams/3451996", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testAdd/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-11.json b/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testAdd/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-11.json index a16bda4cff..51c1fc755d 100644 --- a/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testAdd/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-11.json +++ b/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testAdd/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-11.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master", "request": { "url": "/repos/hub4j-test-org/GHTreeBuilderTest/git/refs/heads/master", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testShaEntry/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-9.json b/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testShaEntry/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-9.json index 1f7f262cb0..292b6e2230 100644 --- a/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testShaEntry/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-9.json +++ b/src/test/resources/org/kohsuke/github/GHTreeBuilderTest/wiremock/testShaEntry/mappings/repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master-9.json @@ -3,8 +3,11 @@ "name": "repos_hub4j-test-org_ghtreebuildertest_git_refs_heads_master", "request": { "url": "/repos/hub4j-test-org/GHTreeBuilderTest/git/refs/heads/master", - "method": "PATCH", + "method": "POST", "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, "Accept": { "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" } diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_hub4j-test-org_temp-testcreaterepository_releases_assets_16422841-9.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_hub4j-test-org_temp-testcreaterepository_releases_assets_16422841-9.json index 83dda5bb47..660087b519 100644 --- a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_hub4j-test-org_temp-testcreaterepository_releases_assets_16422841-9.json +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_hub4j-test-org_temp-testcreaterepository_releases_assets_16422841-9.json @@ -3,19 +3,22 @@ "name": "repos_hub4j-test-org_temp-testcreaterepository_releases_assets_16422841", "request": { "url": "/repos/hub4j-test-org/temp-testCreateRepository/releases/assets/16422841", - "method": "PATCH", + "method": "POST", + "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + }, + "Accept": { + "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + } + }, "bodyPatterns": [ { "equalToJson": "{\"label\":\"test label\"}", "ignoreArrayOrder": true, "ignoreExtraElements": true } - ], - "headers": { - "Accept": { - "equalTo": "text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" - } - } + ] }, "response": { "status": 200, diff --git a/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/DefaultConnector/mappings/repos_hub4j-test-org_github-api-9.json b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/DefaultConnector/mappings/repos_hub4j-test-org_github-api-9.json index 1ff533f95a..95d014491c 100644 --- a/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/DefaultConnector/mappings/repos_hub4j-test-org_github-api-9.json +++ b/src/test/resources/org/kohsuke/github/extras/OkHttpConnectorTest/wiremock/DefaultConnector/mappings/repos_hub4j-test-org_github-api-9.json @@ -3,7 +3,12 @@ "name": "repos_hub4j-test-org_github-api", "request": { "url": "/repos/hub4j-test-org/github-api", - "method": "PATCH", + "method": "POST", + "headers": { + "X-HTTP-Method-Override": { + "equalTo": "PATCH" + } + }, "bodyPatterns": [ { "equalToJson": "{\"name\":\"github-api\",\"description\":\"DefaultConnector\"}",