{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/76530340","id":76530340,"diff_hunk":"@@ -155,3 +153,87 @@ def search_container(self, cr_name, container_name):\n             locators['resource.filter_containers'], container_name)\n         strategy, value = locators['resource.select_container']\n         return self.wait_until_element((strategy, value % container_name))\n+\n+    def list_vms(self, res_name):\n+        \"\"\"Lists vms of a particular compute resource.\n+\n+        Note: Currently lists only vms that show up on the first page.\n+        \"\"\"\n+        self.click(self.search(res_name))\n+        self.click(tab_locators['resource.tab_virtual_machines'])\n+        vm_elements = self.find_elements(locators['resource.vm_list'])\n+        return [vm.text for vm in vm_elements]\n+\n+    def add_image(self, res_name, parameter_list):\n+        \"\"\"Adds an image to a compute resource.\"\"\"\n+        if parameter_list is None:\n+            return\n+        self.click(self.search(res_name))\n+        self.click(locators['resource.image_add'])\n+        self.wait_until_element(locators['resource.image_name'])\n+        for parameter_name, parameter_value, parameter_type in parameter_list:\n+            param_locator = '.'.join((\n+                'resource.image',\n+                (parameter_name.lower()).replace(' ', '_')\n+            ))\n+            if parameter_type == 'field':","path":"robottelo/ui/computeresource.py","position":64,"original_position":64,"commit_id":"b69f44c23cc7b43e7741d4a30c7ee6b6b7349747","original_commit_id":"b69f44c23cc7b43e7741d4a30c7ee6b6b7349747","user":{"login":"oshtaier","id":10895065,"avatar_url":"https://avatars.githubusercontent.com/u/10895065?v=3","gravatar_id":"","url":"https://api.github.com/users/oshtaier","html_url":"https://github.com/oshtaier","followers_url":"https://api.github.com/users/oshtaier/followers","following_url":"https://api.github.com/users/oshtaier/following{/other_user}","gists_url":"https://api.github.com/users/oshtaier/gists{/gist_id}","starred_url":"https://api.github.com/users/oshtaier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oshtaier/subscriptions","organizations_url":"https://api.github.com/users/oshtaier/orgs","repos_url":"https://api.github.com/users/oshtaier/repos","events_url":"https://api.github.com/users/oshtaier/events{/privacy}","received_events_url":"https://api.github.com/users/oshtaier/received_events","type":"User","site_admin":false},"body":"It doesn't seem that we need `parameter_type` logic anymore as we have `assign_value` method, so next statement should work for us:\r\n`self.assign_value(locators[param_locator], parameter_value)`","created_at":"2016-08-28T11:32:02Z","updated_at":"2016-08-28T11:32:02Z","html_url":"https://github.com/SatelliteQE/robottelo/pull/3428#discussion_r76530340","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/76530340"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/3428#discussion_r76530340"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428","id":68851121,"html_url":"https://github.com/SatelliteQE/robottelo/pull/3428","diff_url":"https://github.com/SatelliteQE/robottelo/pull/3428.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/3428.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/3428","number":3428,"state":"open","locked":false,"title":"Fix pr3090 / Adds support for compute-resources","user":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"body":"Pending: Need to add the configuration checks.\r\n\r\n\r\nThis is a very old PR and has code which was written before we re-factored a lot of stuff.\r\nSo the plan is to split this up into to 2 PR's to simplify this PR.\r\na) First CRUD PR: PR with REBASE, merge_conflicts, locators clean up, clean up of compute_resource CRUD functions and addressing the comments for the same.\r\nb) Second RHCI tests: PR with rhci/tests, removal of ddt, data and implement subTest and address other comments for the same.","created_at":"2016-05-04T12:08:09Z","updated_at":"2016-08-28T11:32:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3dac0e3fe3fa805f28dbc325b869b72ba7fa06c3","assignee":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"assignees":[{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/3428/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/b69f44c23cc7b43e7741d4a30c7ee6b6b7349747","head":{"label":"kbidarkar:fix-pr3090","ref":"fix-pr3090","sha":"b69f44c23cc7b43e7741d4a30c7ee6b6b7349747","user":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"repo":{"id":14494308,"name":"robottelo","full_name":"kbidarkar/robottelo","owner":{"login":"kbidarkar","id":373096,"avatar_url":"https://avatars.githubusercontent.com/u/373096?v=3","gravatar_id":"","url":"https://api.github.com/users/kbidarkar","html_url":"https://github.com/kbidarkar","followers_url":"https://api.github.com/users/kbidarkar/followers","following_url":"https://api.github.com/users/kbidarkar/following{/other_user}","gists_url":"https://api.github.com/users/kbidarkar/gists{/gist_id}","starred_url":"https://api.github.com/users/kbidarkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbidarkar/subscriptions","organizations_url":"https://api.github.com/users/kbidarkar/orgs","repos_url":"https://api.github.com/users/kbidarkar/repos","events_url":"https://api.github.com/users/kbidarkar/events{/privacy}","received_events_url":"https://api.github.com/users/kbidarkar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbidarkar/robottelo","description":"An automation testing framework for the Katello project.","fork":true,"url":"https://api.github.com/repos/kbidarkar/robottelo","forks_url":"https://api.github.com/repos/kbidarkar/robottelo/forks","keys_url":"https://api.github.com/repos/kbidarkar/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbidarkar/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbidarkar/robottelo/teams","hooks_url":"https://api.github.com/repos/kbidarkar/robottelo/hooks","issue_events_url":"https://api.github.com/repos/kbidarkar/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/kbidarkar/robottelo/events","assignees_url":"https://api.github.com/repos/kbidarkar/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/kbidarkar/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/kbidarkar/robottelo/tags","blobs_url":"https://api.github.com/repos/kbidarkar/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbidarkar/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbidarkar/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbidarkar/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbidarkar/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/kbidarkar/robottelo/languages","stargazers_url":"https://api.github.com/repos/kbidarkar/robottelo/stargazers","contributors_url":"https://api.github.com/repos/kbidarkar/robottelo/contributors","subscribers_url":"https://api.github.com/repos/kbidarkar/robottelo/subscribers","subscription_url":"https://api.github.com/repos/kbidarkar/robottelo/subscription","commits_url":"https://api.github.com/repos/kbidarkar/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbidarkar/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbidarkar/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbidarkar/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbidarkar/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/kbidarkar/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbidarkar/robottelo/merges","archive_url":"https://api.github.com/repos/kbidarkar/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbidarkar/robottelo/downloads","issues_url":"https://api.github.com/repos/kbidarkar/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/kbidarkar/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/kbidarkar/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/kbidarkar/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbidarkar/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/kbidarkar/robottelo/releases{/id}","deployments_url":"https://api.github.com/repos/kbidarkar/robottelo/deployments","created_at":"2013-11-18T14:14:19Z","updated_at":"2015-02-02T14:37:47Z","pushed_at":"2016-08-26T17:48:15Z","git_url":"git://github.com/kbidarkar/robottelo.git","ssh_url":"git@github.com:kbidarkar/robottelo.git","clone_url":"https://github.com/kbidarkar/robottelo.git","svn_url":"https://github.com/kbidarkar/robottelo","homepage":null,"size":13160,"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":"SatelliteQE:master","ref":"master","sha":"6a70ba1795e175f6f2811cd8742335fe95770e2c","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"repo":{"id":4000279,"name":"robottelo","full_name":"SatelliteQE/robottelo","owner":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars.githubusercontent.com/u/8754276?v=3","gravatar_id":"","url":"https://api.github.com/users/SatelliteQE","html_url":"https://github.com/SatelliteQE","followers_url":"https://api.github.com/users/SatelliteQE/followers","following_url":"https://api.github.com/users/SatelliteQE/following{/other_user}","gists_url":"https://api.github.com/users/SatelliteQE/gists{/gist_id}","starred_url":"https://api.github.com/users/SatelliteQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SatelliteQE/subscriptions","organizations_url":"https://api.github.com/users/SatelliteQE/orgs","repos_url":"https://api.github.com/users/SatelliteQE/repos","events_url":"https://api.github.com/users/SatelliteQE/events{/privacy}","received_events_url":"https://api.github.com/users/SatelliteQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SatelliteQE/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":false,"url":"https://api.github.com/repos/SatelliteQE/robottelo","forks_url":"https://api.github.com/repos/SatelliteQE/robottelo/forks","keys_url":"https://api.github.com/repos/SatelliteQE/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SatelliteQE/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SatelliteQE/robottelo/teams","hooks_url":"https://api.github.com/repos/SatelliteQE/robottelo/hooks","issue_events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/events","assignees_url":"https://api.github.com/repos/SatelliteQE/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/SatelliteQE/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/tags","blobs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/SatelliteQE/robottelo/languages","stargazers_url":"https://api.github.com/repos/SatelliteQE/robottelo/stargazers","contributors_url":"https://api.github.com/repos/SatelliteQE/robottelo/contributors","subscribers_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscribers","subscription_url":"https://api.github.com/repos/SatelliteQE/robottelo/subscription","commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SatelliteQE/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/SatelliteQE/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SatelliteQE/robottelo/merges","archive_url":"https://api.github.com/repos/SatelliteQE/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SatelliteQE/robottelo/downloads","issues_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/SatelliteQE/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/SatelliteQE/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/SatelliteQE/robottelo/releases{/id}","deployments_url":"https://api.github.com/repos/SatelliteQE/robottelo/deployments","created_at":"2012-04-12T01:36:39Z","updated_at":"2016-08-22T09:17:29Z","pushed_at":"2016-08-26T17:48:16Z","git_url":"git://github.com/SatelliteQE/robottelo.git","ssh_url":"git@github.com:SatelliteQE/robottelo.git","clone_url":"https://github.com/SatelliteQE/robottelo.git","svn_url":"https://github.com/SatelliteQE/robottelo","homepage":"","size":14237,"stargazers_count":25,"watchers_count":25,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":45,"mirror_url":null,"open_issues_count":160,"forks":45,"open_issues":160,"watchers":25,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/3428"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/3428"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/3428/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/3428/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/b69f44c23cc7b43e7741d4a30c7ee6b6b7349747"}}}}
{"actor":{"display_login":"oshtaier"}}