Skip bitbucket pushes without any commits

Fixes https://sentry.io/coreos/backend-production/issues/178220183/
This commit is contained in:
Joseph Schorr 2017-03-20 18:23:21 -04:00
parent 4cb8412fd8
commit 6476488221
4 changed files with 90 additions and 2 deletions

View file

@ -511,5 +511,9 @@ class TestPrepareTrigger(unittest.TestCase):
self.assertSkipped('github_webhook_knownissue', gh_webhook, lookup_user=lookup_user)
def test_bitbucket_webhook_known_issue(self):
self.assertSkipped('bitbucket_knownissue', bb_webhook)
if __name__ == '__main__':
unittest.main()

View file

@ -0,0 +1,78 @@
{
"push": {
"changes": [
]
},
"actor": {
"username": "SL_jwilds",
"display_name": "Jim Wilds",
"type": "user",
"uuid": "{61f851e9-afbc-4bc6-bb9b-99e23c0e765a}",
"links": {
"self": {
"href": "https:\/\/api.bitbucket.org\/2.0\/users\/SL_jwilds"
},
"html": {
"href": "https:\/\/bitbucket.org\/SL_jwilds\/"
},
"avatar": {
"href": "https:\/\/bitbucket.org\/account\/SL_jwilds\/avatar\/32\/"
}
}
},
"repository": {
"website": "",
"scm": "git",
"name": "slip-api",
"links": {
"self": {
"href": "https:\/\/api.bitbucket.org\/2.0\/repositories\/silverlinkinc\/slip-api"
},
"html": {
"href": "https:\/\/bitbucket.org\/silverlinkinc\/slip-api"
},
"avatar": {
"href": "https:\/\/bitbucket.org\/silverlinkinc\/slip-api\/avatar\/32\/"
}
},
"project": {
"links": {
"self": {
"href": "https:\/\/api.bitbucket.org\/2.0\/teams\/silverlinkinc\/projects\/SLIP"
},
"html": {
"href": "https:\/\/bitbucket.org\/account\/user\/silverlinkinc\/projects\/SLIP"
},
"avatar": {
"href": "https:\/\/bitbucket.org\/account\/user\/silverlinkinc\/projects\/SLIP\/avatar\/32"
}
},
"type": "project",
"name": "SLIP",
"key": "SLIP",
"uuid": "{f5ba67c5-3585-453b-9412-77e4dc15be29}"
},
"full_name": "silverlinkinc\/slip-api",
"owner": {
"username": "silverlinkinc",
"display_name": "Silverlink",
"type": "team",
"uuid": "{9c4ce5f2-79fe-4906-9451-41fcac6bb293}",
"links": {
"self": {
"href": "https:\/\/api.bitbucket.org\/2.0\/teams\/silverlinkinc"
},
"html": {
"href": "https:\/\/bitbucket.org\/silverlinkinc\/"
},
"avatar": {
"href": "https:\/\/bitbucket.org\/account\/silverlinkinc\/avatar\/32\/"
}
}
},
"type": "repository",
"is_private": true,
"uuid": "{59183493-0e4a-47aa-b069-be60adce4092}"
}
}