{"action":"created","issue":{"url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/3","labels_url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/3/comments","events_url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/3/events","html_url":"https://github.com/drone-plugins/drone-s3/pull/3","id":113704277,"number":3,"title":"WIP: Unit tests for drone-s3 plugin","user":{"login":"RomanSaveljev","id":2023288,"avatar_url":"https://avatars.githubusercontent.com/u/2023288?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanSaveljev","html_url":"https://github.com/RomanSaveljev","followers_url":"https://api.github.com/users/RomanSaveljev/followers","following_url":"https://api.github.com/users/RomanSaveljev/following{/other_user}","gists_url":"https://api.github.com/users/RomanSaveljev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanSaveljev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanSaveljev/subscriptions","organizations_url":"https://api.github.com/users/RomanSaveljev/orgs","repos_url":"https://api.github.com/users/RomanSaveljev/repos","events_url":"https://api.github.com/users/RomanSaveljev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanSaveljev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-27T22:35:57Z","updated_at":"2015-12-07T18:31:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/drone-plugins/drone-s3/pulls/3","html_url":"https://github.com/drone-plugins/drone-s3/pull/3","diff_url":"https://github.com/drone-plugins/drone-s3/pull/3.diff","patch_url":"https://github.com/drone-plugins/drone-s3/pull/3.patch"},"body":"This is a running PR, which is about to bring some unit tests to cover the plugin's functionality. Couple of tests fail due to (subjective) bugs in the plugin, so some merging/rebasing should follow.\r\n\r\nIt is put up early for awareness and discussion"},"comment":{"url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/comments/162616149","html_url":"https://github.com/drone-plugins/drone-s3/pull/3#issuecomment-162616149","issue_url":"https://api.github.com/repos/drone-plugins/drone-s3/issues/3","id":162616149,"user":{"login":"bradrydzewski","id":817538,"avatar_url":"https://avatars.githubusercontent.com/u/817538?v=3","gravatar_id":"","url":"https://api.github.com/users/bradrydzewski","html_url":"https://github.com/bradrydzewski","followers_url":"https://api.github.com/users/bradrydzewski/followers","following_url":"https://api.github.com/users/bradrydzewski/following{/other_user}","gists_url":"https://api.github.com/users/bradrydzewski/gists{/gist_id}","starred_url":"https://api.github.com/users/bradrydzewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradrydzewski/subscriptions","organizations_url":"https://api.github.com/users/bradrydzewski/orgs","repos_url":"https://api.github.com/users/bradrydzewski/repos","events_url":"https://api.github.com/users/bradrydzewski/events{/privacy}","received_events_url":"https://api.github.com/users/bradrydzewski/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T18:31:01Z","updated_at":"2015-12-07T18:31:01Z","body":"`fake-s3` in a service container sounds like the way to go.\r\n\r\nalternatively, if we want something a bit more simple to ensure commands are being executed with the expected parameters, and mock the responses, we can use https://github.com/tsuru/commandmocker \r\n"}}