Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 653d562

Browse filesBrowse files
committed
Rename AppTest wiremock files
1 parent 455b189 commit 653d562
Copy full SHA for 653d562

File tree

Expand file treeCollapse file tree

1,592 files changed

+24161
-24489
lines changed
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

1,592 files changed

+24161
-24489
lines changed

‎src/test/java/org/kohsuke/github/AppTest.java

Copy file name to clipboardExpand all lines: src/test/java/org/kohsuke/github/AppTest.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1277,9 +1277,9 @@ public void testCheckMembership() throws Exception {
12771277
*/
12781278
@Test
12791279
public void testRef() throws IOException {
1280-
GHRef mainRef = gitHub.getRepository("jenkinsci/jenkins").getRef("heads/main");
1280+
GHRef mainRef = gitHub.getRepository("jenkinsci/jenkins").getRef("heads/master");
12811281
assertThat(mainRef.getUrl().toString(),
1282-
equalTo(mockGitHub.apiServer().baseUrl() + "/repos/jenkinsci/jenkins/git/refs/heads/main"));
1282+
equalTo(mockGitHub.apiServer().baseUrl() + "/repos/jenkinsci/jenkins/git/refs/heads/master"));
12831283
}
12841284

12851285
/**
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "8996d059-e95f-4604-a534-b734e99d9e15",
3+
"name": "user",
4+
"request": {
5+
"url": "/user",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "1-user.json",
16+
"headers": {
17+
"Date": "Sat, 26 Oct 2019 01:28:27 GMT",
18+
"Content-Type": "application/json; charset=utf-8",
19+
"Server": "GitHub.com",
20+
"Status": "200 OK",
21+
"X-RateLimit-Limit": "5000",
22+
"X-RateLimit-Remaining": "4354",
23+
"X-RateLimit-Reset": "1572055286",
24+
"Cache-Control": "private, max-age=60, s-maxage=60",
25+
"Vary": [
26+
"Accept, Authorization, Cookie, X-GitHub-OTP",
27+
"Accept-Encoding"
28+
],
29+
"ETag": "W/\"8c3d3dcf6fc5f9edaf26c902295396e5\"",
30+
"Last-Modified": "Tue, 24 Sep 2019 19:32:29 GMT",
31+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
32+
"X-Accepted-OAuth-Scopes": "",
33+
"X-GitHub-Media-Type": "unknown, github.v3",
34+
"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",
35+
"Access-Control-Allow-Origin": "*",
36+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
37+
"X-Frame-Options": "deny",
38+
"X-Content-Type-Options": "nosniff",
39+
"X-XSS-Protection": "1; mode=block",
40+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
41+
"Content-Security-Policy": "default-src 'none'",
42+
"X-GitHub-Request-Id": "CAD0:98FF:9ED62C:BB8EE6:5DB3A13B"
43+
}
44+
},
45+
"uuid": "8996d059-e95f-4604-a534-b734e99d9e15",
46+
"persistent": true,
47+
"insertionIndex": 1
48+
}
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "db8eacb0-947c-4677-9780-1c1d1b8383eb",
3+
"name": "repos_hub4j_github-api",
4+
"request": {
5+
"url": "/repos/hub4j/github-api",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "2-r_h_github-api.json",
16+
"headers": {
17+
"Date": "Sat, 26 Oct 2019 01:28:28 GMT",
18+
"Content-Type": "application/json; charset=utf-8",
19+
"Server": "GitHub.com",
20+
"Status": "200 OK",
21+
"X-RateLimit-Limit": "5000",
22+
"X-RateLimit-Remaining": "4352",
23+
"X-RateLimit-Reset": "1572055286",
24+
"Cache-Control": "private, max-age=60, s-maxage=60",
25+
"Vary": [
26+
"Accept, Authorization, Cookie, X-GitHub-OTP",
27+
"Accept-Encoding"
28+
],
29+
"ETag": "W/\"c1a01d01a6354d93b3cc6098e0b2d047\"",
30+
"Last-Modified": "Fri, 25 Oct 2019 01:32:16 GMT",
31+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
32+
"X-Accepted-OAuth-Scopes": "repo",
33+
"X-GitHub-Media-Type": "unknown, github.v3",
34+
"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",
35+
"Access-Control-Allow-Origin": "*",
36+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
37+
"X-Frame-Options": "deny",
38+
"X-Content-Type-Options": "nosniff",
39+
"X-XSS-Protection": "1; mode=block",
40+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
41+
"Content-Security-Policy": "default-src 'none'",
42+
"X-GitHub-Request-Id": "CAD0:98FF:9ED63E:BB8EED:5DB3A13B"
43+
}
44+
},
45+
"uuid": "db8eacb0-947c-4677-9780-1c1d1b8383eb",
46+
"persistent": true,
47+
"insertionIndex": 2
48+
}
+49Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"id": "72e1ca23-1f03-45b5-90a2-e6dd6467b2f9",
3+
"name": "repos_hub4j_github-api_git_blobs_a12243f2fc5b8c2ba47dd677d0b0c7583539584d",
4+
"request": {
5+
"url": "/repos/hub4j/github-api/git/blobs/a12243f2fc5b8c2ba47dd677d0b0c7583539584d",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "4-r_h_g_git_blobs_a12243f2.json",
16+
"headers": {
17+
"Date": "Sat, 26 Oct 2019 01:28:28 GMT",
18+
"Content-Type": "application/json; charset=utf-8",
19+
"Server": "GitHub.com",
20+
"Status": "200 OK",
21+
"X-RateLimit-Limit": "5000",
22+
"X-RateLimit-Remaining": "4350",
23+
"X-RateLimit-Reset": "1572055286",
24+
"Cache-Control": "private, max-age=60, s-maxage=60",
25+
"Vary": [
26+
"Accept, Authorization, Cookie, X-GitHub-OTP",
27+
"Accept-Encoding"
28+
],
29+
"ETag": "W/\"89459bc4c8c6c982a48ccd6cb6060fff\"",
30+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
31+
"X-Accepted-OAuth-Scopes": "",
32+
"X-GitHub-Media-Type": "unknown, github.v3",
33+
"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",
34+
"Access-Control-Allow-Origin": "*",
35+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
36+
"X-Frame-Options": "deny",
37+
"X-Content-Type-Options": "nosniff",
38+
"X-XSS-Protection": "1; mode=block",
39+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
40+
"Content-Security-Policy": "default-src 'none'",
41+
"X-GitHub-Request-Id": "CAD0:98FF:9ED65A:BB8F1C:5DB3A13C"
42+
}
43+
},
44+
"uuid": "72e1ca23-1f03-45b5-90a2-e6dd6467b2f9",
45+
"persistent": true,
46+
"scenarioName": "scenario-1-repos-github-api-github-api-git-blobs-a12243f2fc5b8c2ba47dd677d0b0c7583539584d",
47+
"requiredScenarioState": "scenario-1-repos-github-api-github-api-git-blobs-a12243f2fc5b8c2ba47dd677d0b0c7583539584d-2",
48+
"insertionIndex": 4
49+
}

‎src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/repos_hub4j_github-api-2.json

Copy file name to clipboardExpand all lines: src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/repos_hub4j_github-api-2.json
-48Lines changed: 0 additions & 48 deletions
This file was deleted.

‎src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/repos_hub4j_github-api_git_blobs_a12243f2fc5b8c2ba47dd677d0b0c7583539584d-4.json

Copy file name to clipboardExpand all lines: src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/repos_hub4j_github-api_git_blobs_a12243f2fc5b8c2ba47dd677d0b0c7583539584d-4.json
-49Lines changed: 0 additions & 49 deletions
This file was deleted.

‎src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/user-1.json

Copy file name to clipboardExpand all lines: src/test/resources/org/kohsuke/github/AppTest/wiremock/blob/mappings/user-1.json
-48Lines changed: 0 additions & 48 deletions
This file was deleted.
+48Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"id": "448d3f92-8488-4c5c-a81b-ca22a6039b39",
3+
"name": "repos_jenkinsci_jenkins",
4+
"request": {
5+
"url": "/repos/jenkinsci/jenkins",
6+
"method": "GET",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.v3+json"
10+
}
11+
}
12+
},
13+
"response": {
14+
"status": 200,
15+
"bodyFileName": "2-r_j_jenkins.json",
16+
"headers": {
17+
"Date": "Sat, 26 Oct 2019 01:27:32 GMT",
18+
"Content-Type": "application/json; charset=utf-8",
19+
"Server": "GitHub.com",
20+
"Status": "200 OK",
21+
"X-RateLimit-Limit": "5000",
22+
"X-RateLimit-Remaining": "4434",
23+
"X-RateLimit-Reset": "1572055286",
24+
"Cache-Control": "private, max-age=60, s-maxage=60",
25+
"Vary": [
26+
"Accept, Authorization, Cookie, X-GitHub-OTP",
27+
"Accept-Encoding"
28+
],
29+
"ETag": "W/\"bc93de689b79708d9501fd02bc1f7696\"",
30+
"Last-Modified": "Sat, 26 Oct 2019 01:07:22 GMT",
31+
"X-OAuth-Scopes": "admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete_repo, gist, notifications, repo, user, write:discussion",
32+
"X-Accepted-OAuth-Scopes": "repo",
33+
"X-GitHub-Media-Type": "unknown, github.v3",
34+
"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",
35+
"Access-Control-Allow-Origin": "*",
36+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
37+
"X-Frame-Options": "deny",
38+
"X-Content-Type-Options": "nosniff",
39+
"X-XSS-Protection": "1; mode=block",
40+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
41+
"Content-Security-Policy": "default-src 'none'",
42+
"X-GitHub-Request-Id": "CA8F:3649:E327A7:1091CF2:5DB3A103"
43+
}
44+
},
45+
"uuid": "448d3f92-8488-4c5c-a81b-ca22a6039b39",
46+
"persistent": true,
47+
"insertionIndex": 2
48+
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.