{"action":"created","issue":{"url":"https://api.github.com/repos/rusoto/rusoto/issues/368","repository_url":"https://api.github.com/repos/rusoto/rusoto","labels_url":"https://api.github.com/repos/rusoto/rusoto/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/rusoto/rusoto/issues/368/comments","events_url":"https://api.github.com/repos/rusoto/rusoto/issues/368/events","html_url":"https://github.com/rusoto/rusoto/pull/368","id":175372064,"number":368,"title":"Add mock request dispatcher and example unit test using it","user":{"login":"adimarco","id":420860,"avatar_url":"https://avatars.githubusercontent.com/u/420860?v=3","gravatar_id":"","url":"https://api.github.com/users/adimarco","html_url":"https://github.com/adimarco","followers_url":"https://api.github.com/users/adimarco/followers","following_url":"https://api.github.com/users/adimarco/following{/other_user}","gists_url":"https://api.github.com/users/adimarco/gists{/gist_id}","starred_url":"https://api.github.com/users/adimarco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adimarco/subscriptions","organizations_url":"https://api.github.com/users/adimarco/orgs","repos_url":"https://api.github.com/users/adimarco/repos","events_url":"https://api.github.com/users/adimarco/events{/privacy}","received_events_url":"https://api.github.com/users/adimarco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-06T22:59:45Z","updated_at":"2016-09-08T06:30:59Z","closed_at":"2016-09-08T06:30:59Z","pull_request":{"url":"https://api.github.com/repos/rusoto/rusoto/pulls/368","html_url":"https://github.com/rusoto/rusoto/pull/368","diff_url":"https://github.com/rusoto/rusoto/pull/368.diff","patch_url":"https://github.com/rusoto/rusoto/pull/368.patch"},"body":"Pulled this out of some un-merged stuff since there's a need for it.\r\n\r\nAdds a `MockRequestDispatcher` that allows the whole HTTP request/response to be easily mocked for unit tests.  There's an example unit test in `sqs.rs` that demonstrates its use.\r\n\r\nEssentially, you create a mock dispatcher that always returns a specified body, status code, and headers.  That mock is used by the `WhateverClient` that our codegen outputs instead of the default, and then when a method is called, it gets the mocked response back."},"comment":{"url":"https://api.github.com/repos/rusoto/rusoto/issues/comments/245506166","html_url":"https://github.com/rusoto/rusoto/pull/368#issuecomment-245506166","issue_url":"https://api.github.com/repos/rusoto/rusoto/issues/368","id":245506166,"user":{"login":"matthewkmayer","id":4998189,"avatar_url":"https://avatars.githubusercontent.com/u/4998189?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewkmayer","html_url":"https://github.com/matthewkmayer","followers_url":"https://api.github.com/users/matthewkmayer/followers","following_url":"https://api.github.com/users/matthewkmayer/following{/other_user}","gists_url":"https://api.github.com/users/matthewkmayer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewkmayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewkmayer/subscriptions","organizations_url":"https://api.github.com/users/matthewkmayer/orgs","repos_url":"https://api.github.com/users/matthewkmayer/repos","events_url":"https://api.github.com/users/matthewkmayer/events{/privacy}","received_events_url":"https://api.github.com/users/matthewkmayer/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T06:30:59Z","updated_at":"2016-09-08T06:30:59Z","body":"Closing in favor of https://github.com/rusoto/rusoto/pull/371 ."}}
{"actor":{"display_login":"matthewkmayer"}}