Skip to content

Commit

Permalink
test(): updated webhooks for bitbucket repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Izak88 authored and jkuri committed Oct 2, 2017
1 parent 9760d1e commit b0d1576
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 82 deletions.
81 changes: 43 additions & 38 deletions tests/e2e/webhooks/bitbucket/PullRequestEvent.ts
Original file line number Diff line number Diff line change
@@ -1,102 +1,107 @@
export let request = {
'pullrequest': {
'type': 'pullrequest',
'description': '',
'description': '* test\r\n* test',
'links': {
'decline': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/decline'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/decline'
},
'commits': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/commits'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/commits'
},
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1'
},
'comments': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/comments'
'href':
'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/comments'
},
'merge': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/merge'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/merge'
},
'html': {
'href': 'https://bitbucket.org/Izak88/test/pull-requests/1'
'href': 'https://bitbucket.org/Izak88/d3-bundle/pull-requests/1'
},
'activity': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/activity'
'href':
'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/activity'
},
'diff': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/diff'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/diff'
},
'approve': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/approve'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/approve'
},
'statuses': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/pullrequests/1/statuses'
'href':
'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/pullrequests/1/statuses'
}
},
'title': 'test pr',
'title': 'Test',
'close_source_branch': false,
'reviewers': [],
'destination': {
'commit': {
'hash': '5fe88c29cc81',
'hash': '187cca05434b',
'links': {
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/commit/5fe88c29cc81'
'href':
'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/commit/187cca05434b'
}
}
},
'branch': {
'name': 'master'
},
'repository': {
'full_name': 'Izak88/test',
'full_name': 'Izak88/d3-bundle',
'type': 'repository',
'name': 'test',
'name': 'd3-bundle',
'links': {
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle'
},
'html': {
'href': 'https://bitbucket.org/Izak88/test'
'href': 'https://bitbucket.org/Izak88/d3-bundle'
},
'avatar': {
'href': 'https://bitbucket.org/Izak88/test/avatar/32/'
'href': 'https://bitbucket.org/Izak88/d3-bundle/avatar/32/'
}
},
'uuid': '{555997f5-1f4c-4afa-9c63-71e3ee5d725b}'
'uuid': '{a6fa13bf-643a-45f6-a0b2-7324954878de}'
}
},
'comment_count': 0,
'id': 1,
'source': {
'commit': {
'hash': '14cfcda75f7d',
'hash': '47f058cef3a3',
'links': {
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test/commit/14cfcda75f7d'
'href':
'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle/commit/47f058cef3a3'
}
}
},
'branch': {
'name': 'test-branch'
'name': 'test'
},
'repository': {
'full_name': 'Izak88/test',
'full_name': 'Izak88/d3-bundle',
'type': 'repository',
'name': 'test',
'name': 'd3-bundle',
'links': {
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle'
},
'html': {
'href': 'https://bitbucket.org/Izak88/test'
'href': 'https://bitbucket.org/Izak88/d3-bundle'
},
'avatar': {
'href': 'https://bitbucket.org/Izak88/test/avatar/32/'
'href': 'https://bitbucket.org/Izak88/d3-bundle/avatar/32/'
}
},
'uuid': '{555997f5-1f4c-4afa-9c63-71e3ee5d725b}'
'uuid': '{a6fa13bf-643a-45f6-a0b2-7324954878de}'
}
},
'state': 'OPEN',
Expand All @@ -117,10 +122,10 @@ export let request = {
}
}
},
'created_on': '2017-08-01T08:01:16.704797+00:00',
'created_on': '2017-10-02T06:59:54.656281+00:00',
'participants': [],
'reason': '',
'updated_on': '2017-08-01T08:01:16.751344+00:00',
'updated_on': '2017-10-02T06:59:54.690110+00:00',
'merge_commit': null,
'closed_by': null,
'task_count': 0
Expand All @@ -145,19 +150,19 @@ export let request = {
'repository': {
'scm': 'git',
'website': '',
'name': 'test',
'name': 'd3-bundle',
'links': {
'self': {
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/test'
'href': 'https://api.bitbucket.org/2.0/repositories/Izak88/d3-bundle'
},
'html': {
'href': 'https://bitbucket.org/Izak88/test'
'href': 'https://bitbucket.org/Izak88/d3-bundle'
},
'avatar': {
'href': 'https://bitbucket.org/Izak88/test/avatar/32/'
'href': 'https://bitbucket.org/Izak88/d3-bundle/avatar/32/'
}
},
'full_name': 'Izak88/test',
'full_name': 'Izak88/d3-bundle',
'owner': {
'username': 'Izak88',
'type': 'user',
Expand All @@ -176,8 +181,8 @@ export let request = {
}
},
'type': 'repository',
'is_private': false,
'uuid': '{555997f5-1f4c-4afa-9c63-71e3ee5d725b}'
'is_private': true,
'uuid': '{a6fa13bf-643a-45f6-a0b2-7324954878de}'
}
};

Expand Down
Loading

0 comments on commit b0d1576

Please sign in to comment.