{"action":"created","comment":{"url":"https://api.github.com/repos/rackerlabs/craton/pulls/comments/67470104","id":67470104,"diff_hunk":"@@ -175,3 +176,12 @@ def test_create_host_returns_host_obj(self, mock_host):\n         resp = self.post('v1/hosts', data=data)\n         self.assertEqual(200, resp.status_code)\n         self.assertEqual(return_value, resp.json)\n+\n+\n+class APIV1AnsibleTest(APIV1Test):\n+    @mock.patch.object(sa_dbapi, 'hosts_get_by_region')\n+    @mock.patch.object(dbapi, 'ansible_inventory_get')","path":"craton/inventory/tests/unit/test_api.py","position":164,"original_position":164,"commit_id":"0a67d7cef8432be298fdd59afe256929dfc3ae4c","original_commit_id":"0a67d7cef8432be298fdd59afe256929dfc3ae4c","user":{"login":"sulochan","id":683492,"avatar_url":"https://avatars.githubusercontent.com/u/683492?v=3","gravatar_id":"","url":"https://api.github.com/users/sulochan","html_url":"https://github.com/sulochan","followers_url":"https://api.github.com/users/sulochan/followers","following_url":"https://api.github.com/users/sulochan/following{/other_user}","gists_url":"https://api.github.com/users/sulochan/gists{/gist_id}","starred_url":"https://api.github.com/users/sulochan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulochan/subscriptions","organizations_url":"https://api.github.com/users/sulochan/orgs","repos_url":"https://api.github.com/users/sulochan/repos","events_url":"https://api.github.com/users/sulochan/events{/privacy}","received_events_url":"https://api.github.com/users/sulochan/received_events","type":"User","site_admin":false},"body":"you dont need to path both.... the innermost dbapi patched will suffice here .. the external db.api simply returns what sqlalchemy returns.","created_at":"2016-06-17T07:31:35Z","updated_at":"2016-06-17T07:31:35Z","html_url":"https://github.com/rackerlabs/craton/pull/100#discussion_r67470104","pull_request_url":"https://api.github.com/repos/rackerlabs/craton/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/comments/67470104"},"html":{"href":"https://github.com/rackerlabs/craton/pull/100#discussion_r67470104"},"pull_request":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/rackerlabs/craton/pulls/100","id":74101481,"html_url":"https://github.com/rackerlabs/craton/pull/100","diff_url":"https://github.com/rackerlabs/craton/pull/100.diff","patch_url":"https://github.com/rackerlabs/craton/pull/100.patch","issue_url":"https://api.github.com/repos/rackerlabs/craton/issues/100","number":100,"state":"open","locked":false,"title":"WIP - do not merge - Add support for Ansible dynamic inventory from model","user":{"login":"jimbaker","id":160446,"avatar_url":"https://avatars.githubusercontent.com/u/160446?v=3","gravatar_id":"","url":"https://api.github.com/users/jimbaker","html_url":"https://github.com/jimbaker","followers_url":"https://api.github.com/users/jimbaker/followers","following_url":"https://api.github.com/users/jimbaker/following{/other_user}","gists_url":"https://api.github.com/users/jimbaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jimbaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimbaker/subscriptions","organizations_url":"https://api.github.com/users/jimbaker/orgs","repos_url":"https://api.github.com/users/jimbaker/repos","events_url":"https://api.github.com/users/jimbaker/events{/privacy}","received_events_url":"https://api.github.com/users/jimbaker/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-16T15:28:36Z","updated_at":"2016-06-17T07:31:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7b0cec9c748481f0fe453d865789f8ddd9112e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackerlabs/craton/pulls/100/commits","review_comments_url":"https://api.github.com/repos/rackerlabs/craton/pulls/100/comments","review_comment_url":"https://api.github.com/repos/rackerlabs/craton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rackerlabs/craton/issues/100/comments","statuses_url":"https://api.github.com/repos/rackerlabs/craton/statuses/0a67d7cef8432be298fdd59afe256929dfc3ae4c","head":{"label":"rackerlabs:craton-osa-#12","ref":"craton-osa-#12","sha":"0a67d7cef8432be298fdd59afe256929dfc3ae4c","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52381771,"name":"craton","full_name":"rackerlabs/craton","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/craton","description":"Fleet management for OpenStack, eventually to released as an OpenStack \"big tent\" project. Working name is \"craton\", which is used to describe the platforms underlying the stable parts of continents. Work started under OpenStack Innovation Center.","fork":false,"url":"https://api.github.com/repos/rackerlabs/craton","forks_url":"https://api.github.com/repos/rackerlabs/craton/forks","keys_url":"https://api.github.com/repos/rackerlabs/craton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/craton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/craton/teams","hooks_url":"https://api.github.com/repos/rackerlabs/craton/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/craton/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/craton/events","assignees_url":"https://api.github.com/repos/rackerlabs/craton/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/craton/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/craton/tags","blobs_url":"https://api.github.com/repos/rackerlabs/craton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/craton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/craton/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/craton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/craton/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/craton/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/craton/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/craton/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/craton/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/craton/subscription","commits_url":"https://api.github.com/repos/rackerlabs/craton/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/craton/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/craton/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/craton/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/craton/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/craton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/craton/merges","archive_url":"https://api.github.com/repos/rackerlabs/craton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/craton/downloads","issues_url":"https://api.github.com/repos/rackerlabs/craton/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/craton/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/craton/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/craton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/craton/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/craton/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/craton/deployments","created_at":"2016-02-23T18:26:23Z","updated_at":"2016-06-09T17:29:33Z","pushed_at":"2016-06-17T05:48:44Z","git_url":"git://github.com/rackerlabs/craton.git","ssh_url":"git@github.com:rackerlabs/craton.git","clone_url":"https://github.com/rackerlabs/craton.git","svn_url":"https://github.com/rackerlabs/craton","homepage":"","size":217,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":23,"forks":6,"open_issues":23,"watchers":7,"default_branch":"master"}},"base":{"label":"rackerlabs:master","ref":"master","sha":"0ecfbbe103537585fbb9cbe7318425ce5cdfdf09","user":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":52381771,"name":"craton","full_name":"rackerlabs/craton","owner":{"login":"rackerlabs","id":84293,"avatar_url":"https://avatars.githubusercontent.com/u/84293?v=3","gravatar_id":"","url":"https://api.github.com/users/rackerlabs","html_url":"https://github.com/rackerlabs","followers_url":"https://api.github.com/users/rackerlabs/followers","following_url":"https://api.github.com/users/rackerlabs/following{/other_user}","gists_url":"https://api.github.com/users/rackerlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/rackerlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackerlabs/subscriptions","organizations_url":"https://api.github.com/users/rackerlabs/orgs","repos_url":"https://api.github.com/users/rackerlabs/repos","events_url":"https://api.github.com/users/rackerlabs/events{/privacy}","received_events_url":"https://api.github.com/users/rackerlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackerlabs/craton","description":"Fleet management for OpenStack, eventually to released as an OpenStack \"big tent\" project. Working name is \"craton\", which is used to describe the platforms underlying the stable parts of continents. Work started under OpenStack Innovation Center.","fork":false,"url":"https://api.github.com/repos/rackerlabs/craton","forks_url":"https://api.github.com/repos/rackerlabs/craton/forks","keys_url":"https://api.github.com/repos/rackerlabs/craton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackerlabs/craton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackerlabs/craton/teams","hooks_url":"https://api.github.com/repos/rackerlabs/craton/hooks","issue_events_url":"https://api.github.com/repos/rackerlabs/craton/issues/events{/number}","events_url":"https://api.github.com/repos/rackerlabs/craton/events","assignees_url":"https://api.github.com/repos/rackerlabs/craton/assignees{/user}","branches_url":"https://api.github.com/repos/rackerlabs/craton/branches{/branch}","tags_url":"https://api.github.com/repos/rackerlabs/craton/tags","blobs_url":"https://api.github.com/repos/rackerlabs/craton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackerlabs/craton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackerlabs/craton/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackerlabs/craton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackerlabs/craton/statuses/{sha}","languages_url":"https://api.github.com/repos/rackerlabs/craton/languages","stargazers_url":"https://api.github.com/repos/rackerlabs/craton/stargazers","contributors_url":"https://api.github.com/repos/rackerlabs/craton/contributors","subscribers_url":"https://api.github.com/repos/rackerlabs/craton/subscribers","subscription_url":"https://api.github.com/repos/rackerlabs/craton/subscription","commits_url":"https://api.github.com/repos/rackerlabs/craton/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackerlabs/craton/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackerlabs/craton/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackerlabs/craton/issues/comments{/number}","contents_url":"https://api.github.com/repos/rackerlabs/craton/contents/{+path}","compare_url":"https://api.github.com/repos/rackerlabs/craton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackerlabs/craton/merges","archive_url":"https://api.github.com/repos/rackerlabs/craton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackerlabs/craton/downloads","issues_url":"https://api.github.com/repos/rackerlabs/craton/issues{/number}","pulls_url":"https://api.github.com/repos/rackerlabs/craton/pulls{/number}","milestones_url":"https://api.github.com/repos/rackerlabs/craton/milestones{/number}","notifications_url":"https://api.github.com/repos/rackerlabs/craton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackerlabs/craton/labels{/name}","releases_url":"https://api.github.com/repos/rackerlabs/craton/releases{/id}","deployments_url":"https://api.github.com/repos/rackerlabs/craton/deployments","created_at":"2016-02-23T18:26:23Z","updated_at":"2016-06-09T17:29:33Z","pushed_at":"2016-06-17T05:48:44Z","git_url":"git://github.com/rackerlabs/craton.git","ssh_url":"git@github.com:rackerlabs/craton.git","clone_url":"https://github.com/rackerlabs/craton.git","svn_url":"https://github.com/rackerlabs/craton","homepage":"","size":217,"stargazers_count":7,"watchers_count":7,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":23,"forks":6,"open_issues":23,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/100"},"html":{"href":"https://github.com/rackerlabs/craton/pull/100"},"issue":{"href":"https://api.github.com/repos/rackerlabs/craton/issues/100"},"comments":{"href":"https://api.github.com/repos/rackerlabs/craton/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rackerlabs/craton/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/rackerlabs/craton/statuses/0a67d7cef8432be298fdd59afe256929dfc3ae4c"}}}}
{"actor":{"display_login":"sulochan"}}