diff options
Diffstat (limited to 'tests/units/fixtures')
20 files changed, 0 insertions, 2886 deletions
diff --git a/tests/units/fixtures/bitbucket_comment_created.json b/tests/units/fixtures/bitbucket_comment_created.json deleted file mode 100644 index 66a09bb8..00000000 --- a/tests/units/fixtures/bitbucket_comment_created.json +++ /dev/null @@ -1,147 +0,0 @@ -{ - "actor": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "repository": { - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "owner": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "name": "test-webhook" - }, - "comment": { - "content": { - "html": "<ol>\n<li>step1</li>\n<li>step2</li>\n</ol>", - "raw": "1. step1\n2. step2", - "markup": "markdown" - }, - "created_on": "2015-06-21T02:51:40.532529+00:00", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1#comment-19176252" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19176252" - } - }, - "id": 19176252, - "user": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "updated_on": null - }, - "issue": { - "updated_on": "2015-06-21T02:51:40.536516+00:00", - "votes": 0, - "assignee": null, - "links": { - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "priority": "major", - "kind": "bug", - "watches": 1, - "edited_on": null, - "state": "new", - "content": { - "html": "<p><strong>test</strong></p>", - "raw": "**test**", - "markup": "markdown" - }, - "component": null, - "milestone": null, - "version": null, - "id": 1, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "type": "issue", - "reporter": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "title": "My new issue" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_assigned.json b/tests/units/fixtures/bitbucket_issue_assigned.json deleted file mode 100644 index 0324afb2..00000000 --- a/tests/units/fixtures/bitbucket_issue_assigned.json +++ /dev/null @@ -1,209 +0,0 @@ -{ - "repository": { - "name": "test-webhook", - "type": "repository", - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "owner": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - }, - "changes": { - "responsible": { - "new": { - "is_system": false, - "name": "Frederic Guillot", - "username": "minicoders", - "id": 1290132, - "billing_external_uuid": null - }, - "old": null - }, - "assignee": { - "new": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "old": null - } - }, - "actor": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "issue": { - "repository": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "type": "repository", - "full_name": "minicoders/test-webhook", - "name": "test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}" - }, - "edited_on": null, - "component": null, - "updated_on": "2015-06-21T15:21:28.023525+00:00", - "reporter": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "state": "open", - "content": { - "raw": "**test**", - "markup": "markdown", - "html": "<p><strong>test</strong></p>" - }, - "kind": "bug", - "links": { - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - } - }, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "watches": 1, - "milestone": null, - "version": null, - "assignee": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "title": "My new issue", - "priority": "major", - "id": 1, - "votes": 0, - "type": "issue" - }, - "comment": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181255" - } - }, - "updated_on": null, - "content": { - "raw": null, - "markup": "markdown", - "html": "" - }, - "id": 19181255, - "created_on": "2015-06-21T15:21:28.043980+00:00", - "user": { - "display_name": "Frederic Guillot", - "type": "user", - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_closed.json b/tests/units/fixtures/bitbucket_issue_closed.json deleted file mode 100644 index 473b5167..00000000 --- a/tests/units/fixtures/bitbucket_issue_closed.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "actor": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "changes": { - "status": { - "old": "new", - "new": "closed" - } - }, - "repository": { - "full_name": "minicoders/test-webhook", - "type": "repository", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "owner": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook" - }, - "comment": { - "content": { - "html": "", - "raw": null, - "markup": "markdown" - }, - "created_on": "2015-06-21T02:54:40.263014+00:00", - "updated_on": null, - "id": 19176265, - "user": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19176265" - } - } - }, - "issue": { - "state": "closed", - "votes": 0, - "assignee": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "links": { - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "priority": "major", - "version": null, - "watches": 1, - "edited_on": null, - "reporter": { - "username": "minicoders", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user", - "display_name": "Frederic Guillot", - "links": { - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - } - }, - "content": { - "html": "<p><strong>test</strong></p>", - "raw": "**test**", - "markup": "markdown" - }, - "component": null, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "updated_on": "2015-06-21T02:54:40.249466+00:00", - "kind": "bug", - "id": 1, - "milestone": null, - "type": "issue", - "repository": { - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "name": "test-webhook", - "links": { - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - } - }, - "title": "My new issue" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_opened.json b/tests/units/fixtures/bitbucket_issue_opened.json deleted file mode 100644 index 7891c230..00000000 --- a/tests/units/fixtures/bitbucket_issue_opened.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "issue": { - "type": "issue", - "links": { - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - } - }, - "component": null, - "updated_on": "2015-06-21T02:17:40.990654+00:00", - "reporter": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "watches": 1, - "kind": "bug", - "edited_on": null, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "milestone": null, - "version": null, - "state": "new", - "assignee": null, - "content": { - "raw": "**test**", - "markup": "markdown", - "html": "<p><strong>test</strong></p>" - }, - "priority": "major", - "id": 1, - "votes": 0, - "title": "My new issue" - }, - "repository": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - } - }, - "type": "repository", - "full_name": "minicoders/test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook", - "owner": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } - }, - "actor": { - "links": { - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - } - }, - "username": "minicoders", - "type": "user", - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_reopened.json b/tests/units/fixtures/bitbucket_issue_reopened.json deleted file mode 100644 index bb950916..00000000 --- a/tests/units/fixtures/bitbucket_issue_reopened.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "issue": { - "edited_on": null, - "watches": 1, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "reporter": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "content": { - "markup": "markdown", - "raw": "**test**", - "html": "<p><strong>test</strong></p>" - }, - "id": 1, - "milestone": null, - "repository": { - "full_name": "minicoders/test-webhook", - "type": "repository", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "name": "test-webhook" - }, - "component": null, - "version": null, - "votes": 0, - "priority": "major", - "type": "issue", - "state": "open", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - } - }, - "kind": "bug", - "updated_on": "2015-06-21T14:56:49.739063+00:00", - "assignee": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "title": "My new issue" - }, - "comment": { - "id": 19181022, - "created_on": "2015-06-21T14:56:49.749362+00:00", - "content": { - "markup": "markdown", - "raw": null, - "html": "" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181022" - } - }, - "user": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "updated_on": null - }, - "repository": { - "name": "test-webhook", - "owner": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "full_name": "minicoders/test-webhook" - }, - "changes": { - "status": { - "new": "open", - "old": "closed" - } - }, - "actor": { - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "display_name": "Frederic Guillot", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "type": "user" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_issue_unassigned.json b/tests/units/fixtures/bitbucket_issue_unassigned.json deleted file mode 100644 index 3cbab2ea..00000000 --- a/tests/units/fixtures/bitbucket_issue_unassigned.json +++ /dev/null @@ -1,193 +0,0 @@ -{ - "comment": { - "updated_on": null, - "content": { - "html": "", - "markup": "markdown", - "raw": null - }, - "created_on": "2015-06-21T15:07:45.787623+00:00", - "user": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments/19181143" - } - }, - "id": 19181143 - }, - "issue": { - "state": "open", - "content": { - "html": "<p><strong>test</strong></p>", - "markup": "markdown", - "raw": "**test**" - }, - "milestone": null, - "type": "issue", - "version": null, - "title": "My new issue", - "assignee": null, - "kind": "bug", - "component": null, - "priority": "major", - "reporter": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "created_on": "2015-06-21T02:17:40.990654+00:00", - "edited_on": null, - "updated_on": "2015-06-21T15:07:45.775705+00:00", - "id": 1, - "votes": 0, - "repository": { - "full_name": "minicoders/test-webhook", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "type": "repository", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "name": "test-webhook" - }, - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1" - }, - "watch": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/watch" - }, - "vote": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/vote" - }, - "comments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/comments" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/issue/1/my-new-issue" - }, - "attachments": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/issues/1/attachments" - } - }, - "watches": 1 - }, - "actor": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "repository": { - "full_name": "minicoders/test-webhook", - "owner": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - } - }, - "name": "test-webhook", - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}" - }, - "changes": { - "responsible": { - "old": { - "is_system": false, - "username": "minicoders", - "name": "Frederic Guillot", - "billing_external_uuid": null, - "id": 1290132 - }, - "new": null - }, - "assignee": { - "old": { - "display_name": "Frederic Guillot", - "username": "minicoders", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}" - }, - "new": null - } - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/bitbucket_push.json b/tests/units/fixtures/bitbucket_push.json deleted file mode 100644 index f480b074..00000000 --- a/tests/units/fixtures/bitbucket_push.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "push": { - "changes": [ - { - "forced": false, - "old": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/refs/branches/master" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits/master" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branch/master" - } - }, - "name": "master", - "target": { - "date": "2015-06-21T00:50:37+00:00", - "hash": "b6b46580eb9b20a06396f5f697ea1a55cf170e69", - "message": "test edited online with Bitbucket for task #5", - "type": "commit", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/b6b46580eb9b20a06396f5f697ea1a55cf170e69" - } - }, - "parents": [ - { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - } - }, - "type": "commit", - "hash": "7251db4b505cbfca3f845ebcff0ec0ddc4003ed8" - } - ], - "author": { - "raw": "Frederic Guillot <bob>", - "user": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - } - } - }, - "type": "branch" - }, - "created": false, - "links": { - "diff": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/diff/824059cce7667d3f8d8780cc707391be821e0ea6..b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits?include=824059cce7667d3f8d8780cc707391be821e0ea6exclude=b6b46580eb9b20a06396f5f697ea1a55cf170e69" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branches/compare/824059cce7667d3f8d8780cc707391be821e0ea6..b6b46580eb9b20a06396f5f697ea1a55cf170e69" - } - }, - "new": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/refs/branches/master" - }, - "commits": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commits/master" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/branch/master" - } - }, - "name": "master", - "target": { - "date": "2015-06-21T03:15:08+00:00", - "hash": "824059cce7667d3f8d8780cc707391be821e0ea6", - "message": "Test another commit #2\n", - "type": "commit", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/824059cce7667d3f8d8780cc707391be821e0ea6" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/824059cce7667d3f8d8780cc707391be821e0ea6" - } - }, - "parents": [ - { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook/commit/24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook/commits/24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - } - }, - "type": "commit", - "hash": "24aa9d82bbb6f9a60f743fe538deb0a44622fc98" - } - ], - "author": { - "raw": "Frederic Guillot <bob@localhost>" - } - }, - "type": "branch" - }, - "closed": false - } - ] - }, - "repository": { - "name": "test-webhook", - "owner": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - }, - "uuid": "{590fd9c4-0812-425e-8d72-ab08b4fd5735}", - "type": "repository", - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/repositories/minicoders/test-webhook" - }, - "html": { - "href": "https://bitbucket.org/minicoders/test-webhook" - }, - "avatar": { - "href": "https://bitbucket.org/minicoders/test-webhook/avatar/16/" - } - }, - "full_name": "minicoders/test-webhook" - }, - "actor": { - "links": { - "self": { - "href": "https://bitbucket.org/api/2.0/users/minicoders" - }, - "html": { - "href": "https://bitbucket.org/minicoders" - }, - "avatar": { - "href": "https://bitbucket.org/account/minicoders/avatar/32/" - } - }, - "type": "user", - "uuid": "{fc59b45a-f68b-4fc1-ad1f-a17d4f17cd2c}", - "username": "minicoders", - "display_name": "Frederic Guillot" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_comment_created.json b/tests/units/fixtures/github_comment_created.json deleted file mode 100644 index bb601c7c..00000000 --- a/tests/units/fixtures/github_comment_created.json +++ /dev/null @@ -1,187 +0,0 @@ -{ - "action": "created", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 1, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:45:51Z", - "closed_at": null, - "body": "plop" - }, - "comment": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments/113834672", - "html_url": "https://github.com/kanboardapp/webhook/issues/3#issuecomment-113834672", - "issue_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "id": 113834672, - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "created_at": "2015-06-20T22:45:51Z", - "updated_at": "2015-06-20T22:45:51Z", - "body": "test" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_assigned.json b/tests/units/fixtures/github_issue_assigned.json deleted file mode 100644 index 9125e976..00000000 --- a/tests/units/fixtures/github_issue_assigned.json +++ /dev/null @@ -1,196 +0,0 @@ -{ - "action": "assigned", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:12:15Z", - "closed_at": null, - "body": "plop" - }, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_closed.json b/tests/units/fixtures/github_issue_closed.json deleted file mode 100644 index 5d2393eb..00000000 --- a/tests/units/fixtures/github_issue_closed.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "closed", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "closed", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:28:32Z", - "closed_at": "2015-06-20T22:28:32Z", - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 2, - "forks": 0, - "open_issues": 2, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_labeled.json b/tests/units/fixtures/github_issue_labeled.json deleted file mode 100644 index 4576b04f..00000000 --- a/tests/units/fixtures/github_issue_labeled.json +++ /dev/null @@ -1,170 +0,0 @@ -{ - "action": "labeled", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [ - { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - } - ], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:37:49Z", - "closed_at": null, - "body": "plop" - }, - "label": { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_opened.json b/tests/units/fixtures/github_issue_opened.json deleted file mode 100644 index 13f8d930..00000000 --- a/tests/units/fixtures/github_issue_opened.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "opened", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "Test Webhook", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T21:58:20Z", - "closed_at": null, - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_reopened.json b/tests/units/fixtures/github_issue_reopened.json deleted file mode 100644 index 70f9e884..00000000 --- a/tests/units/fixtures/github_issue_reopened.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "action": "reopened", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:33:35Z", - "closed_at": null, - "body": "plop" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_unassigned.json b/tests/units/fixtures/github_issue_unassigned.json deleted file mode 100644 index 0a578bab..00000000 --- a/tests/units/fixtures/github_issue_unassigned.json +++ /dev/null @@ -1,178 +0,0 @@ -{ - "action": "unassigned", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:26:05Z", - "closed_at": null, - "body": "plop" - }, - "assignee": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_issue_unlabeled.json b/tests/units/fixtures/github_issue_unlabeled.json deleted file mode 100644 index 47070a91..00000000 --- a/tests/units/fixtures/github_issue_unlabeled.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "action": "unlabeled", - "issue": { - "url": "https://api.github.com/repos/kanboardapp/webhook/issues/3", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/labels{/name}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/comments", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/3/events", - "html_url": "https://github.com/kanboardapp/webhook/issues/3", - "id": 89823399, - "number": 3, - "title": "test with ngrok", - "user": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - }, - "labels": [], - "state": "open", - "locked": false, - "assignee": null, - "milestone": null, - "comments": 0, - "created_at": "2015-06-20T21:58:20Z", - "updated_at": "2015-06-20T22:43:48Z", - "closed_at": null, - "body": "plop" - }, - "label": { - "url": "https://api.github.com/repos/kanboardapp/webhook/labels/bug", - "name": "bug", - "color": "fc2929" - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "login": "kanboardapp", - "id": 8738076, - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/kanboardapp", - "html_url": "https://github.com/kanboardapp", - "followers_url": "https://api.github.com/users/kanboardapp/followers", - "following_url": "https://api.github.com/users/kanboardapp/following{/other_user}", - "gists_url": "https://api.github.com/users/kanboardapp/gists{/gist_id}", - "starred_url": "https://api.github.com/users/kanboardapp/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/kanboardapp/subscriptions", - "organizations_url": "https://api.github.com/users/kanboardapp/orgs", - "repos_url": "https://api.github.com/users/kanboardapp/repos", - "events_url": "https://api.github.com/users/kanboardapp/events{/privacy}", - "received_events_url": "https://api.github.com/users/kanboardapp/received_events", - "type": "Organization", - "site_admin": false - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://api.github.com/repos/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": "2014-10-25T20:10:38Z", - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": "2014-10-25T22:02:01Z", - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/github_push.json b/tests/units/fixtures/github_push.json deleted file mode 100644 index 5ae9b766..00000000 --- a/tests/units/fixtures/github_push.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "ref": "refs/heads/master", - "before": "895598f1baf1ee5fb3f43ebc509aa86e263bde4b", - "after": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "created": false, - "deleted": false, - "forced": false, - "base_ref": null, - "compare": "https://github.com/kanboardapp/webhook/compare/895598f1baf1...98dee3e49ee7", - "commits": [ - { - "id": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "distinct": true, - "message": "Update README to fix #1", - "timestamp": "2015-06-20T18:54:52-04:00", - "url": "https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "author": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "committer": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "added": [], - "removed": [], - "modified": [ - "README.md" - ] - } - ], - "head_commit": { - "id": "98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "distinct": true, - "message": "Update README", - "timestamp": "2015-06-20T18:54:52-04:00", - "url": "https://github.com/kanboardapp/webhook/commit/98dee3e49ee7aa66ffec1f761af93da5ffd711f6", - "author": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "committer": { - "name": "Frédéric Guillot", - "email": "fred@kanboard.net", - "username": "fguillot" - }, - "added": [], - "removed": [], - "modified": [ - "README.md" - ] - }, - "repository": { - "id": 25744941, - "name": "webhook", - "full_name": "kanboardapp/webhook", - "owner": { - "name": "kanboardapp", - "email": null - }, - "private": false, - "html_url": "https://github.com/kanboardapp/webhook", - "description": "", - "fork": false, - "url": "https://github.com/kanboardapp/webhook", - "forks_url": "https://api.github.com/repos/kanboardapp/webhook/forks", - "keys_url": "https://api.github.com/repos/kanboardapp/webhook/keys{/key_id}", - "collaborators_url": "https://api.github.com/repos/kanboardapp/webhook/collaborators{/collaborator}", - "teams_url": "https://api.github.com/repos/kanboardapp/webhook/teams", - "hooks_url": "https://api.github.com/repos/kanboardapp/webhook/hooks", - "issue_events_url": "https://api.github.com/repos/kanboardapp/webhook/issues/events{/number}", - "events_url": "https://api.github.com/repos/kanboardapp/webhook/events", - "assignees_url": "https://api.github.com/repos/kanboardapp/webhook/assignees{/user}", - "branches_url": "https://api.github.com/repos/kanboardapp/webhook/branches{/branch}", - "tags_url": "https://api.github.com/repos/kanboardapp/webhook/tags", - "blobs_url": "https://api.github.com/repos/kanboardapp/webhook/git/blobs{/sha}", - "git_tags_url": "https://api.github.com/repos/kanboardapp/webhook/git/tags{/sha}", - "git_refs_url": "https://api.github.com/repos/kanboardapp/webhook/git/refs{/sha}", - "trees_url": "https://api.github.com/repos/kanboardapp/webhook/git/trees{/sha}", - "statuses_url": "https://api.github.com/repos/kanboardapp/webhook/statuses/{sha}", - "languages_url": "https://api.github.com/repos/kanboardapp/webhook/languages", - "stargazers_url": "https://api.github.com/repos/kanboardapp/webhook/stargazers", - "contributors_url": "https://api.github.com/repos/kanboardapp/webhook/contributors", - "subscribers_url": "https://api.github.com/repos/kanboardapp/webhook/subscribers", - "subscription_url": "https://api.github.com/repos/kanboardapp/webhook/subscription", - "commits_url": "https://api.github.com/repos/kanboardapp/webhook/commits{/sha}", - "git_commits_url": "https://api.github.com/repos/kanboardapp/webhook/git/commits{/sha}", - "comments_url": "https://api.github.com/repos/kanboardapp/webhook/comments{/number}", - "issue_comment_url": "https://api.github.com/repos/kanboardapp/webhook/issues/comments{/number}", - "contents_url": "https://api.github.com/repos/kanboardapp/webhook/contents/{+path}", - "compare_url": "https://api.github.com/repos/kanboardapp/webhook/compare/{base}...{head}", - "merges_url": "https://api.github.com/repos/kanboardapp/webhook/merges", - "archive_url": "https://api.github.com/repos/kanboardapp/webhook/{archive_format}{/ref}", - "downloads_url": "https://api.github.com/repos/kanboardapp/webhook/downloads", - "issues_url": "https://api.github.com/repos/kanboardapp/webhook/issues{/number}", - "pulls_url": "https://api.github.com/repos/kanboardapp/webhook/pulls{/number}", - "milestones_url": "https://api.github.com/repos/kanboardapp/webhook/milestones{/number}", - "notifications_url": "https://api.github.com/repos/kanboardapp/webhook/notifications{?since,all,participating}", - "labels_url": "https://api.github.com/repos/kanboardapp/webhook/labels{/name}", - "releases_url": "https://api.github.com/repos/kanboardapp/webhook/releases{/id}", - "created_at": 1414267838, - "updated_at": "2014-10-25T20:10:38Z", - "pushed_at": 1434840893, - "git_url": "git://github.com/kanboardapp/webhook.git", - "ssh_url": "git@github.com:kanboardapp/webhook.git", - "clone_url": "https://github.com/kanboardapp/webhook.git", - "svn_url": "https://github.com/kanboardapp/webhook", - "homepage": null, - "size": 124, - "stargazers_count": 0, - "watchers_count": 0, - "language": null, - "has_issues": true, - "has_downloads": true, - "has_wiki": true, - "has_pages": false, - "forks_count": 0, - "mirror_url": null, - "open_issues_count": 3, - "forks": 0, - "open_issues": 3, - "watchers": 0, - "default_branch": "master", - "stargazers": 0, - "master_branch": "master", - "organization": "kanboardapp" - }, - "pusher": { - "name": "fguillot", - "email": "fred@kanboard.net" - }, - "organization": { - "login": "kanboardapp", - "id": 8738076, - "url": "https://api.github.com/orgs/kanboardapp", - "repos_url": "https://api.github.com/orgs/kanboardapp/repos", - "events_url": "https://api.github.com/orgs/kanboardapp/events", - "members_url": "https://api.github.com/orgs/kanboardapp/members{/member}", - "public_members_url": "https://api.github.com/orgs/kanboardapp/public_members{/member}", - "avatar_url": "https://avatars.githubusercontent.com/u/8738076?v=3", - "description": null - }, - "sender": { - "login": "fguillot", - "id": 323546, - "avatar_url": "https://avatars.githubusercontent.com/u/323546?v=3", - "gravatar_id": "", - "url": "https://api.github.com/users/fguillot", - "html_url": "https://github.com/fguillot", - "followers_url": "https://api.github.com/users/fguillot/followers", - "following_url": "https://api.github.com/users/fguillot/following{/other_user}", - "gists_url": "https://api.github.com/users/fguillot/gists{/gist_id}", - "starred_url": "https://api.github.com/users/fguillot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/fguillot/subscriptions", - "organizations_url": "https://api.github.com/users/fguillot/orgs", - "repos_url": "https://api.github.com/users/fguillot/repos", - "events_url": "https://api.github.com/users/fguillot/events{/privacy}", - "received_events_url": "https://api.github.com/users/fguillot/received_events", - "type": "User", - "site_admin": false - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/gitlab_comment_created.json b/tests/units/fixtures/gitlab_comment_created.json deleted file mode 100644 index b6599419..00000000 --- a/tests/units/fixtures/gitlab_comment_created.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "object_kind": "note", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "project_id": 320820, - "repository": { - "name": "test-webhook", - "url": "git@gitlab.com:minicoders/test-webhook.git", - "description": "", - "homepage": "https://gitlab.com/minicoders/test-webhook" - }, - "object_attributes": { - "id": 1642761, - "note": "Super comment!", - "noteable_type": "Issue", - "author_id": 74067, - "created_at": "2015-07-17 21:37:48 UTC", - "updated_at": "2015-07-17 21:37:48 UTC", - "project_id": 320820, - "attachment": null, - "line_code": null, - "commit_id": "", - "noteable_id": 355691, - "st_diff": null, - "system": false, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1#note_1642761" - }, - "issue": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 21:37:48 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "opened", - "iid": 1 - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/gitlab_issue_closed.json b/tests/units/fixtures/gitlab_issue_closed.json deleted file mode 100644 index 82500b3c..00000000 --- a/tests/units/fixtures/gitlab_issue_closed.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "object_kind": "issue", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "object_attributes": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 22:10:17 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "closed", - "iid": 1, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1", - "action": "close" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/gitlab_issue_opened.json b/tests/units/fixtures/gitlab_issue_opened.json deleted file mode 100644 index 3e75c138..00000000 --- a/tests/units/fixtures/gitlab_issue_opened.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "object_kind": "issue", - "user": { - "name": "Fred", - "username": "minicoders", - "avatar_url": "https://secure.gravatar.com/avatar/3c44936e5a56f80711bff14987d2733f?s=40&d=identicon" - }, - "object_attributes": { - "id": 355691, - "title": "Bug", - "assignee_id": null, - "author_id": 74067, - "project_id": 320820, - "created_at": "2015-07-17 21:31:47 UTC", - "updated_at": "2015-07-17 21:31:47 UTC", - "position": 0, - "branch_name": null, - "description": "There is a bug somewhere.\r\n\r\nBye", - "milestone_id": null, - "state": "opened", - "iid": 1, - "url": "https://gitlab.com/minicoders/test-webhook/issues/1", - "action": "open" - } -}
\ No newline at end of file diff --git a/tests/units/fixtures/gitlab_push.json b/tests/units/fixtures/gitlab_push.json deleted file mode 100644 index ed77f041..00000000 --- a/tests/units/fixtures/gitlab_push.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "object_kind": "push", - "before": "e4ec6156d208a45fc546fae73c28300b5af1692a", - "after": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "ref": "refs/heads/master", - "checkout_sha": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "message": null, - "user_id": 74067, - "user_name": "Fred", - "user_email": "f+gitlab@minicoders.com", - "project_id": 320820, - "repository": { - "name": "test-webhook", - "url": "git@gitlab.com:minicoders/test-webhook.git", - "description": "", - "homepage": "https://gitlab.com/minicoders/test-webhook", - "git_http_url": "https://gitlab.com/minicoders/test-webhook.git", - "git_ssh_url": "git@gitlab.com:minicoders/test-webhook.git", - "visibility_level": 0 - }, - "commits": [ - { - "id": "48aafa75eef9ad253aa254b0c82c987a52ebea78", - "message": "Fix bug #2", - "timestamp": "2015-06-21T00:41:41+00:00", - "url": "https://gitlab.com/minicoders/test-webhook/commit/48aafa75eef9ad253aa254b0c82c987a52ebea78", - "author": { - "name": "Fred", - "email": "me@localhost" - } - }, - { - "id": "e4ec6156d208a45fc546fae73c28300b5af1692a", - "message": "test", - "timestamp": "2015-06-21T00:35:55+00:00", - "url": "https://gitlab.com/localhost/test-webhook/commit/e4ec6156d208a45fc546fae73c28300b5af1692a", - "author": { - "name": "Fred", - "email": "me@localhost" - } - } - ], - "total_commits_count": 2 -}
\ No newline at end of file |