{"action":"closed","number":1147,"pull_request":{"url":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147","id":63002359,"html_url":"https://github.com/Netflix/Hystrix/pull/1147","diff_url":"https://github.com/Netflix/Hystrix/pull/1147.diff","patch_url":"https://github.com/Netflix/Hystrix/pull/1147.patch","issue_url":"https://api.github.com/repos/Netflix/Hystrix/issues/1147","number":1147,"state":"closed","locked":false,"title":"Proposal: HystrixRequestContext junit rule","user":{"login":"caarlos0","id":245435,"avatar_url":"https://avatars.githubusercontent.com/u/245435?v=3","gravatar_id":"","url":"https://api.github.com/users/caarlos0","html_url":"https://github.com/caarlos0","followers_url":"https://api.github.com/users/caarlos0/followers","following_url":"https://api.github.com/users/caarlos0/following{/other_user}","gists_url":"https://api.github.com/users/caarlos0/gists{/gist_id}","starred_url":"https://api.github.com/users/caarlos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caarlos0/subscriptions","organizations_url":"https://api.github.com/users/caarlos0/orgs","repos_url":"https://api.github.com/users/caarlos0/repos","events_url":"https://api.github.com/users/caarlos0/events{/privacy}","received_events_url":"https://api.github.com/users/caarlos0/received_events","type":"User","site_admin":false},"body":"This will make testing commands that requires a `HystrixRequestContext`\r\neasier in JUnit by using its Rule feature.\r\n\r\nAn example of usage would be something like:\r\n\r\n```java\r\n    @Rule\r\n    public HystrixRequestContextRule request = new HystrixRequestContextRule();\r\n\r\n    @Test\r\n    public void blah() {\r\n       // exec a HystrixCommand that requires some kind of caching, for example\r\n    }\r\n```\r\n\r\nI put it in the `hystrix-contrib` folder, let me know if this is the right thing to do, please.","created_at":"2016-03-16T01:27:38Z","updated_at":"2016-04-19T18:22:03Z","closed_at":"2016-04-19T18:22:02Z","merged_at":"2016-04-19T18:22:02Z","merge_commit_sha":"bd2a6ee5f8d4e63adbe707c2adbcfceb66b6355a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147/commits","review_comments_url":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147/comments","review_comment_url":"https://api.github.com/repos/Netflix/Hystrix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Netflix/Hystrix/issues/1147/comments","statuses_url":"https://api.github.com/repos/Netflix/Hystrix/statuses/3ee6006306223e843de70525544c11eab844dfd7","head":{"label":"caarlos0:junit","ref":"junit","sha":"3ee6006306223e843de70525544c11eab844dfd7","user":{"login":"caarlos0","id":245435,"avatar_url":"https://avatars.githubusercontent.com/u/245435?v=3","gravatar_id":"","url":"https://api.github.com/users/caarlos0","html_url":"https://github.com/caarlos0","followers_url":"https://api.github.com/users/caarlos0/followers","following_url":"https://api.github.com/users/caarlos0/following{/other_user}","gists_url":"https://api.github.com/users/caarlos0/gists{/gist_id}","starred_url":"https://api.github.com/users/caarlos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caarlos0/subscriptions","organizations_url":"https://api.github.com/users/caarlos0/orgs","repos_url":"https://api.github.com/users/caarlos0/repos","events_url":"https://api.github.com/users/caarlos0/events{/privacy}","received_events_url":"https://api.github.com/users/caarlos0/received_events","type":"User","site_admin":false},"repo":{"id":51216452,"name":"Hystrix","full_name":"caarlos0/Hystrix","owner":{"login":"caarlos0","id":245435,"avatar_url":"https://avatars.githubusercontent.com/u/245435?v=3","gravatar_id":"","url":"https://api.github.com/users/caarlos0","html_url":"https://github.com/caarlos0","followers_url":"https://api.github.com/users/caarlos0/followers","following_url":"https://api.github.com/users/caarlos0/following{/other_user}","gists_url":"https://api.github.com/users/caarlos0/gists{/gist_id}","starred_url":"https://api.github.com/users/caarlos0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caarlos0/subscriptions","organizations_url":"https://api.github.com/users/caarlos0/orgs","repos_url":"https://api.github.com/users/caarlos0/repos","events_url":"https://api.github.com/users/caarlos0/events{/privacy}","received_events_url":"https://api.github.com/users/caarlos0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caarlos0/Hystrix","description":"Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.","fork":true,"url":"https://api.github.com/repos/caarlos0/Hystrix","forks_url":"https://api.github.com/repos/caarlos0/Hystrix/forks","keys_url":"https://api.github.com/repos/caarlos0/Hystrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caarlos0/Hystrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caarlos0/Hystrix/teams","hooks_url":"https://api.github.com/repos/caarlos0/Hystrix/hooks","issue_events_url":"https://api.github.com/repos/caarlos0/Hystrix/issues/events{/number}","events_url":"https://api.github.com/repos/caarlos0/Hystrix/events","assignees_url":"https://api.github.com/repos/caarlos0/Hystrix/assignees{/user}","branches_url":"https://api.github.com/repos/caarlos0/Hystrix/branches{/branch}","tags_url":"https://api.github.com/repos/caarlos0/Hystrix/tags","blobs_url":"https://api.github.com/repos/caarlos0/Hystrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caarlos0/Hystrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caarlos0/Hystrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/caarlos0/Hystrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caarlos0/Hystrix/statuses/{sha}","languages_url":"https://api.github.com/repos/caarlos0/Hystrix/languages","stargazers_url":"https://api.github.com/repos/caarlos0/Hystrix/stargazers","contributors_url":"https://api.github.com/repos/caarlos0/Hystrix/contributors","subscribers_url":"https://api.github.com/repos/caarlos0/Hystrix/subscribers","subscription_url":"https://api.github.com/repos/caarlos0/Hystrix/subscription","commits_url":"https://api.github.com/repos/caarlos0/Hystrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/caarlos0/Hystrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/caarlos0/Hystrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/caarlos0/Hystrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/caarlos0/Hystrix/contents/{+path}","compare_url":"https://api.github.com/repos/caarlos0/Hystrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caarlos0/Hystrix/merges","archive_url":"https://api.github.com/repos/caarlos0/Hystrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caarlos0/Hystrix/downloads","issues_url":"https://api.github.com/repos/caarlos0/Hystrix/issues{/number}","pulls_url":"https://api.github.com/repos/caarlos0/Hystrix/pulls{/number}","milestones_url":"https://api.github.com/repos/caarlos0/Hystrix/milestones{/number}","notifications_url":"https://api.github.com/repos/caarlos0/Hystrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caarlos0/Hystrix/labels{/name}","releases_url":"https://api.github.com/repos/caarlos0/Hystrix/releases{/id}","deployments_url":"https://api.github.com/repos/caarlos0/Hystrix/deployments","created_at":"2016-02-06T18:54:31Z","updated_at":"2016-02-06T18:54:36Z","pushed_at":"2016-03-16T01:36:54Z","git_url":"git://github.com/caarlos0/Hystrix.git","ssh_url":"git@github.com:caarlos0/Hystrix.git","clone_url":"https://github.com/caarlos0/Hystrix.git","svn_url":"https://github.com/caarlos0/Hystrix","homepage":"","size":7619,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Netflix:master","ref":"master","sha":"70964f703ac99f98b79ed95524ee1a105b3aa31d","user":{"login":"Netflix","id":913567,"avatar_url":"https://avatars.githubusercontent.com/u/913567?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"repo":{"id":6766558,"name":"Hystrix","full_name":"Netflix/Hystrix","owner":{"login":"Netflix","id":913567,"avatar_url":"https://avatars.githubusercontent.com/u/913567?v=3","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Netflix/Hystrix","description":"Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.","fork":false,"url":"https://api.github.com/repos/Netflix/Hystrix","forks_url":"https://api.github.com/repos/Netflix/Hystrix/forks","keys_url":"https://api.github.com/repos/Netflix/Hystrix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix/Hystrix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix/Hystrix/teams","hooks_url":"https://api.github.com/repos/Netflix/Hystrix/hooks","issue_events_url":"https://api.github.com/repos/Netflix/Hystrix/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix/Hystrix/events","assignees_url":"https://api.github.com/repos/Netflix/Hystrix/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix/Hystrix/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix/Hystrix/tags","blobs_url":"https://api.github.com/repos/Netflix/Hystrix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix/Hystrix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix/Hystrix/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix/Hystrix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix/Hystrix/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix/Hystrix/languages","stargazers_url":"https://api.github.com/repos/Netflix/Hystrix/stargazers","contributors_url":"https://api.github.com/repos/Netflix/Hystrix/contributors","subscribers_url":"https://api.github.com/repos/Netflix/Hystrix/subscribers","subscription_url":"https://api.github.com/repos/Netflix/Hystrix/subscription","commits_url":"https://api.github.com/repos/Netflix/Hystrix/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix/Hystrix/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix/Hystrix/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix/Hystrix/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netflix/Hystrix/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix/Hystrix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix/Hystrix/merges","archive_url":"https://api.github.com/repos/Netflix/Hystrix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix/Hystrix/downloads","issues_url":"https://api.github.com/repos/Netflix/Hystrix/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix/Hystrix/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix/Hystrix/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix/Hystrix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix/Hystrix/labels{/name}","releases_url":"https://api.github.com/repos/Netflix/Hystrix/releases{/id}","deployments_url":"https://api.github.com/repos/Netflix/Hystrix/deployments","created_at":"2012-11-19T20:14:46Z","updated_at":"2016-04-19T14:24:22Z","pushed_at":"2016-04-19T18:22:03Z","git_url":"git://github.com/Netflix/Hystrix.git","ssh_url":"git@github.com:Netflix/Hystrix.git","clone_url":"https://github.com/Netflix/Hystrix.git","svn_url":"https://github.com/Netflix/Hystrix","homepage":"","size":9423,"stargazers_count":5694,"watchers_count":5694,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1026,"mirror_url":null,"open_issues_count":56,"forks":1026,"open_issues":56,"watchers":5694,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147"},"html":{"href":"https://github.com/Netflix/Hystrix/pull/1147"},"issue":{"href":"https://api.github.com/repos/Netflix/Hystrix/issues/1147"},"comments":{"href":"https://api.github.com/repos/Netflix/Hystrix/issues/1147/comments"},"review_comments":{"href":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147/comments"},"review_comment":{"href":"https://api.github.com/repos/Netflix/Hystrix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Netflix/Hystrix/pulls/1147/commits"},"statuses":{"href":"https://api.github.com/repos/Netflix/Hystrix/statuses/3ee6006306223e843de70525544c11eab844dfd7"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"mattrjacobs","id":205579,"avatar_url":"https://avatars.githubusercontent.com/u/205579?v=3","gravatar_id":"","url":"https://api.github.com/users/mattrjacobs","html_url":"https://github.com/mattrjacobs","followers_url":"https://api.github.com/users/mattrjacobs/followers","following_url":"https://api.github.com/users/mattrjacobs/following{/other_user}","gists_url":"https://api.github.com/users/mattrjacobs/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrjacobs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrjacobs/subscriptions","organizations_url":"https://api.github.com/users/mattrjacobs/orgs","repos_url":"https://api.github.com/users/mattrjacobs/repos","events_url":"https://api.github.com/users/mattrjacobs/events{/privacy}","received_events_url":"https://api.github.com/users/mattrjacobs/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"commits":3,"additions":83,"deletions":1,"changed_files":4}}