diff --git a/src/main/java/org/kohsuke/github/GHRelease.java b/src/main/java/org/kohsuke/github/GHRelease.java index 796cecf73a..3955693071 100644 --- a/src/main/java/org/kohsuke/github/GHRelease.java +++ b/src/main/java/org/kohsuke/github/GHRelease.java @@ -5,6 +5,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.URL; +import java.net.URLEncoder; import java.util.Arrays; import java.util.Date; import java.util.List; @@ -240,11 +241,10 @@ public GHAsset uploadAsset(File file, String contentType) throws IOException { */ public GHAsset uploadAsset(String filename, InputStream stream, String contentType) throws IOException { Requester builder = new Requester(owner.root); - - String url = format("https://uploads.github.com%s/releases/%d/assets?name=%s", - owner.getApiTailUrl(""), - getId(), - filename); + String url = getUploadUrl(); + // strip the helpful garbage from the url + url = url.substring(0, url.indexOf('{')); + url += "?name=" + URLEncoder.encode(filename, "UTF-8"); return builder.contentType(contentType).with(stream).to(url, GHAsset.class).wrap(this); } diff --git a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java index 966057c8ec..9bafb4d9d1 100644 --- a/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java +++ b/src/test/java/org/kohsuke/github/AbstractGitHubWireMockTest.java @@ -170,25 +170,21 @@ protected GHRepository getTempRepository(String name) throws IOException { .description("A test repository for testing the github-api project: " + name) .homepage("http://github-api.kohsuke.org/") .autoInit(true) + .wiki(true) + .downloads(true) + .issues(true) + .private_(false) .create(); try { Thread.sleep(3000); } catch (InterruptedException e) { throw new RuntimeException(e.getMessage(), e); } - - configureTempRepository(repository); } return gitHub.getRepository(fullName); } - protected void configureTempRepository(GHRepository repository) throws IOException { - repository.enableIssueTracker(true); - repository.enableDownloads(true); - repository.enableWiki(true); - } - @Before @After public void cleanupTempRepositories() throws IOException { diff --git a/src/test/java/org/kohsuke/github/LifecycleTest.java b/src/test/java/org/kohsuke/github/LifecycleTest.java index fc8ed64244..db664aef7b 100644 --- a/src/test/java/org/kohsuke/github/LifecycleTest.java +++ b/src/test/java/org/kohsuke/github/LifecycleTest.java @@ -1,67 +1,42 @@ package org.kohsuke.github; -import org.apache.commons.io.IOUtils; -import org.eclipse.jgit.api.Git; -import org.eclipse.jgit.api.errors.GitAPIException; -import org.eclipse.jgit.dircache.DirCache; -import org.eclipse.jgit.transport.UsernamePasswordCredentialsProvider; import org.junit.Test; import java.io.File; -import java.io.FileInputStream; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.List; -import java.util.Properties; -public class LifecycleTest extends AbstractGitHubApiTestBase { +import static org.hamcrest.CoreMatchers.notNullValue; +import static org.hamcrest.core.Is.is; + +public class LifecycleTest extends AbstractGitHubWireMockTest { @Test - public void testCreateRepository() throws IOException, GitAPIException, InterruptedException { + public void testCreateRepository() throws IOException { GHMyself myself = gitHub.getMyself(); - GHOrganization org = gitHub.getOrganization("github-api-test-org"); - GHRepository repository = org.getRepository("github-api-test"); - if (repository != null) { - repository.delete(); - Thread.sleep(1000); - } - repository = org.createRepository("github-api-test", - "a test repository used to test kohsuke's github-api", - "http://github-api.kohsuke.org/", - "Core Developers", - true); - Thread.sleep(1000); // wait for the repository to become ready + // GHOrganization org = gitHub.getOrganization(GITHUB_API_TEST_ORG); + GHRepository repository = getTempRepository(); assertTrue(repository.getReleases().isEmpty()); - try { - GHMilestone milestone = repository.createMilestone("Initial Release", "first one"); - GHIssue issue = repository.createIssue("Test Issue") - .body("issue body just for grins") - .milestone(milestone) - .assignee(myself) - .label("bug") - .create(); - File repoDir = new File(System.getProperty("java.io.tmpdir"), "github-api-test"); - delete(repoDir); - Git origin = Git.cloneRepository() - .setBare(false) - .setURI(repository.getSshUrl()) - .setDirectory(repoDir) - .setCredentialsProvider(getCredentialsProvider(myself)) - .call(); - - commitTestFile(myself, repoDir, origin); - - GHRelease release = createRelease(repository); - - GHAsset asset = uploadAsset(release); - - updateAsset(release, asset); - - deleteAsset(release, asset); - } finally { - repository.delete(); - } + + GHMilestone milestone = repository.createMilestone("Initial Release", "first one"); + GHIssue issue = repository.createIssue("Test Issue") + .body("issue body just for grins") + .milestone(milestone) + .assignee(myself) + .label("bug") + .create(); + + assertThat(issue, is(notNullValue())); + + GHRelease release = createRelease(repository); + + GHAsset asset = uploadAsset(release); + + updateAsset(release, asset); + + deleteAsset(release, asset); } private void updateAsset(GHRelease release, GHAsset asset) throws IOException { @@ -96,25 +71,6 @@ private GHRelease createRelease(GHRepository repository) throws IOException { return release; } - private void commitTestFile(GHMyself myself, File repoDir, Git origin) throws IOException, GitAPIException { - File dummyFile = createDummyFile(repoDir); - DirCache cache = origin.add().addFilepattern(dummyFile.getName()).call(); - origin.commit().setMessage("test commit").call(); - origin.push().setCredentialsProvider(getCredentialsProvider(myself)).call(); - } - - private UsernamePasswordCredentialsProvider getCredentialsProvider(GHMyself myself) throws IOException { - Properties props = new Properties(); - File homeDir = new File(System.getProperty("user.home")); - FileInputStream in = new FileInputStream(new File(homeDir, ".github")); - try { - props.load(in); - } finally { - IOUtils.closeQuietly(in); - } - return new UsernamePasswordCredentialsProvider(props.getProperty("login"), props.getProperty("oauth")); - } - private void delete(File toDelete) { if (toDelete.isDirectory()) { for (File file : toDelete.listFiles()) { diff --git a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java index e53f6e4331..c4059344a6 100644 --- a/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java +++ b/src/test/java/org/kohsuke/github/junit/GitHubWireMockRule.java @@ -58,6 +58,10 @@ public WireMockServer rawServer() { return servers.get("raw"); } + public WireMockServer uploadsServer() { + return servers.get("uploads"); + } + public boolean isUseProxy() { return GitHubWireMockRule.useProxy; } @@ -69,39 +73,69 @@ public boolean isTakeSnapshot() { @Override protected void initializeServers() { super.initializeServers(); - initializeServer("raw"); initializeServer("default", new GitHubApiResponseTransformer(this)); + + // only start non-api servers if we might need them + if (new File(apiServer().getOptions().filesRoot().getPath() + "_raw").exists() || isUseProxy()) { + initializeServer("raw"); + } + if (new File(apiServer().getOptions().filesRoot().getPath() + "_uploads").exists() || isUseProxy()) { + initializeServer("uploads"); + } } @Override protected void before() { super.before(); - if (isUseProxy()) { - this.apiServer().stubFor(proxyAllTo("https://api.github.com").atPriority(100)); + if (!isUseProxy()) { + return; + } + + this.apiServer().stubFor(proxyAllTo("https://api.github.com").atPriority(100)); + + if (this.rawServer() != null) { this.rawServer().stubFor(proxyAllTo("https://raw.githubusercontent.com").atPriority(100)); } + + if (this.uploadsServer() != null) { + this.uploadsServer().stubFor(proxyAllTo("https://uploads.github.com").atPriority(100)); + } } @Override protected void after() { super.after(); - if (isTakeSnapshot()) { - this.apiServer() - .snapshotRecord(recordSpec().forTarget("https://api.github.com") - .captureHeader("If-None-Match") - .extractTextBodiesOver(255)); + if (!isTakeSnapshot()) { + return; + } + + this.apiServer() + .snapshotRecord(recordSpec().forTarget("https://api.github.com") + .captureHeader("If-None-Match") + .extractTextBodiesOver(255)); + // After taking the snapshot, format the output + formatJsonFiles(new File(this.apiServer().getOptions().filesRoot().getPath()).toPath()); + + if (this.rawServer() != null) { this.rawServer() .snapshotRecord(recordSpec().forTarget("https://raw.githubusercontent.com") .captureHeader("If-None-Match") .extractTextBodiesOver(255)); - // After taking the snapshot, format the output - formatJsonFiles(new File(this.apiServer().getOptions().filesRoot().getPath()).toPath()); - // For raw server, only fix up mapping files formatJsonFiles(new File(this.rawServer().getOptions().filesRoot().child("mappings").getPath()).toPath()); } + + if (this.uploadsServer() != null) { + this.uploadsServer() + .snapshotRecord(recordSpec().forTarget("https://uploads.github.com") + .captureHeader("If-None-Match") + .extractTextBodiesOver(255)); + + formatJsonFiles(new File(this.uploadsServer().getOptions().filesRoot().getPath()).toPath()); + + } } public int getRequestCount() { @@ -137,8 +171,17 @@ public JsonElement serialize(Double src, Type typeOfSrc, JsonSerializationContex String fileText = new String(Files.readAllBytes(filePath)); // while recording responses we replaced all github calls localhost // now we reverse that for storage. - fileText = fileText.replace(this.apiServer().baseUrl(), "https://api.github.com") - .replace(this.rawServer().baseUrl(), "https://raw.githubusercontent.com"); + fileText = fileText.replace(this.apiServer().baseUrl(), "https://api.github.com"); + + if (this.rawServer() != null) { + fileText = fileText.replace(this.rawServer().baseUrl(), + "https://raw.githubusercontent.com"); + } + + if (this.uploadsServer() != null) { + fileText = fileText.replace(this.uploadsServer().baseUrl(), "https://uploads.github.com"); + } + // Can be Array or Map Object parsedObject = g.fromJson(fileText, Object.class); if (parsedObject instanceof Map && filePath.toString().contains("mappings")) { @@ -196,9 +239,21 @@ public Response transform(Request request, Response response, FileSource files, String body; body = getBodyAsString(response, headers); + body = body.replace("https://api.github.com", rule.apiServer().baseUrl()); + + if (rule.rawServer() != null) { + body = body.replace("https://raw.githubusercontent.com", rule.rawServer().baseUrl()); + } else { + body = body.replace("https://raw.githubusercontent.com", rule.apiServer().baseUrl() + "/raw"); + } + + if (rule.uploadsServer() != null) { + body = body.replace("https://uploads.github.com", rule.uploadsServer().baseUrl()); + } else { + body = body.replace("https://uploads.github.com", rule.apiServer().baseUrl() + "/uploads"); + } - builder.body(body.replace("https://api.github.com", rule.apiServer().baseUrl()) - .replace("https://raw.githubusercontent.com", rule.rawServer().baseUrl())); + builder.body(body); } builder.headers(new HttpHeaders(headers)); diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-create-installation-accesstokens.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-create-installation-accesstokens.json index 7996662d18..0d124ae6bd 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-create-installation-accesstokens.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-create-installation-accesstokens.json @@ -1,39 +1,44 @@ { - "request" : { - "url" : "/app/installations/11111111/access_tokens", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\"repository_ids\":[111111111],\"permissions\":{\"pull_requests\":\"write\",\"metadata\":\"read\",\"checks\":\"write\",\"contents\":\"read\"}}", - "ignoreArrayOrder" : true, - "ignoreExtraElements" : false - } ], - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "request": { + "url": "/app/installations/11111111/access_tokens", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"repository_ids\":[111111111],\"permissions\":{\"pull_requests\":\"write\",\"metadata\":\"read\",\"checks\":\"write\",\"contents\":\"read\"}}", + "ignoreArrayOrder": true, + "ignoreExtraElements": false + } + ], + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, - "response" : { - "status" : 201, - "bodyFileName" : "body-githubapp-create-installation-accesstokens.json", - "headers" : { - "Date" : "Sat, 10 Aug 2019 04:54:58 GMT", - "Content-Type" : "application/json; charset=utf-8", - "Server" : "GitHub.com", - "Status" : "201 Created", - "Cache-Control" : "public, max-age=60, s-maxage=60", - "Vary" : [ "Accept", "Accept-Encoding" ], - "ETag" : "\"c47070915d3f78d2c4aea4bd8a2c3351\"", - "X-GitHub-Media-Type" : "github.machine-man-preview; format=json", - "Access-Control-Expose-Headers" : "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", - "Access-Control-Allow-Origin" : "*", - "Strict-Transport-Security" : "max-age=31536000; includeSubdomains; preload", - "X-Frame-Options" : "deny", - "X-Content-Type-Options" : "nosniff", - "X-XSS-Protection" : "1; mode=block", - "Referrer-Policy" : "origin-when-cross-origin, strict-origin-when-cross-origin", - "Content-Security-Policy" : "default-src 'none'", - "X-GitHub-Request-Id" : "EEC8:4357:E0DD17:110A2E7:5D4E4E22" + "response": { + "status": 201, + "bodyFileName": "body-githubapp-create-installation-accesstokens.json", + "headers": { + "Date": "Sat, 10 Aug 2019 04:54:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "Cache-Control": "public, max-age=60, s-maxage=60", + "Vary": [ + "Accept", + "Accept-Encoding" + ], + "ETag": "\"c47070915d3f78d2c4aea4bd8a2c3351\"", + "X-GitHub-Media-Type": "github.machine-man-preview; format=json", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "EEC8:4357:E0DD17:110A2E7:5D4E4E22" } } } \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-installation-by-user.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-installation-by-user.json index 573705fde7..e554674205 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-installation-by-user.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/createToken/mappings/mapping-githubapp-installation-by-user.json @@ -2,9 +2,9 @@ "request": { "url": "/users/bogus/installation", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-delete-installation.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-delete-installation.json index 4fbf043a8f..ee6d968f16 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-delete-installation.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-delete-installation.json @@ -2,9 +2,9 @@ "request": { "url": "/app/installations/11111111", "method": "DELETE", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.gambit-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.gambit-preview+json" } } }, @@ -16,7 +16,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "204 No Content", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-installation-by-user.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-installation-by-user.json index 573705fde7..e554674205 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-installation-by-user.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/deleteInstallation/mappings/mapping-githubapp-installation-by-user.json @@ -2,9 +2,9 @@ "request": { "url": "/users/bogus/installation", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getGitHubApp/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getGitHubApp/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getGitHubApp/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getGitHubApp/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-installation-by-id.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-installation-by-id.json index 87ba55f445..15b9927ccb 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-installation-by-id.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationById/mappings/mapping-githubapp-installation-by-id.json @@ -2,9 +2,9 @@ "request": { "url": "/app/installations/1111111", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-installation-by-organization.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-installation-by-organization.json index bd94ed4800..a7bef648e6 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-installation-by-organization.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByOrganization/mappings/mapping-githubapp-installation-by-organization.json @@ -2,9 +2,9 @@ "request": { "url": "/orgs/bogus/installation", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-installation-by-repository.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-installation-by-repository.json index 3fd3c011c0..070fe09c5b 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-installation-by-repository.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByRepository/mappings/mapping-githubapp-installation-by-repository.json @@ -2,9 +2,9 @@ "request": { "url": "/repos/bogus/bogus/installation", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-installation-by-user.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-installation-by-user.json index 573705fde7..e554674205 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-installation-by-user.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/getInstallationByUser/mappings/mapping-githubapp-installation-by-user.json @@ -2,9 +2,9 @@ "request": { "url": "/users/bogus/installation", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/__files/body-mapping-githubapp-installations.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/__files/body-mapping-githubapp-installations.json index d81bc3786e..4ca1c46c81 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/__files/body-mapping-githubapp-installations.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/__files/body-mapping-githubapp-installations.json @@ -1,6 +1,6 @@ [ { - "id": 11111111, + "id": 11111111, "account": { "login": "bogus", "id": 111111111, diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-app.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-app.json index 999f4c8286..2e7a553f6d 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-app.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-app.json @@ -2,9 +2,9 @@ "request": { "url": "/app", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-installations.json b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-installations.json index 5b01455c26..87b532643a 100644 --- a/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-installations.json +++ b/src/test/resources/org/kohsuke/github/GHAppTest/wiremock/listInstallations/mappings/mapping-githubapp-installations.json @@ -2,9 +2,9 @@ "request": { "url": "/app/installations", "method": "GET", - "headers" : { - "Accept" : { - "equalTo" : "application/vnd.github.machine-man-preview+json" + "headers": { + "Accept": { + "equalTo": "application/vnd.github.machine-man-preview+json" } } }, @@ -17,7 +17,10 @@ "Content-Type": "application/json; charset=utf-8", "Status": "200 OK", "Cache-Control": "public, max-age=60, s-maxage=60", - "Vary": ["Accept","Accept-Encoding"], + "Vary": [ + "Accept", + "Accept-Encoding" + ], "ETag": "W/\"01163b1a237898d328ed56cd0e9aefca\"", "X-GitHub-Media-Type": "github.machine-man-preview; format=json", "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository-d9529c18-0c13-4a5e-bb48-73519a203cea.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository-d9529c18-0c13-4a5e-bb48-73519a203cea.json new file mode 100644 index 0000000000..8cf7157266 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository-d9529c18-0c13-4a5e-bb48-73519a203cea.json @@ -0,0 +1,124 @@ +{ + "id": 223286345, + "node_id": "MDEwOlJlcG9zaXRvcnkyMjMyODYzNDU=", + "name": "temp-testCreateRepository", + "full_name": "github-api-test-org/temp-testCreateRepository", + "private": false, + "owner": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository", + "description": "A test repository for testing the github-api project: temp-testCreateRepository", + "fork": false, + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository", + "forks_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/forks", + "keys_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/keys{/key_id}", + "collaborators_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/collaborators{/collaborator}", + "teams_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/teams", + "hooks_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/hooks", + "issue_events_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/events{/number}", + "events_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/events", + "assignees_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/assignees{/user}", + "branches_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/branches{/branch}", + "tags_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/tags", + "blobs_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/git/blobs{/sha}", + "git_tags_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/git/tags{/sha}", + "git_refs_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/git/refs{/sha}", + "trees_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/git/trees{/sha}", + "statuses_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/statuses/{sha}", + "languages_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/languages", + "stargazers_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/stargazers", + "contributors_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/contributors", + "subscribers_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/subscribers", + "subscription_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/subscription", + "commits_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/commits{/sha}", + "git_commits_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/git/commits{/sha}", + "comments_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/comments{/number}", + "issue_comment_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/comments{/number}", + "contents_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/contents/{+path}", + "compare_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/compare/{base}...{head}", + "merges_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/merges", + "archive_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/{archive_format}{/ref}", + "downloads_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/downloads", + "issues_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues{/number}", + "pulls_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/pulls{/number}", + "milestones_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones{/number}", + "notifications_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/notifications{?since,all,participating}", + "labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/labels{/name}", + "releases_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases{/id}", + "deployments_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/deployments", + "created_at": "2019-11-21T23:50:49Z", + "updated_at": "2019-11-21T23:50:53Z", + "pushed_at": "2019-11-21T23:50:51Z", + "git_url": "git://github.com/github-api-test-org/temp-testCreateRepository.git", + "ssh_url": "git@github.com:github-api-test-org/temp-testCreateRepository.git", + "clone_url": "https://github.com/github-api-test-org/temp-testCreateRepository.git", + "svn_url": "https://github.com/github-api-test-org/temp-testCreateRepository", + "homepage": "http://github-api.kohsuke.org/", + "size": 0, + "stargazers_count": 0, + "watchers_count": 0, + "language": null, + "has_issues": true, + "has_projects": true, + "has_downloads": true, + "has_wiki": true, + "has_pages": false, + "forks_count": 0, + "mirror_url": null, + "archived": false, + "disabled": false, + "open_issues_count": 0, + "license": null, + "forks": 0, + "open_issues": 0, + "watchers": 0, + "default_branch": "master", + "permissions": { + "admin": true, + "push": true, + "pull": true + }, + "allow_squash_merge": true, + "allow_merge_commit": true, + "allow_rebase_merge": true, + "organization": { + "login": "github-api-test-org", + "id": 7544739, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjc1NDQ3Mzk=", + "avatar_url": "https://avatars3.githubusercontent.com/u/7544739?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/github-api-test-org", + "html_url": "https://github.com/github-api-test-org", + "followers_url": "https://api.github.com/users/github-api-test-org/followers", + "following_url": "https://api.github.com/users/github-api-test-org/following{/other_user}", + "gists_url": "https://api.github.com/users/github-api-test-org/gists{/gist_id}", + "starred_url": "https://api.github.com/users/github-api-test-org/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/github-api-test-org/subscriptions", + "organizations_url": "https://api.github.com/users/github-api-test-org/orgs", + "repos_url": "https://api.github.com/users/github-api-test-org/repos", + "events_url": "https://api.github.com/users/github-api-test-org/events{/privacy}", + "received_events_url": "https://api.github.com/users/github-api-test-org/received_events", + "type": "Organization", + "site_admin": false + }, + "network_count": 0, + "subscribers_count": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_issues-3d4ef294-b04f-4864-945e-215c93eb0d77.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_issues-3d4ef294-b04f-4864-945e-215c93eb0d77.json new file mode 100644 index 0000000000..2cfa68f206 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_issues-3d4ef294-b04f-4864-945e-215c93eb0d77.json @@ -0,0 +1,131 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1", + "repository_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository", + "labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1/labels{/name}", + "comments_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1/comments", + "events_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1/events", + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/issues/1", + "id": 526906115, + "node_id": "MDU6SXNzdWU1MjY5MDYxMTU=", + "number": 1, + "title": "Test Issue", + "user": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "labels": [ + { + "id": 1690995162, + "node_id": "MDU6TGFiZWwxNjkwOTk1MTYy", + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/labels/bug", + "name": "bug", + "color": "d73a4a", + "default": true, + "description": "Something isn't working" + } + ], + "state": "open", + "locked": false, + "assignee": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "assignees": [ + { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + } + ], + "milestone": { + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1", + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/milestone/1", + "labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1/labels", + "id": 4868306, + "node_id": "MDk6TWlsZXN0b25lNDg2ODMwNg==", + "number": 1, + "title": "Initial Release", + "description": "first one", + "creator": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 1, + "closed_issues": 0, + "state": "open", + "created_at": "2019-11-21T23:50:55Z", + "updated_at": "2019-11-21T23:50:56Z", + "due_on": null, + "closed_at": null + }, + "comments": 0, + "created_at": "2019-11-21T23:50:56Z", + "updated_at": "2019-11-21T23:50:57Z", + "closed_at": null, + "author_association": "MEMBER", + "body": "issue body just for grins", + "closed_by": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_milestones-f9ee1424-8c2a-44d5-a0e2-70bc605f0539.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_milestones-f9ee1424-8c2a-44d5-a0e2-70bc605f0539.json new file mode 100644 index 0000000000..3c1ba83a26 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_milestones-f9ee1424-8c2a-44d5-a0e2-70bc605f0539.json @@ -0,0 +1,37 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1", + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/milestone/1", + "labels_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1/labels", + "id": 4868306, + "node_id": "MDk6TWlsZXN0b25lNDg2ODMwNg==", + "number": 1, + "title": "Initial Release", + "description": "first one", + "creator": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "open_issues": 0, + "closed_issues": 0, + "state": "open", + "created_at": "2019-11-21T23:50:55Z", + "updated_at": "2019-11-21T23:50:55Z", + "due_on": null, + "closed_at": null +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-7a54183e-5bb9-4c5f-80f5-7258dea53fa3.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-7a54183e-5bb9-4c5f-80f5-7258dea53fa3.json new file mode 100644 index 0000000000..e7b30b10a2 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-7a54183e-5bb9-4c5f-80f5-7258dea53fa3.json @@ -0,0 +1,39 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831", + "assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets", + "upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets{?name,label}", + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/tag/release_tag", + "id": 21671831, + "node_id": "MDc6UmVsZWFzZTIxNjcxODMx", + "tag_name": "release_tag", + "target_commitish": "master", + "name": "Test Release", + "draft": false, + "author": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "prerelease": false, + "created_at": "2019-11-21T23:50:50Z", + "published_at": "2019-11-21T23:50:58Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/tarball/release_tag", + "zipball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/zipball/release_tag", + "body": "How exciting! To be able to programmatically create releases is a dream come true!" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-e9a21863-e1fb-4651-9fa8-72207ad24948.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-e9a21863-e1fb-4651-9fa8-72207ad24948.json new file mode 100644 index 0000000000..8d5366bdb9 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases-e9a21863-e1fb-4651-9fa8-72207ad24948.json @@ -0,0 +1,41 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831", + "assets_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets", + "upload_url": "https://uploads.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets{?name,label}", + "html_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/tag/release_tag", + "id": 21671831, + "node_id": "MDc6UmVsZWFzZTIxNjcxODMx", + "tag_name": "release_tag", + "target_commitish": "master", + "name": "Test Release", + "draft": false, + "author": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "prerelease": false, + "created_at": "2019-11-21T23:50:50Z", + "published_at": "2019-11-21T23:50:58Z", + "assets": [], + "tarball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/tarball/release_tag", + "zipball_url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/zipball/release_tag", + "body": "How exciting! To be able to programmatically create releases is a dream come true!" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-4402281a-b2d4-4286-955a-d784ef9b8d20.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-4402281a-b2d4-4286-955a-d784ef9b8d20.json new file mode 100644 index 0000000000..a1a8660327 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-4402281a-b2d4-4286-955a-d784ef9b8d20.json @@ -0,0 +1,36 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "id": 16322363, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz", + "name": "pom.xml", + "label": "test label", + "uploader": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/text", + "state": "uploaded", + "size": 19154, + "download_count": 0, + "created_at": "2019-11-21T23:50:58Z", + "updated_at": "2019-11-21T23:50:59Z", + "browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-d977eae5-c6e4-4af2-912a-2ec3fe074f41.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-d977eae5-c6e4-4af2-912a-2ec3fe074f41.json new file mode 100644 index 0000000000..41e56f8258 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-d977eae5-c6e4-4af2-912a-2ec3fe074f41.json @@ -0,0 +1,36 @@ +[ + { + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "id": 16322363, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz", + "name": "pom.xml", + "label": "", + "uploader": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/text", + "state": "uploaded", + "size": 19154, + "download_count": 0, + "created_at": "2019-11-21T23:50:58Z", + "updated_at": "2019-11-21T23:50:58Z", + "browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml" + } +] \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-befe734a-7e49-410e-99b5-1958244232b3.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-befe734a-7e49-410e-99b5-1958244232b3.json new file mode 100644 index 0000000000..6fdfd6e614 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-befe734a-7e49-410e-99b5-1958244232b3.json @@ -0,0 +1,34 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "id": 16322363, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz", + "name": "pom.xml", + "label": "test label", + "uploader": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/text", + "state": "uploaded", + "size": 19154, + "download_count": 0, + "created_at": "2019-11-21T23:50:58Z", + "updated_at": "2019-11-21T23:50:59Z", + "browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/user-1d236ca5-8204-44d4-bef5-0641768ada5b.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/user-1d236ca5-8204-44d4-bef5-0641768ada5b.json new file mode 100644 index 0000000000..8e5820fff7 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/__files/user-1d236ca5-8204-44d4-bef5-0641768ada5b.json @@ -0,0 +1,45 @@ +{ + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false, + "name": "Liam Newman", + "company": "Cloudbees, Inc.", + "blog": "", + "location": "Seattle, WA, USA", + "email": "bitwiseman@gmail.com", + "hireable": null, + "bio": "https://twitter.com/bitwiseman", + "public_repos": 176, + "public_gists": 7, + "followers": 140, + "following": 9, + "created_at": "2012-07-11T20:38:33Z", + "updated_at": "2019-09-24T19:32:29Z", + "private_gists": 7, + "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 + } +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository-2-d9529c.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository-2-d9529c.json new file mode 100644 index 0000000000..1a96b29cf8 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository-2-d9529c.json @@ -0,0 +1,43 @@ +{ + "id": "d9529c18-0c13-4a5e-bb48-73519a203cea", + "name": "repos_github-api-test-org_temp-testcreaterepository", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository-d9529c18-0c13-4a5e-bb48-73519a203cea.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4943", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"28969e7c25585c1ca6f9b2d52c38ebf0\"", + "Last-Modified": "Thu, 21 Nov 2019 23:50:53 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E86:41BD89:5DD722D8" + } + }, + "uuid": "d9529c18-0c13-4a5e-bb48-73519a203cea", + "persistent": true, + "insertionIndex": 2 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_issues-5-3d4ef2.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_issues-5-3d4ef2.json new file mode 100644 index 0000000000..192630eb7f --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_issues-5-3d4ef2.json @@ -0,0 +1,50 @@ +{ + "id": "3d4ef294-b04f-4864-945e-215c93eb0d77", + "name": "repos_github-api-test-org_temp-testcreaterepository_issues", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/issues", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"milestone\":1,\"assignees\":[\"bitwiseman\"],\"title\":\"Test Issue\",\"body\":\"issue body just for grins\",\"labels\":[\"bug\"]}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_issues-3d4ef294-b04f-4864-945e-215c93eb0d77.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:57 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4940", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"e8d4a2a6589237297117a1bd27aeffae\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/issues/1", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E8F:41BE00:5DD722DF" + } + }, + "uuid": "3d4ef294-b04f-4864-945e-215c93eb0d77", + "persistent": true, + "insertionIndex": 5 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_milestones-4-f9ee14.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_milestones-4-f9ee14.json new file mode 100644 index 0000000000..60badd3637 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_milestones-4-f9ee14.json @@ -0,0 +1,50 @@ +{ + "id": "f9ee1424-8c2a-44d5-a0e2-70bc605f0539", + "name": "repos_github-api-test-org_temp-testcreaterepository_milestones", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/milestones", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"description\":\"first one\",\"title\":\"Initial Release\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_milestones-f9ee1424-8c2a-44d5-a0e2-70bc605f0539.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4941", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"3eda4a76756caa68d628e0757e6b86f8\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "Location": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/milestones/1", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E8D:41BDFE:5DD722DF" + } + }, + "uuid": "f9ee1424-8c2a-44d5-a0e2-70bc605f0539", + "persistent": true, + "insertionIndex": 4 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-3-618e30.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-3-618e30.json new file mode 100644 index 0000000000..fdb4f23f48 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-3-618e30.json @@ -0,0 +1,45 @@ +{ + "id": "618e30e4-9441-4b53-a3ee-e05d77cc8d82", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:55 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4942", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E8A:41BDFB:5DD722DF" + } + }, + "uuid": "618e30e4-9441-4b53-a3ee-e05d77cc8d82", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-temp-testCreateRepository-releases", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-1-repos-github-api-test-org-temp-testCreateRepository-releases-2", + "insertionIndex": 3 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-6-7a5418.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-6-7a5418.json new file mode 100644 index 0000000000..3e25bc2d65 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-6-7a5418.json @@ -0,0 +1,50 @@ +{ + "id": "7a54183e-5bb9-4c5f-80f5-7258dea53fa3", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases", + "method": "POST", + "bodyPatterns": [ + { + "equalToJson": "{\"tag_name\":\"release_tag\",\"name\":\"Test Release\",\"body\":\"How exciting! To be able to programmatically create releases is a dream come true!\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases-7a54183e-5bb9-4c5f-80f5-7258dea53fa3.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "201 Created", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4939", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"d4f5a618e6e1d40262721c31ab521562\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "Location": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/21671831", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E98:41BE0D:5DD722E1" + } + }, + "uuid": "7a54183e-5bb9-4c5f-80f5-7258dea53fa3", + "persistent": true, + "insertionIndex": 6 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-7-e9a218.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-7-e9a218.json new file mode 100644 index 0000000000..0facd34907 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases-7-e9a218.json @@ -0,0 +1,44 @@ +{ + "id": "e9a21863-e1fb-4651-9fa8-72207ad24948", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases-e9a21863-e1fb-4651-9fa8-72207ad24948.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:58 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4938", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"092d8ce0970d3633c2d808fe290ce2be\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385EA6:41BE1E:5DD722E2" + } + }, + "uuid": "e9a21863-e1fb-4651-9fa8-72207ad24948", + "persistent": true, + "scenarioName": "scenario-1-repos-github-api-test-org-temp-testCreateRepository-releases", + "requiredScenarioState": "scenario-1-repos-github-api-test-org-temp-testCreateRepository-releases-2", + "insertionIndex": 7 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-10-440228.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-10-440228.json new file mode 100644 index 0000000000..70a139ff23 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-10-440228.json @@ -0,0 +1,45 @@ +{ + "id": "4402281a-b2d4-4286-955a-d784ef9b8d20", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-4402281a-b2d4-4286-955a-d784ef9b8d20.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4933", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"6382598abe18141db196807787808fd1\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385EB3:41BE38:5DD722E3" + } + }, + "uuid": "4402281a-b2d4-4286-955a-d784ef9b8d20", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets-2", + "newScenarioState": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets-3", + "insertionIndex": 10 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-12-86627e.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-12-86627e.json new file mode 100644 index 0000000000..4d3d156ef0 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-12-86627e.json @@ -0,0 +1,44 @@ +{ + "id": "86627e83-0d3a-4cc0-bc55-d549388fd7c7", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets", + "method": "GET" + }, + "response": { + "status": 200, + "body": "[]", + "headers": { + "Date": "Thu, 21 Nov 2019 23:51:00 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4931", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "\"ad5808b0a5d75d70a16a73b8e9763e19\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385EBD:41BE43:5DD722E4" + } + }, + "uuid": "86627e83-0d3a-4cc0-bc55-d549388fd7c7", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets", + "requiredScenarioState": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets-3", + "insertionIndex": 12 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-8-d977ea.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-8-d977ea.json new file mode 100644 index 0000000000..1c314fecb3 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-8-d977ea.json @@ -0,0 +1,45 @@ +{ + "id": "d977eae5-c6e4-4af2-912a-2ec3fe074f41", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-d977eae5-c6e4-4af2-912a-2ec3fe074f41.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4935", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"f1e4a4908d5b08827e5aa71203bebe3f\"", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385EAC:41BE25:5DD722E2" + } + }, + "uuid": "d977eae5-c6e4-4af2-912a-2ec3fe074f41", + "persistent": true, + "scenarioName": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets", + "requiredScenarioState": "Started", + "newScenarioState": "scenario-2-repos-github-api-test-org-temp-testCreateRepository-releases-21671831-assets-2", + "insertionIndex": 8 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-11-24fd5d.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-11-24fd5d.json new file mode 100644 index 0000000000..4ee387abbf --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-11-24fd5d.json @@ -0,0 +1,35 @@ +{ + "id": "24fd5dbb-28c8-4ae6-98db-0feefa988c4c", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "method": "DELETE" + }, + "response": { + "status": 204, + "headers": { + "Date": "Thu, 21 Nov 2019 23:51:00 GMT", + "Server": "GitHub.com", + "Status": "204 No Content", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4932", + "X-RateLimit-Reset": "1574383121", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "Vary": "Accept-Encoding", + "X-GitHub-Request-Id": "C262:5E20:385EB9:41BE3E:5DD722E3" + } + }, + "uuid": "24fd5dbb-28c8-4ae6-98db-0feefa988c4c", + "persistent": true, + "insertionIndex": 11 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-9-befe73.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-9-befe73.json new file mode 100644 index 0000000000..1de5f29738 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-9-befe73.json @@ -0,0 +1,50 @@ +{ + "id": "befe734a-7e49-410e-99b5-1958244232b3", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "method": "PATCH", + "bodyPatterns": [ + { + "equalToJson": "{\"label\":\"test label\"}", + "ignoreArrayOrder": true, + "ignoreExtraElements": true + } + ] + }, + "response": { + "status": 200, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases_assets_16322363-befe734a-7e49-410e-99b5-1958244232b3.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4934", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"a61293fdaa0f05ec9e33137a01dd2574\"", + "Last-Modified": "Thu, 21 Nov 2019 23:50:59 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "repo", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385EB0:41BE35:5DD722E3" + } + }, + "uuid": "befe734a-7e49-410e-99b5-1958244232b3", + "persistent": true, + "insertionIndex": 9 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/user-1-1d236c.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/user-1-1d236c.json new file mode 100644 index 0000000000..28cd12509d --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository/mappings/user-1-1d236c.json @@ -0,0 +1,43 @@ +{ + "id": "1d236ca5-8204-44d4-bef5-0641768ada5b", + "name": "user", + "request": { + "url": "/user", + "method": "GET" + }, + "response": { + "status": 200, + "bodyFileName": "user-1d236ca5-8204-44d4-bef5-0641768ada5b.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:48 GMT", + "Content-Type": "application/json; charset=utf-8", + "Server": "GitHub.com", + "Status": "200 OK", + "X-RateLimit-Limit": "5000", + "X-RateLimit-Remaining": "4948", + "X-RateLimit-Reset": "1574383121", + "Cache-Control": "private, max-age=60, s-maxage=60", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "ETag": "W/\"8221019f5cfbf2e9ef116719093ee3c5\"", + "Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT", + "X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Accepted-OAuth-Scopes": "", + "X-GitHub-Media-Type": "unknown, github.v3", + "Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type", + "Access-Control-Allow-Origin": "*", + "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", + "X-Frame-Options": "deny", + "X-Content-Type-Options": "nosniff", + "X-XSS-Protection": "1; mode=block", + "Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin", + "Content-Security-Policy": "default-src 'none'", + "X-GitHub-Request-Id": "C262:5E20:385E29:41BD81:5DD722D8" + } + }, + "uuid": "1d236ca5-8204-44d4-bef5-0641768ada5b", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-dcc32f1c-018b-4131-9c32-5f5a12e2d0f3.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-dcc32f1c-018b-4131-9c32-5f5a12e2d0f3.json new file mode 100644 index 0000000000..6163ce7e34 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/__files/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-dcc32f1c-018b-4131-9c32-5f5a12e2d0f3.json @@ -0,0 +1,34 @@ +{ + "url": "https://api.github.com/repos/github-api-test-org/temp-testCreateRepository/releases/assets/16322363", + "id": 16322363, + "node_id": "MDEyOlJlbGVhc2VBc3NldDE2MzIyMzYz", + "name": "pom.xml", + "label": "", + "uploader": { + "login": "bitwiseman", + "id": 1958953, + "node_id": "MDQ6VXNlcjE5NTg5NTM=", + "avatar_url": "https://avatars3.githubusercontent.com/u/1958953?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/bitwiseman", + "html_url": "https://github.com/bitwiseman", + "followers_url": "https://api.github.com/users/bitwiseman/followers", + "following_url": "https://api.github.com/users/bitwiseman/following{/other_user}", + "gists_url": "https://api.github.com/users/bitwiseman/gists{/gist_id}", + "starred_url": "https://api.github.com/users/bitwiseman/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/bitwiseman/subscriptions", + "organizations_url": "https://api.github.com/users/bitwiseman/orgs", + "repos_url": "https://api.github.com/users/bitwiseman/repos", + "events_url": "https://api.github.com/users/bitwiseman/events{/privacy}", + "received_events_url": "https://api.github.com/users/bitwiseman/received_events", + "type": "User", + "site_admin": false + }, + "content_type": "application/text", + "state": "uploaded", + "size": 19154, + "download_count": 0, + "created_at": "2019-11-21T23:50:58Z", + "updated_at": "2019-11-21T23:50:58Z", + "browser_download_url": "https://github.com/github-api-test-org/temp-testCreateRepository/releases/download/release_tag/pom.xml" +} \ No newline at end of file diff --git a/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-1-dcc32f.json b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-1-dcc32f.json new file mode 100644 index 0000000000..cbab794278 --- /dev/null +++ b/src/test/resources/org/kohsuke/github/LifecycleTest/wiremock/testCreateRepository_uploads/mappings/repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-1-dcc32f.json @@ -0,0 +1,41 @@ +{ + "id": "dcc32f1c-018b-4131-9c32-5f5a12e2d0f3", + "name": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets", + "request": { + "url": "/repos/github-api-test-org/temp-testCreateRepository/releases/21671831/assets?name=pom.xml", + "method": "POST", + "bodyPatterns": [ + { + "equalTo": "\n 4.0.0\n \n org.kohsuke\n pom\n 21\n \n \n\n github-api\n 1.100-SNAPSHOT\n GitHub API for Java\n https://github-api.kohsuke.org/\n GitHub API for Java\n\n \n scm:git:git@github.com/github-api/${project.artifactId}.git\n scm:git:ssh://git@github.com/github-api/${project.artifactId}.git\n https://${project.artifactId}.kohsuke.org/\n HEAD\n \n\n \n \n github-pages\n gitsite:git@github.com/github-api/${project.artifactId}.git\n \n \n\n \n UTF-8\n 3.1.12.2\n 3.1.12\n true\n 2.2\n 4.2.2\n 2.4.1\n format\n sort\n .80\n 0.20\n 0.50\n 0.50\n \n false\n \n\n \n \n \n org.apache.maven.scm\n maven-scm-provider-gitexe\n 1.11.2\n \n \n org.apache.maven.scm\n maven-scm-manager-plexus\n 1.11.2\n \n \n \n \n src/test/resources\n \n **/wiremock/**\n \n \n \n \n \n \n \n org.jacoco\n jacoco-maven-plugin\n 0.8.5\n \n \n org.apache.maven.plugins\n maven-javadoc-plugin\n 3.1.1\n \n 8\n true\n \n \n \n \n \n \n org.apache.maven.plugins\n maven-site-plugin\n 3.8.2\n \n \n org.apache.maven.plugins\n maven-release-plugin\n 2.5.3\n \n true\n false\n release\n deploy\n \n \n \n org.apache.maven.plugins\n maven-project-info-reports-plugin\n 3.0.0\n \n \n org.apache.bcel\n bcel\n 6.4.1\n \n \n \n \n maven-compiler-plugin\n 3.8.1\n \n 1.8\n 1.8\n \n \n org.jenkins-ci\n annotation-indexer\n 1.12\n \n \n \n \n\n \n maven-surefire-plugin\n 2.22.2\n \n \n org.codehaus.mojo\n animal-sniffer-maven-plugin\n 1.18\n \n \n org.codehaus.mojo.signature\n java18\n 1.0\n \n \n \n \n ensure-java-1.8-class-library\n test\n \n check\n \n \n \n \n \n com.infradna.tool\n bridge-method-injector\n 1.18\n \n \n \n process\n \n \n \n \n \n net.revelc.code.formatter\n formatter-maven-plugin\n 2.11.0\n \n \n \n ${formatter-maven-plugin.goal}\n \n \n src/main/resources/eclipse/formatter.xml\n \n \n \n \n \n net.revelc.code\n impsort-maven-plugin\n 1.3.2\n \n *,java.,javax.\n true\n true\n \n \n \n \n ${impsort-maven-plugin.goal}\n \n \n \n \n \n com.github.spotbugs\n spotbugs-maven-plugin\n ${spotbugs-maven-plugin.version}\n \n true\n ${spotbugs-maven-plugin.failOnError}\n \n \n \n run-spotbugs\n verify\n \n check\n \n \n \n \n \n \n com.github.spotbugs\n spotbugs\n ${spotbugs.version}\n \n \n \n \n \n org.codehaus.gmaven\n gmaven-plugin\n \n \n \n \n \n \n \n \n \n\n \n \n org.apache.commons\n commons-lang3\n 3.9\n \n \n commons-codec\n commons-codec\n 1.13\n \n \n org.hamcrest\n hamcrest\n ${hamcrest.version}\n test\n \n \n \n org.hamcrest\n hamcrest-core\n ${hamcrest.version}\n test\n \n \n org.hamcrest\n hamcrest-library\n ${hamcrest.version}\n test\n \n \n junit\n junit\n 4.12\n test\n \n \n com.fasterxml.jackson.core\n jackson-databind\n 2.10.1\n \n \n commons-io\n commons-io\n 2.6\n \n \n com.infradna.tool\n bridge-method-annotation\n 1.18\n true\n \n \n org.kohsuke.stapler\n stapler-jetty\n 1.1\n test\n \n \n org.eclipse.jgit\n org.eclipse.jgit\n 5.5.1.201910021850-r\n test\n \n \n com.squareup.okio\n okio\n ${okio.version}\n true\n \n \n com.squareup.okhttp3\n okhttp\n ${okhttp3.version}\n true\n \n \n \n \n com.squareup.okhttp3\n okhttp-urlconnection\n 3.12.3\n true\n \n \n com.squareup.okhttp\n okhttp-urlconnection\n 2.7.5\n true\n \n \n org.kohsuke\n wordnet-random-name\n 1.3\n test\n \n \n org.mockito\n mockito-core\n 3.1.0\n test\n \n \n com.github.spotbugs\n spotbugs-annotations\n ${spotbugs.version}\n true\n \n \n com.github.tomakehurst\n wiremock-jre8-standalone\n 2.25.1\n test\n \n \n com.google.code.gson\n gson\n 2.8.6\n test\n \n \n \n \n repo.jenkins-ci.org\n https://repo.jenkins-ci.org/public/\n \n \n \n \n repo.jenkins-ci.org\n https://repo.jenkins-ci.org/public/\n \n \n \n \n ci\n \n validate\n check\n \n \n \n \n \n jacoco\n \n \n enable-jacoco\n \n \n \n \n \n org.jacoco\n jacoco-maven-plugin\n 0.8.5\n \n \n \n prepare-agent\n \n \n \n \n report\n test\n \n report\n \n \n \n check\n install\n \n check\n \n \n \n \n \n \n \n CLASS\n \n \n \n \n \n \n \n \n METHOD\n COVEREDRATIO\n ${jacoco.coverage.target.method}\n \n \n \n \n \n \n \n \n org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory.**\n org.kohsuke.github.extras.okhttp3.ObsoleteUrlFactory\n org.kohsuke.github.extras.OkHttp3Connector\n \n \n \n \n \n \n \n \n \n \n \n \n release\n \n \n \n org.apache.maven.plugins\n maven-gpg-plugin\n 1.6\n \n \n sign-artifacts\n verify\n \n sign\n \n \n \n --pinentry-mode\n loopback\n \n \n \n \n \n \n org.apache.maven.plugins\n maven-source-plugin\n 3.2.0\n \n \n \n \n \n \n \n \n org.apache.maven.plugins\n maven-javadoc-plugin\n \n \n org.apache.maven.plugins\n maven-project-info-reports-plugin\n \n \n \n\n \n \n The MIT license\n https://www.opensource.org/licenses/mit-license.php\n repo\n \n \n\n \n \n User List\n github-api@googlegroups.com\n https://groups.google.com/forum/#!forum/github-api\n \n \n\n", + "caseInsensitive": false + } + ] + }, + "response": { + "status": 201, + "bodyFileName": "repos_github-api-test-org_temp-testcreaterepository_releases_21671831_assets-dcc32f1c-018b-4131-9c32-5f5a12e2d0f3.json", + "headers": { + "Date": "Thu, 21 Nov 2019 23:50:59 GMT", + "Content-Type": "application/json; charset=utf-8", + "Cache-Control": "no-cache", + "Content-Security-Policy": "default-src 'none'", + "Etag": "W/\"5abf93af6f562edf98f40f3a7107029e\"", + "Last-Modified": "Thu, 21 Nov 2019 23:50:58 GMT", + "Strict-Transport-Security": "max-age=31557600", + "Vary": [ + "Accept, Authorization, Cookie, X-GitHub-OTP", + "Accept-Encoding" + ], + "X-Accepted-Oauth-Scopes": "repo", + "X-Content-Type-Options": "nosniff", + "X-Frame-Options": "deny", + "X-Github-Media-Type": "unknown, github.v3", + "X-Oauth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion", + "X-Xss-Protection": "1; mode=block", + "X-GitHub-Request-Id": "C268:9094:16931F:1A32A6:5DD722E2" + } + }, + "uuid": "dcc32f1c-018b-4131-9c32-5f5a12e2d0f3", + "persistent": true, + "insertionIndex": 1 +} \ No newline at end of file