{"action":"created","comment":{"url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/comments/58534402","id":58534402,"diff_hunk":"@@ -0,0 +1,89 @@\n+from collections import namedtuple\n+from rest_client import ContainerClient\n+\n+\"\"\"\n+Related yaml structures:\n+\n+[cfme_data]\n+management_systems:\n+    hawkular:\n+        name: My hawkular\n+        type: hawkular\n+        hostname: 10.12.13.14\n+        port: 8080\n+        credentials: hawkular\n+        authenticate: true\n+        rest_protocol: http\n+\n+[credentials]\n+hawkular:\n+    username: admin\n+    password: secret\n+\"\"\"\n+\n+Feed = namedtuple('Feed', ['id', 'name', 'path'])\n+ResourceType = namedtuple('ResourceType', ['id', 'name', 'path'])\n+Server = namedtuple('Server', ['id', 'name', 'path'])\n+\n+\n+class Hawkular(object):\n+    \"\"\"Hawkular management system\n+\n+    Hawkular REST API method calls.\n+    Will be used by cfme_tests project to verify Hawkular content shown in CFME UI\n+\n+    Uses novaclient.\n+\n+    Args:\n+        username: The username to connect with.\n+        password: The password to connect with.","path":"mgmtsystem/hawkular.py","position":39,"original_position":39,"commit_id":"f97a2d15ef5fb41f85f0ebb7eb46263343318597","original_commit_id":"f97a2d15ef5fb41f85f0ebb7eb46263343318597","user":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"body":"will add the obvious ones","created_at":"2016-04-05T13:10:30Z","updated_at":"2016-04-05T13:10:30Z","html_url":"https://github.com/RedHatQE/mgmtsystem/pull/23#discussion_r58534402","pull_request_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/comments/58534402"},"html":{"href":"https://github.com/RedHatQE/mgmtsystem/pull/23#discussion_r58534402"},"pull_request":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23","id":65289932,"html_url":"https://github.com/RedHatQE/mgmtsystem/pull/23","diff_url":"https://github.com/RedHatQE/mgmtsystem/pull/23.diff","patch_url":"https://github.com/RedHatQE/mgmtsystem/pull/23.patch","issue_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/23","number":23,"state":"open","locked":false,"title":"Hawkular integration: Initial commit.","user":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"body":"Added new class for Hawkular REST API methods. Created new method in rest_client to return JSON only.","created_at":"2016-04-05T11:39:28Z","updated_at":"2016-04-05T13:10:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20a63fc49c18d331e781f4660700d954cc5924d2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23/commits","review_comments_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23/comments","review_comment_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/23/comments","statuses_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/statuses/f97a2d15ef5fb41f85f0ebb7eb46263343318597","head":{"label":"hhovsepy:hawkular_integration","ref":"hawkular_integration","sha":"f97a2d15ef5fb41f85f0ebb7eb46263343318597","user":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"repo":{"id":53131599,"name":"mgmtsystem","full_name":"hhovsepy/mgmtsystem","owner":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hhovsepy/mgmtsystem","description":"A base system for provider management","fork":true,"url":"https://api.github.com/repos/hhovsepy/mgmtsystem","forks_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/forks","keys_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/teams","hooks_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/hooks","issue_events_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/issues/events{/number}","events_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/events","assignees_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/assignees{/user}","branches_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/branches{/branch}","tags_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/tags","blobs_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/statuses/{sha}","languages_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/languages","stargazers_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/stargazers","contributors_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/contributors","subscribers_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/subscribers","subscription_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/subscription","commits_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/contents/{+path}","compare_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/merges","archive_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/downloads","issues_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/issues{/number}","pulls_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/pulls{/number}","milestones_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/milestones{/number}","notifications_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/labels{/name}","releases_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/releases{/id}","deployments_url":"https://api.github.com/repos/hhovsepy/mgmtsystem/deployments","created_at":"2016-03-04T11:42:21Z","updated_at":"2016-03-04T11:42:21Z","pushed_at":"2016-04-05T12:41:40Z","git_url":"git://github.com/hhovsepy/mgmtsystem.git","ssh_url":"git@github.com:hhovsepy/mgmtsystem.git","clone_url":"https://github.com/hhovsepy/mgmtsystem.git","svn_url":"https://github.com/hhovsepy/mgmtsystem","homepage":"","size":141,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"RedHatQE:master","ref":"master","sha":"69a8fc3bf8a7280f7cf3a5e264ef89ccd746845f","user":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"repo":{"id":41742770,"name":"mgmtsystem","full_name":"RedHatQE/mgmtsystem","owner":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RedHatQE/mgmtsystem","description":"A base system for provider management","fork":false,"url":"https://api.github.com/repos/RedHatQE/mgmtsystem","forks_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/forks","keys_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/teams","hooks_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/hooks","issue_events_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/events{/number}","events_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/events","assignees_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/assignees{/user}","branches_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/branches{/branch}","tags_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/tags","blobs_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/statuses/{sha}","languages_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/languages","stargazers_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/stargazers","contributors_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/contributors","subscribers_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/subscribers","subscription_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/subscription","commits_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/contents/{+path}","compare_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/merges","archive_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/downloads","issues_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues{/number}","pulls_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls{/number}","milestones_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/milestones{/number}","notifications_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/labels{/name}","releases_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/releases{/id}","deployments_url":"https://api.github.com/repos/RedHatQE/mgmtsystem/deployments","created_at":"2015-09-01T14:16:00Z","updated_at":"2016-03-04T12:37:29Z","pushed_at":"2016-04-05T12:52:45Z","git_url":"git://github.com/RedHatQE/mgmtsystem.git","ssh_url":"git@github.com:RedHatQE/mgmtsystem.git","clone_url":"https://github.com/RedHatQE/mgmtsystem.git","svn_url":"https://github.com/RedHatQE/mgmtsystem","homepage":"","size":148,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":1,"forks":13,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23"},"html":{"href":"https://github.com/RedHatQE/mgmtsystem/pull/23"},"issue":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/23"},"comments":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/RedHatQE/mgmtsystem/statuses/f97a2d15ef5fb41f85f0ebb7eb46263343318597"}}}}