Drone

Exchange a bitbucket access token for a drone access token

As an engineer, I would like to be able to exchange a bitbucket access token for a drone access token so that I can automate all the things

Acceptance criteria:
Given a valid bitbucket accesss token,
When I reach the token exchange api with the token
Then the response should have a success HTTP status code
And the response should contain the drone access token

Given an invalid bitbucket accesss token,
When I reach the token exchange api with the token
Then the response should have a failure HTTP status code
And the response should not contain the drone access token