{"action":"created","comment":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/54883085","id":54883085,"diff_hunk":"@@ -39,37 +41,48 @@ def __init__(self, remote):\n         self.remote = remote\n         super(CLICLient, self).__init__()\n \n-    def build_command(self, action, flags='', params=''):\n-        return ' '.join([self.command, flags, action, params])\n+    def build_command(self, action, flags='', params='', prefix=''):\n+        return u' '.join([prefix, self.command, flags, action, params])\n \n-    def execute(self, action, flags='', params='', fail_ok=False,\n+    def __call__(self, action, flags='', params='', prefix='', fail_ok=False,\n                 merge_stderr=False):\n-        command = self.build_command(action, flags, params)\n+        command = self.build_command(action, flags, params, prefix)\n         return os_execute(self.remote, command, fail_ok=fail_ok,\n                           merge_stderr=merge_stderr)\n \n     def details(self, output):\n         return {x['Field']: x['Value'] for x in json.loads(output)}\n \n+    def details_table(self, output):\n+        return parser.listing(output)\n+\n \n class OpenStack(CLICLient):\n     command = 'openstack'\n \n     def project_create(self, name):\n-        output = self.execute('project create',\n-                              params='{} -f json'.format(name))\n+        output = self('project create', params='{} -f json'.format(name))\n         return self.details(output)\n \n     def project_delete(self, name):\n-        return self.execute('project delete', params=name)\n+        return self('project delete', params=name)\n \n     def user_create(self, name, password, project=None):\n         params = '{name} --password {password} -f json'.format(\n             name=name, password=password)\n         if project is not None:\n             params += ' --project {}'.format(project)\n-        output = self.execute('user create', params=params)\n+        output = self('user create', params=params)\n         return self.details(output)\n \n     def user_delete(self, name):\n-        return self.execute('user delete', params=name)\n+        return self('user delete', params=name)\n+\n+\n+class Glance(CLICLient):","path":"mos_tests/functions/os_cli.py","position":null,"original_position":69,"commit_id":"640320b4e617a5f7eb6e1a026b2df79ff6f22180","original_commit_id":"029b14c844c625b96a58d629c3595a5cf5db1d80","user":{"login":"AlexanderKoryagin","id":8480964,"avatar_url":"https://avatars.githubusercontent.com/u/8480964?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKoryagin","html_url":"https://github.com/AlexanderKoryagin","followers_url":"https://api.github.com/users/AlexanderKoryagin/followers","following_url":"https://api.github.com/users/AlexanderKoryagin/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKoryagin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKoryagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKoryagin/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKoryagin/orgs","repos_url":"https://api.github.com/users/AlexanderKoryagin/repos","events_url":"https://api.github.com/users/AlexanderKoryagin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKoryagin/received_events","type":"User","site_admin":false},"body":"This test was based on commit with changes for glance test","created_at":"2016-03-03T14:05:27Z","updated_at":"2016-03-03T14:05:27Z","html_url":"https://github.com/Mirantis/mos-integration-tests/pull/169#discussion_r54883085","pull_request_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments/54883085"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/169#discussion_r54883085"},"pull_request":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169","id":61216606,"html_url":"https://github.com/Mirantis/mos-integration-tests/pull/169","diff_url":"https://github.com/Mirantis/mos-integration-tests/pull/169.diff","patch_url":"https://github.com/Mirantis/mos-integration-tests/pull/169.patch","issue_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/169","number":169,"state":"open","locked":false,"title":"Murano CLI: User with permissions can set 'unshared' Murano package to 'shared' (QA-1572,QA-1570)","user":{"login":"AlexanderKoryagin","id":8480964,"avatar_url":"https://avatars.githubusercontent.com/u/8480964?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKoryagin","html_url":"https://github.com/AlexanderKoryagin","followers_url":"https://api.github.com/users/AlexanderKoryagin/followers","following_url":"https://api.github.com/users/AlexanderKoryagin/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKoryagin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKoryagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKoryagin/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKoryagin/orgs","repos_url":"https://api.github.com/users/AlexanderKoryagin/repos","events_url":"https://api.github.com/users/AlexanderKoryagin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKoryagin/received_events","type":"User","site_admin":false},"body":"Test for QA-1572, QA-1570","created_at":"2016-03-01T09:49:33Z","updated_at":"2016-03-03T14:05:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea84cfc00d276c9a193253ea48c9becd161cb842","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169/commits","review_comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169/comments","review_comment_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/169/comments","statuses_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/640320b4e617a5f7eb6e1a026b2df79ff6f22180","head":{"label":"AlexanderKoryagin:master","ref":"master","sha":"640320b4e617a5f7eb6e1a026b2df79ff6f22180","user":{"login":"AlexanderKoryagin","id":8480964,"avatar_url":"https://avatars.githubusercontent.com/u/8480964?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKoryagin","html_url":"https://github.com/AlexanderKoryagin","followers_url":"https://api.github.com/users/AlexanderKoryagin/followers","following_url":"https://api.github.com/users/AlexanderKoryagin/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKoryagin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKoryagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKoryagin/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKoryagin/orgs","repos_url":"https://api.github.com/users/AlexanderKoryagin/repos","events_url":"https://api.github.com/users/AlexanderKoryagin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKoryagin/received_events","type":"User","site_admin":false},"repo":{"id":52787979,"name":"mos-integration-tests","full_name":"AlexanderKoryagin/mos-integration-tests","owner":{"login":"AlexanderKoryagin","id":8480964,"avatar_url":"https://avatars.githubusercontent.com/u/8480964?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKoryagin","html_url":"https://github.com/AlexanderKoryagin","followers_url":"https://api.github.com/users/AlexanderKoryagin/followers","following_url":"https://api.github.com/users/AlexanderKoryagin/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKoryagin/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKoryagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKoryagin/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKoryagin/orgs","repos_url":"https://api.github.com/users/AlexanderKoryagin/repos","events_url":"https://api.github.com/users/AlexanderKoryagin/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKoryagin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderKoryagin/mos-integration-tests","description":"","fork":true,"url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests","forks_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/forks","keys_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/teams","hooks_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/hooks","issue_events_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/events","assignees_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/tags","blobs_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/languages","stargazers_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/stargazers","contributors_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/contributors","subscribers_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/subscribers","subscription_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/subscription","commits_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/merges","archive_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/downloads","issues_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/releases{/id}","deployments_url":"https://api.github.com/repos/AlexanderKoryagin/mos-integration-tests/deployments","created_at":"2016-02-29T12:02:08Z","updated_at":"2016-02-29T12:02:09Z","pushed_at":"2016-03-03T14:03:21Z","git_url":"git://github.com/AlexanderKoryagin/mos-integration-tests.git","ssh_url":"git@github.com:AlexanderKoryagin/mos-integration-tests.git","clone_url":"https://github.com/AlexanderKoryagin/mos-integration-tests.git","svn_url":"https://github.com/AlexanderKoryagin/mos-integration-tests","homepage":null,"size":841,"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":"Mirantis:master","ref":"master","sha":"236194546c56ad7ab03213a9bbd4992cf98cef5b","user":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"repo":{"id":47408971,"name":"mos-integration-tests","full_name":"Mirantis/mos-integration-tests","owner":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mirantis/mos-integration-tests","description":"","fork":false,"url":"https://api.github.com/repos/Mirantis/mos-integration-tests","forks_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/forks","keys_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/teams","hooks_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/hooks","issue_events_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/events{/number}","events_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/events","assignees_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/assignees{/user}","branches_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/branches{/branch}","tags_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/tags","blobs_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/languages","stargazers_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/stargazers","contributors_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/contributors","subscribers_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/subscribers","subscription_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/subscription","commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/contents/{+path}","compare_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/merges","archive_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/downloads","issues_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues{/number}","pulls_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/labels{/name}","releases_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/releases{/id}","deployments_url":"https://api.github.com/repos/Mirantis/mos-integration-tests/deployments","created_at":"2015-12-04T14:33:39Z","updated_at":"2016-02-25T20:56:41Z","pushed_at":"2016-03-03T14:03:24Z","git_url":"git://github.com/Mirantis/mos-integration-tests.git","ssh_url":"git@github.com:Mirantis/mos-integration-tests.git","clone_url":"https://github.com/Mirantis/mos-integration-tests.git","svn_url":"https://github.com/Mirantis/mos-integration-tests","homepage":null,"size":903,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":3,"forks":12,"open_issues":3,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169"},"html":{"href":"https://github.com/Mirantis/mos-integration-tests/pull/169"},"issue":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/169"},"comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/Mirantis/mos-integration-tests/statuses/640320b4e617a5f7eb6e1a026b2df79ff6f22180"}}}}