forked from mattermost/mattermost-plugin-jira
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MI-3337]:Fixed review comment of PR mattermost#961 and added TC
- Loading branch information
1 parent
45996ec
commit 9184220
Showing
4 changed files
with
717 additions
and
3 deletions.
There are no files selected for viewing
94 changes: 94 additions & 0 deletions
94
server/testdata/webhook-cloud-comment-created-mention-user.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,94 @@ | ||
{ | ||
"timestamp": 1550286678321, | ||
"webhookEvent": "comment_created", | ||
"comment": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/issue/10040/comment/10019", | ||
"id": "10019", | ||
"author": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/user?accountId=5c5f880629be9642ba529340", | ||
"name": "admin", | ||
"key": "admin", | ||
"accountId": "5c5f880629be9642ba529340", | ||
"avatarUrls": { | ||
"48x48": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue", | ||
"24x24": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", | ||
"16x16": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", | ||
"32x32": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue" | ||
}, | ||
"displayName": "Test User", | ||
"active": true, | ||
"timeZone": "America/Los_Angeles" | ||
}, | ||
"body": "Added a comment with mentioned user [~user]", | ||
"updateAuthor": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/user?accountId=5c5f880629be9642ba529340", | ||
"name": "admin", | ||
"key": "admin", | ||
"accountId": "5c5f880629be9642ba529340", | ||
"avatarUrls": { | ||
"48x48": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=48&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue", | ||
"24x24": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=24&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D24%26noRedirect%3Dtrue", | ||
"16x16": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=16&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D16%26noRedirect%3Dtrue", | ||
"32x32": "https://avatar-cdn.atlassian.com/d991bc281c0c0ecb0bbb2db3979ddaff?s=32&d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fd991bc281c0c0ecb0bbb2db3979ddaff%3Fd%3Dmm%26s%3D32%26noRedirect%3Dtrue" | ||
}, | ||
"displayName": "Test User", | ||
"active": true, | ||
"timeZone": "America/Los_Angeles" | ||
}, | ||
"created": "2019-02-15T19:11:18.321-0800", | ||
"updated": "2019-02-15T19:11:18.321-0800", | ||
"jsdPublic": true | ||
}, | ||
"issue": { | ||
"id": "10040", | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/issue/10040", | ||
"key": "TES-41", | ||
"fields": { | ||
"summary": "Unit test summary 1", | ||
"issuetype": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/issuetype/10001", | ||
"id": "10001", | ||
"description": "Stories track functionality or features expressed as user goals.", | ||
"iconUrl": "https://some-instance-test.atlassian.net/secure/viewavatar?size=xsmall&avatarId=10315&avatarType=issuetype", | ||
"name": "Story", | ||
"subtask": false, | ||
"avatarId": 10315 | ||
}, | ||
"project": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/project/10000", | ||
"id": "10000", | ||
"key": "TES", | ||
"name": "test1", | ||
"projectTypeKey": "software", | ||
"avatarUrls": { | ||
"48x48": "https://some-instance-test.atlassian.net/secure/projectavatar?avatarId=10324", | ||
"24x24": "https://some-instance-test.atlassian.net/secure/projectavatar?size=small&avatarId=10324", | ||
"16x16": "https://some-instance-test.atlassian.net/secure/projectavatar?size=xsmall&avatarId=10324", | ||
"32x32": "https://some-instance-test.atlassian.net/secure/projectavatar?size=medium&avatarId=10324" | ||
} | ||
}, | ||
"assignee": null, | ||
"priority": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/priority/2", | ||
"iconUrl": "https://some-instance-test.atlassian.net/images/icons/priorities/high.svg", | ||
"name": "High", | ||
"id": "2" | ||
}, | ||
"status": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/status/10001", | ||
"description": "", | ||
"iconUrl": "https://some-instance-test.atlassian.net/", | ||
"name": "To Do", | ||
"id": "10001", | ||
"statusCategory": { | ||
"self": "https://some-instance-test.atlassian.net/rest/api/2/statuscategory/2", | ||
"id": 2, | ||
"key": "new", | ||
"colorName": "blue-gray", | ||
"name": "To Do" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.