Skip to content

Commit 6819f35

Browse files
test: regenerate some mocks
1 parent 3d5196f commit 6819f35

File tree

7 files changed

+114
-4
lines changed

7 files changed

+114
-4
lines changed

src/test/resources/org/kohsuke/github/GHBranchProtectionTest/wiremock/testEnableBranchProtections/__files/4-r_h_t_branches_main_protection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
"required_linear_history": {
4141
"enabled": true
4242
}
43-
}
43+
}

src/test/resources/org/kohsuke/github/GHBranchProtectionTest/wiremock/testEnableBranchProtections/__files/5-r_h_t_branches_main_protection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040
"required_linear_history": {
4141
"enabled": true
4242
}
43-
}
43+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection",
3+
"required_status_checks": {
4+
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection/required_status_checks",
5+
"strict": true,
6+
"contexts": [
7+
"test-status-check"
8+
],
9+
"contexts_url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection/required_status_checks/contexts",
10+
"checks": [
11+
{
12+
"context": "test-status-check",
13+
"app_id": null
14+
}
15+
]
16+
},
17+
"required_pull_request_reviews": {
18+
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection/required_pull_request_reviews",
19+
"dismiss_stale_reviews": true,
20+
"require_code_owner_reviews": true,
21+
"require_last_push_approval": true,
22+
"required_approving_review_count": 2
23+
},
24+
"required_signatures": {
25+
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection/required_signatures",
26+
"enabled": false
27+
},
28+
"enforce_admins": {
29+
"url": "https://api.github.com/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection/enforce_admins",
30+
"enabled": true
31+
},
32+
"required_linear_history": {
33+
"enabled": true
34+
},
35+
"allow_force_pushes": {
36+
"enabled": true
37+
},
38+
"allow_deletions": {
39+
"enabled": true
40+
},
41+
"block_creations": {
42+
"enabled": true
43+
},
44+
"required_conversation_resolution": {
45+
"enabled": true
46+
},
47+
"lock_branch": {
48+
"enabled": true
49+
},
50+
"allow_fork_syncing": {
51+
"enabled": true
52+
}
53+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"response": {
1414
"status": 200,
15-
"bodyFileName": "2-r_h_temp-testenablebranchprotections.json",
15+
"bodyFileName": "2-r_h_temp-tes.json",
1616
"headers": {
1717
"Server": "GitHub.com",
1818
"Date": "Fri, 17 Jul 2020 17:40:28 GMT",

src/test/resources/org/kohsuke/github/GHBranchProtectionTest/wiremock/testEnableBranchProtections/mappings/4-r_h_t_branches_main_protection.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
"uuid": "3cdd44cf-a62c-43f6-abad-de7c8b65bfe3",
5050
"persistent": true,
5151
"insertionIndex": 4
52-
}
52+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"id": "854850d0-da4c-42f1-bfbd-01d8459b0639",
3+
"name": "repos_hub4j-test-org_temp-testenablebranchprotections_branches_main_protection",
4+
"request": {
5+
"url": "/repos/hub4j-test-org/temp-testEnableBranchProtections/branches/main/protection",
6+
"method": "PUT",
7+
"headers": {
8+
"Accept": {
9+
"equalTo": "application/vnd.github.luke-cage-preview+json"
10+
}
11+
},
12+
"bodyPatterns": [
13+
{
14+
"equalToJson": "{\"lock_branch\":true,\"required_pull_request_reviews\":{\"required_approving_review_count\":2,\"require_code_owner_reviews\":true,\"dismiss_stale_reviews\":true,\"require_last_push_approval\":true},\"block_creations\":true,\"required_conversation_resolution\":true,\"required_status_checks\":{\"checks\":[{\"context\":\"test-status-check\"}],\"strict\":true},\"allow_fork_syncing\":true,\"required_linear_history\":true,\"restrictions\":null,\"enforce_admins\":true,\"allow_deletions\":true,\"allow_force_pushes\":true}",
15+
"ignoreArrayOrder": true,
16+
"ignoreExtraElements": false
17+
}
18+
]
19+
},
20+
"response": {
21+
"status": 200,
22+
"bodyFileName": "6-r_h_t_branches_main_protection.json",
23+
"headers": {
24+
"Server": "GitHub.com",
25+
"Date": "Thu, 13 Jun 2024 15:15:26 GMT",
26+
"Content-Type": "application/json; charset=utf-8",
27+
"Cache-Control": "private, max-age=60, s-maxage=60",
28+
"Vary": [
29+
"Accept, Authorization, Cookie, X-GitHub-OTP",
30+
"Accept-Encoding, Accept, X-Requested-With"
31+
],
32+
"ETag": "W/\"3a215bcd41d91bb045d01c04c1161c991f2b6588d859b06479dae7d4da689c3c\"",
33+
"X-OAuth-Scopes": "admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, admin:ssh_signing_key, audit_log, codespace, copilot, delete:packages, delete_repo, gist, notifications, project, repo, user, workflow, write:discussion, write:packages",
34+
"X-Accepted-OAuth-Scopes": "",
35+
"github-authentication-token-expiration": "2024-06-16 12:56:36 UTC",
36+
"X-GitHub-Media-Type": "github.v3; param=luke-cage-preview; format=json",
37+
"x-github-api-version-selected": "2022-11-28",
38+
"X-RateLimit-Limit": "5000",
39+
"X-RateLimit-Remaining": "4814",
40+
"X-RateLimit-Reset": "1718293429",
41+
"X-RateLimit-Used": "186",
42+
"X-RateLimit-Resource": "core",
43+
"Access-Control-Expose-Headers": "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset",
44+
"Access-Control-Allow-Origin": "*",
45+
"Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload",
46+
"X-Frame-Options": "deny",
47+
"X-Content-Type-Options": "nosniff",
48+
"X-XSS-Protection": "0",
49+
"Referrer-Policy": "origin-when-cross-origin, strict-origin-when-cross-origin",
50+
"Content-Security-Policy": "default-src 'none'",
51+
"X-GitHub-Request-Id": "DA76:1147A1:89C7F36:8AAE569:666B0D0E"
52+
}
53+
},
54+
"uuid": "854850d0-da4c-42f1-bfbd-01d8459b0639",
55+
"persistent": true,
56+
"insertionIndex": 6
57+
}

0 commit comments

Comments
 (0)