{"action":"created","comment":{"url":"https://api.github.com/repos/sheepdog/cinder/pulls/comments/32389301","id":32389301,"diff_hunk":"@@ -103,17 +106,50 @@ def fake_stats(*args):\n         self.assertDictMatch(expected, actual)\n \n     def test_check_for_setup_error_0_5(self):\n-        def fake_stats(*args):\n+        def fake_stats(*command, **kwargs):\n             return COLLIE_CLUSTER_INFO_0_5, ''\n-        self.stubs.Set(self.driver, '_execute', fake_stats)\n+        self.stubs.Set(self.driver, '_command_execute', fake_stats)\n         self.driver.check_for_setup_error()\n \n     def test_check_for_setup_error_0_6(self):\n-        def fake_stats(*args):\n+        def fake_stats(*command, **kwargs):\n             return COLLIE_CLUSTER_INFO_0_6, ''\n-        self.stubs.Set(self.driver, '_execute', fake_stats)\n+        self.stubs.Set(self.driver, '_command_execute', fake_stats)\n         self.driver.check_for_setup_error()\n \n+    def test_check_for_setup_error_waiting_format(self):\n+        def fake_stats(*command, **kwargs):\n+            return COLLIE_CLUSTER_INFO_WAITING_FORMAT, ''\n+        self.stubs.Set(self.driver, '_command_execute', fake_stats)\n+        self.assertRaises(exception.VolumeBackendAPIException,\n+            self.driver.check_for_setup_error)\n+\n+    def test_check_for_setup_error_cmd_notfound(self):\n+        def fake_stats(*command, **kwargs):\n+            raise exception.SheepdogCmdException(message='message',\n+                    cmd='command', code=127, out='stdout', err='stderr')","path":"cinder/tests/unit/test_sheepdog.py","position":39,"original_position":39,"commit_id":"306a57ba5cbb834917a6b0fc75005ec37a4158ad","original_commit_id":"306a57ba5cbb834917a6b0fc75005ec37a4158ad","user":{"login":"saeki-masaki","id":10970875,"avatar_url":"https://avatars.githubusercontent.com/u/10970875?v=3","gravatar_id":"","url":"https://api.github.com/users/saeki-masaki","html_url":"https://github.com/saeki-masaki","followers_url":"https://api.github.com/users/saeki-masaki/followers","following_url":"https://api.github.com/users/saeki-masaki/following{/other_user}","gists_url":"https://api.github.com/users/saeki-masaki/gists{/gist_id}","starred_url":"https://api.github.com/users/saeki-masaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeki-masaki/subscriptions","organizations_url":"https://api.github.com/users/saeki-masaki/orgs","repos_url":"https://api.github.com/users/saeki-masaki/repos","events_url":"https://api.github.com/users/saeki-masaki/events{/privacy}","received_events_url":"https://api.github.com/users/saeki-masaki/received_events","type":"User","site_admin":false},"body":"fake_stats = mock.Mock(side_effect=exception.SheepdogCmdException(message='message', cmd='command', code=127, out='stdout', err='stderr'))","created_at":"2015-06-15T02:50:46Z","updated_at":"2015-06-15T02:50:46Z","html_url":"https://github.com/sheepdog/cinder/pull/3#discussion_r32389301","pull_request_url":"https://api.github.com/repos/sheepdog/cinder/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/comments/32389301"},"html":{"href":"https://github.com/sheepdog/cinder/pull/3#discussion_r32389301"},"pull_request":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sheepdog/cinder/pulls/3","id":37124608,"html_url":"https://github.com/sheepdog/cinder/pull/3","diff_url":"https://github.com/sheepdog/cinder/pull/3.diff","patch_url":"https://github.com/sheepdog/cinder/pull/3.patch","issue_url":"https://api.github.com/repos/sheepdog/cinder/issues/3","number":3,"state":"open","locked":false,"title":"Modify error handling logic.","user":{"login":"y-naga","id":12693164,"avatar_url":"https://avatars.githubusercontent.com/u/12693164?v=3","gravatar_id":"","url":"https://api.github.com/users/y-naga","html_url":"https://github.com/y-naga","followers_url":"https://api.github.com/users/y-naga/followers","following_url":"https://api.github.com/users/y-naga/following{/other_user}","gists_url":"https://api.github.com/users/y-naga/gists{/gist_id}","starred_url":"https://api.github.com/users/y-naga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-naga/subscriptions","organizations_url":"https://api.github.com/users/y-naga/orgs","repos_url":"https://api.github.com/users/y-naga/repos","events_url":"https://api.github.com/users/y-naga/events{/privacy}","received_events_url":"https://api.github.com/users/y-naga/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-08T06:16:11Z","updated_at":"2015-06-15T02:50:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f02a984498cdd7babd5ef0281c2e662c8b04e53","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sheepdog/cinder/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sheepdog/cinder/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sheepdog/cinder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sheepdog/cinder/issues/3/comments","statuses_url":"https://api.github.com/repos/sheepdog/cinder/statuses/306a57ba5cbb834917a6b0fc75005ec37a4158ad","head":{"label":"y-naga:sheepdog-devel","ref":"sheepdog-devel","sha":"306a57ba5cbb834917a6b0fc75005ec37a4158ad","user":{"login":"y-naga","id":12693164,"avatar_url":"https://avatars.githubusercontent.com/u/12693164?v=3","gravatar_id":"","url":"https://api.github.com/users/y-naga","html_url":"https://github.com/y-naga","followers_url":"https://api.github.com/users/y-naga/followers","following_url":"https://api.github.com/users/y-naga/following{/other_user}","gists_url":"https://api.github.com/users/y-naga/gists{/gist_id}","starred_url":"https://api.github.com/users/y-naga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-naga/subscriptions","organizations_url":"https://api.github.com/users/y-naga/orgs","repos_url":"https://api.github.com/users/y-naga/repos","events_url":"https://api.github.com/users/y-naga/events{/privacy}","received_events_url":"https://api.github.com/users/y-naga/received_events","type":"User","site_admin":false},"repo":{"id":36648463,"name":"cinder","full_name":"y-naga/cinder","owner":{"login":"y-naga","id":12693164,"avatar_url":"https://avatars.githubusercontent.com/u/12693164?v=3","gravatar_id":"","url":"https://api.github.com/users/y-naga","html_url":"https://github.com/y-naga","followers_url":"https://api.github.com/users/y-naga/followers","following_url":"https://api.github.com/users/y-naga/following{/other_user}","gists_url":"https://api.github.com/users/y-naga/gists{/gist_id}","starred_url":"https://api.github.com/users/y-naga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-naga/subscriptions","organizations_url":"https://api.github.com/users/y-naga/orgs","repos_url":"https://api.github.com/users/y-naga/repos","events_url":"https://api.github.com/users/y-naga/events{/privacy}","received_events_url":"https://api.github.com/users/y-naga/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/y-naga/cinder","description":"","fork":true,"url":"https://api.github.com/repos/y-naga/cinder","forks_url":"https://api.github.com/repos/y-naga/cinder/forks","keys_url":"https://api.github.com/repos/y-naga/cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/y-naga/cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/y-naga/cinder/teams","hooks_url":"https://api.github.com/repos/y-naga/cinder/hooks","issue_events_url":"https://api.github.com/repos/y-naga/cinder/issues/events{/number}","events_url":"https://api.github.com/repos/y-naga/cinder/events","assignees_url":"https://api.github.com/repos/y-naga/cinder/assignees{/user}","branches_url":"https://api.github.com/repos/y-naga/cinder/branches{/branch}","tags_url":"https://api.github.com/repos/y-naga/cinder/tags","blobs_url":"https://api.github.com/repos/y-naga/cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/y-naga/cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/y-naga/cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/y-naga/cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/y-naga/cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/y-naga/cinder/languages","stargazers_url":"https://api.github.com/repos/y-naga/cinder/stargazers","contributors_url":"https://api.github.com/repos/y-naga/cinder/contributors","subscribers_url":"https://api.github.com/repos/y-naga/cinder/subscribers","subscription_url":"https://api.github.com/repos/y-naga/cinder/subscription","commits_url":"https://api.github.com/repos/y-naga/cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/y-naga/cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/y-naga/cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/y-naga/cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/y-naga/cinder/contents/{+path}","compare_url":"https://api.github.com/repos/y-naga/cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/y-naga/cinder/merges","archive_url":"https://api.github.com/repos/y-naga/cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/y-naga/cinder/downloads","issues_url":"https://api.github.com/repos/y-naga/cinder/issues{/number}","pulls_url":"https://api.github.com/repos/y-naga/cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/y-naga/cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/y-naga/cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/y-naga/cinder/labels{/name}","releases_url":"https://api.github.com/repos/y-naga/cinder/releases{/id}","created_at":"2015-06-01T08:42:38Z","updated_at":"2015-06-01T08:42:41Z","pushed_at":"2015-06-15T01:58:05Z","git_url":"git://github.com/y-naga/cinder.git","ssh_url":"git@github.com:y-naga/cinder.git","clone_url":"https://github.com/y-naga/cinder.git","svn_url":"https://github.com/y-naga/cinder","homepage":"http://openstack.org","size":37883,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"sheepdog:master","ref":"master","sha":"8ae4bdc8f3d04e47a839f8187dbd955ab2528189","user":{"login":"sheepdog","id":4846685,"avatar_url":"https://avatars.githubusercontent.com/u/4846685?v=3","gravatar_id":"","url":"https://api.github.com/users/sheepdog","html_url":"https://github.com/sheepdog","followers_url":"https://api.github.com/users/sheepdog/followers","following_url":"https://api.github.com/users/sheepdog/following{/other_user}","gists_url":"https://api.github.com/users/sheepdog/gists{/gist_id}","starred_url":"https://api.github.com/users/sheepdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheepdog/subscriptions","organizations_url":"https://api.github.com/users/sheepdog/orgs","repos_url":"https://api.github.com/users/sheepdog/repos","events_url":"https://api.github.com/users/sheepdog/events{/privacy}","received_events_url":"https://api.github.com/users/sheepdog/received_events","type":"Organization","site_admin":false},"repo":{"id":36645800,"name":"cinder","full_name":"sheepdog/cinder","owner":{"login":"sheepdog","id":4846685,"avatar_url":"https://avatars.githubusercontent.com/u/4846685?v=3","gravatar_id":"","url":"https://api.github.com/users/sheepdog","html_url":"https://github.com/sheepdog","followers_url":"https://api.github.com/users/sheepdog/followers","following_url":"https://api.github.com/users/sheepdog/following{/other_user}","gists_url":"https://api.github.com/users/sheepdog/gists{/gist_id}","starred_url":"https://api.github.com/users/sheepdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sheepdog/subscriptions","organizations_url":"https://api.github.com/users/sheepdog/orgs","repos_url":"https://api.github.com/users/sheepdog/repos","events_url":"https://api.github.com/users/sheepdog/events{/privacy}","received_events_url":"https://api.github.com/users/sheepdog/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sheepdog/cinder","description":"","fork":true,"url":"https://api.github.com/repos/sheepdog/cinder","forks_url":"https://api.github.com/repos/sheepdog/cinder/forks","keys_url":"https://api.github.com/repos/sheepdog/cinder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sheepdog/cinder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sheepdog/cinder/teams","hooks_url":"https://api.github.com/repos/sheepdog/cinder/hooks","issue_events_url":"https://api.github.com/repos/sheepdog/cinder/issues/events{/number}","events_url":"https://api.github.com/repos/sheepdog/cinder/events","assignees_url":"https://api.github.com/repos/sheepdog/cinder/assignees{/user}","branches_url":"https://api.github.com/repos/sheepdog/cinder/branches{/branch}","tags_url":"https://api.github.com/repos/sheepdog/cinder/tags","blobs_url":"https://api.github.com/repos/sheepdog/cinder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sheepdog/cinder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sheepdog/cinder/git/refs{/sha}","trees_url":"https://api.github.com/repos/sheepdog/cinder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sheepdog/cinder/statuses/{sha}","languages_url":"https://api.github.com/repos/sheepdog/cinder/languages","stargazers_url":"https://api.github.com/repos/sheepdog/cinder/stargazers","contributors_url":"https://api.github.com/repos/sheepdog/cinder/contributors","subscribers_url":"https://api.github.com/repos/sheepdog/cinder/subscribers","subscription_url":"https://api.github.com/repos/sheepdog/cinder/subscription","commits_url":"https://api.github.com/repos/sheepdog/cinder/commits{/sha}","git_commits_url":"https://api.github.com/repos/sheepdog/cinder/git/commits{/sha}","comments_url":"https://api.github.com/repos/sheepdog/cinder/comments{/number}","issue_comment_url":"https://api.github.com/repos/sheepdog/cinder/issues/comments{/number}","contents_url":"https://api.github.com/repos/sheepdog/cinder/contents/{+path}","compare_url":"https://api.github.com/repos/sheepdog/cinder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sheepdog/cinder/merges","archive_url":"https://api.github.com/repos/sheepdog/cinder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sheepdog/cinder/downloads","issues_url":"https://api.github.com/repos/sheepdog/cinder/issues{/number}","pulls_url":"https://api.github.com/repos/sheepdog/cinder/pulls{/number}","milestones_url":"https://api.github.com/repos/sheepdog/cinder/milestones{/number}","notifications_url":"https://api.github.com/repos/sheepdog/cinder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sheepdog/cinder/labels{/name}","releases_url":"https://api.github.com/repos/sheepdog/cinder/releases{/id}","created_at":"2015-06-01T07:50:20Z","updated_at":"2015-06-01T07:50:25Z","pushed_at":"2015-06-15T01:58:06Z","git_url":"git://github.com/sheepdog/cinder.git","ssh_url":"git@github.com:sheepdog/cinder.git","clone_url":"https://github.com/sheepdog/cinder.git","svn_url":"https://github.com/sheepdog/cinder","homepage":"http://openstack.org","size":37802,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/3"},"html":{"href":"https://github.com/sheepdog/cinder/pull/3"},"issue":{"href":"https://api.github.com/repos/sheepdog/cinder/issues/3"},"comments":{"href":"https://api.github.com/repos/sheepdog/cinder/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sheepdog/cinder/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sheepdog/cinder/statuses/306a57ba5cbb834917a6b0fc75005ec37a4158ad"}}}}