-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for merge_upstream conflict.
- Loading branch information
Showing
7 changed files
with
789 additions
and
13 deletions.
There are no files selected for viewing
356 changes: 356 additions & 0 deletions
356
tests/github_client/merge_upstream_conflict/00-GET-repos_ehuss_rust.json
Large diffs are not rendered by default.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
tests/github_client/merge_upstream_conflict/01-POST-repos_ehuss_rust_merge-upstream.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"kind": "Request", | ||
"method": "POST", | ||
"path": "/repos/ehuss/rust/merge-upstream", | ||
"query": null, | ||
"request_body": "{\"branch\":\"master\"}", | ||
"response_code": 409, | ||
"response_body": { | ||
"documentation_url": "https://docs.github.com/rest/branches/branches#sync-a-fork-branch-with-the-upstream-repository", | ||
"message": "There are merge conflicts" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...thub_client/merge_upstream_conflict/02-GET-repos_rust-lang_rust_git_ref_heads_master.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"kind": "Request", | ||
"method": "GET", | ||
"path": "/repos/rust-lang/rust/git/ref/heads/master", | ||
"query": null, | ||
"request_body": "", | ||
"response_code": 200, | ||
"response_body": { | ||
"node_id": "MDM6UmVmNzI0NzEyOnJlZnMvaGVhZHMvbWFzdGVy", | ||
"object": { | ||
"sha": "b963a57205e548e8538a8182b1c273ea75007614", | ||
"type": "commit", | ||
"url": "https://api.github.com/repos/rust-lang/rust/git/commits/b963a57205e548e8538a8182b1c273ea75007614" | ||
}, | ||
"ref": "refs/heads/master", | ||
"url": "https://api.github.com/repos/rust-lang/rust/git/refs/heads/master" | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
...ithub_client/merge_upstream_conflict/03-PATCH-repos_ehuss_rust_git_refs_heads_master.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"kind": "Request", | ||
"method": "PATCH", | ||
"path": "/repos/ehuss/rust/git/refs/heads/master", | ||
"query": null, | ||
"request_body": "{\"force\":true,\"sha\":\"b963a57205e548e8538a8182b1c273ea75007614\"}", | ||
"response_code": 200, | ||
"response_body": { | ||
"node_id": "MDM6UmVmMTE3NDY0NjI1OnJlZnMvaGVhZHMvbWFzdGVy", | ||
"object": { | ||
"sha": "b963a57205e548e8538a8182b1c273ea75007614", | ||
"type": "commit", | ||
"url": "https://api.github.com/repos/ehuss/rust/git/commits/b963a57205e548e8538a8182b1c273ea75007614" | ||
}, | ||
"ref": "refs/heads/master", | ||
"url": "https://api.github.com/repos/ehuss/rust/git/refs/heads/master" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.