Skip to content

Commit

Permalink
Check event property is set in GitHub webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
seankelly committed Mar 25, 2017
1 parent 6aa3ea0 commit 3ba7657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions master/buildbot/test/unit/test_www_hooks_github.py
Expand Up @@ -448,6 +448,7 @@ def _check_git_with_change(self, payload):
self.assertEqual(change["revlink"],
"http://github.com/defunkt/github/commit/"
"de8251ff97ee194a289832576287d6f8ad74e3d0")
self.assertEqual(change["properties"]["event"], "push")

def test_git_with_change_encoded(self):
self._check_git_with_change([gitJsonPayload])
Expand Down Expand Up @@ -569,6 +570,7 @@ def _check_git_with_pull(self, payload):
self.assertEqual(change["branch"], "refs/pull/50/merge")
self.assertEqual(change["revlink"],
"https://github.com/defunkt/github/pull/50")
self.assertEqual(change["properties"]["event"], "pull_request")

def test_git_with_pull_encoded(self):
self._check_git_with_pull([gitJsonPayloadPullRequest])
Expand Down

0 comments on commit 3ba7657

Please sign in to comment.