-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separate responses for different GitHub repo settings (#64)
- Loading branch information
1 parent
d0380ae
commit 7305729
Showing
4 changed files
with
87 additions
and
16 deletions.
There are no files selected for viewing
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
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,29 @@ | ||
# get content of .jira_sync_config.yaml to load the settings for the repo | ||
responses: | ||
- response: | ||
auto_calculate_content_length: false | ||
body: '{"name":".jira_sync_config.yaml","path":".github/.jira_sync_config.yaml","sha":"a1a8aab6de92fc3eed4211350200ada4a2405b9c","size":297,"url":"https://api.github.com/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml?ref=master","html_url":"https://github.com/beliaev-maksim/test-ci/blob/master/.github/.jira_sync_config.yaml","git_url":"https://api.github.com/repos/beliaev-maksim/test-ci/git/blobs/a1a8aab6de92fc3eed4211350200ada4a2405b9c","download_url":"https://raw.githubusercontent.com/beliaev-maksim/test-ci/master/.github/.jira_sync_config.yaml","type":"file","content":"c2V0dGluZ3M6CiAgY29tcG9uZW50czoKICAgIC0gSW9UCiAgICAtIERBQ0ggVFQKICBsYWJlbHM6CiAgICAtIGJ1ZwogICAgLSBjdXN0b20KICBhZGRfZ2hfY29tbWVudDogZmFsc2UKICBzeW5jX2Rlc2NyaXB0aW9uOiB0cnVlCiAgc3luY19jb21tZW50czogdHJ1ZQogIGVwaWNfa2V5OiAiTVRDLTI5NiIKICBqaXJhX3Byb2plY3Rfa2V5OiAiTVRDIgogIHN0YXR1c19tYXBwaW5nOgogICAgb3BlbmVkOiBVbnRyaWFnZWQKICAgIGNsb3NlZDogZG9uZSAKICBsYWJlbF9tYXBwaW5nOgogICAgZW5oYW5jZW1lbnQ6IFN0b3J5Cg==","encoding":"base64","_links":{"self":"https://api.github.com/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml?ref=master","git":"https://api.github.com/repos/beliaev-maksim/test-ci/git/blobs/a1a8aab6de92fc3eed4211350200ada4a2405b9c","html":"https://github.com/beliaev-maksim/test-ci/blob/master/.github/.jira_sync_config.yaml"}}' | ||
content_type: text/plain | ||
method: GET | ||
status: 200 | ||
url: https://api.github.com:443/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml | ||
|
||
|
||
# That is the base64 encoded content | ||
#settings: | ||
# components: | ||
# - IoT | ||
# - DACH TT | ||
# labels: | ||
# - bug | ||
# - custom | ||
# add_gh_comment: false | ||
# sync_description: true | ||
# sync_comments: true | ||
# epic_key: "MTC-296" | ||
# jira_project_key: "MTC" | ||
# status_mapping: | ||
# opened: Untriaged | ||
# closed: done | ||
# label_mapping: | ||
# enhancement: Story |
27 changes: 27 additions & 0 deletions
27
tests/unit/url_responses/github_settings_without_labels.yaml
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,27 @@ | ||
# get content of .jira_sync_config.yaml to load the settings for the repo | ||
responses: | ||
- response: | ||
auto_calculate_content_length: false | ||
body: '{"name":".jira_sync_config.yaml","path":".github/.jira_sync_config.yaml","sha":"a1a8aab6de92fc3eed4211350200ada4a2405b9c","size":297,"url":"https://api.github.com/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml?ref=master","html_url":"https://github.com/beliaev-maksim/test-ci/blob/master/.github/.jira_sync_config.yaml","git_url":"https://api.github.com/repos/beliaev-maksim/test-ci/git/blobs/a1a8aab6de92fc3eed4211350200ada4a2405b9c","download_url":"https://raw.githubusercontent.com/beliaev-maksim/test-ci/master/.github/.jira_sync_config.yaml","type":"file","content":"c2V0dGluZ3M6CiAgY29tcG9uZW50czoKICAgIC0gSW9UCiAgICAtIERBQ0ggVFQKCiAgYWRkX2doX2NvbW1lbnQ6IGZhbHNlCiAgc3luY19kZXNjcmlwdGlvbjogdHJ1ZQogIHN5bmNfY29tbWVudHM6IHRydWUKICBlcGljX2tleTogIk1UQy0yOTYiCiAgamlyYV9wcm9qZWN0X2tleTogIk1UQyIKICBzdGF0dXNfbWFwcGluZzoKICAgIG9wZW5lZDogVW50cmlhZ2VkCiAgICBjbG9zZWQ6IGRvbmUgCiAgbGFiZWxfbWFwcGluZzoKICAgIGVuaGFuY2VtZW50OiBTdG9yeQo=","encoding":"base64","_links":{"self":"https://api.github.com/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml?ref=master","git":"https://api.github.com/repos/beliaev-maksim/test-ci/git/blobs/a1a8aab6de92fc3eed4211350200ada4a2405b9c","html":"https://github.com/beliaev-maksim/test-ci/blob/master/.github/.jira_sync_config.yaml"}}' | ||
content_type: text/plain | ||
method: GET | ||
status: 200 | ||
url: https://api.github.com:443/repos/beliaev-maksim/test-ci/contents/.github/.jira_sync_config.yaml | ||
|
||
|
||
# That is the base64 encoded content | ||
#settings: | ||
# components: | ||
# - IoT | ||
# - DACH TT | ||
# | ||
# add_gh_comment: false | ||
# sync_description: true | ||
# sync_comments: true | ||
# epic_key: "MTC-296" | ||
# jira_project_key: "MTC" | ||
# status_mapping: | ||
# opened: Untriaged | ||
# closed: done | ||
# label_mapping: | ||
# enhancement: Story |