{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/151455108","pull_request_review_id":77164045,"id":151455108,"diff_hunk":"@@ -579,3 +584,65 @@ def test_positive_bulk_remove_subscriptions(self):\n \n         :CaseLevel: System\n         \"\"\"\n+\n+    @skip_if_not_set('clients', 'fake_manifest', 'compute_resources')\n+    @tier3\n+    @upgrade\n+    def test_positive_virt_who_hypervisor_subscription_status(self):\n+        \"\"\"Check that virt-who hypervisor shows the right subscription status\n+        without and with attached subscription.\n+\n+        :id: 8b2cc5d6-ac85-463f-a973-f4818c55fb37\n+\n+        :expectedresults:\n+            1. With subscription not attached, Subscription status is\n+               represented by a yellow icon.\n+            2. With attached subscription, Subscription status is represented\n+               by a green icon.\n+\n+        :BZ: 1336924\n+\n+        :CaseLevel: System\n+        \"\"\"\n+        org = entities.Organization().create()\n+        lce = entities.LifecycleEnvironment(organization=org).create()\n+        provisioning_server = settings.compute_resources.libvirt_hostname\n+        # Create a new virt-who config\n+        virt_who_config = make_virt_who_config({\n+            'organization-id': org.id,\n+            'hypervisor-type': VIRT_WHO_HYPERVISOR_TYPES['libvirt'],\n+            'hypervisor-server': 'qemu+ssh://{0}/system'.format(\n+                provisioning_server),\n+            'hypervisor-username': 'root',\n+        })\n+        # create a virtual machine to host virt-who service\n+        with VirtualMachine() as virt_who_vm:\n+            # configure virtual machine and setup virt-who service\n+            # do not supply subscription to attach to virt_who hypervisor\n+            virt_who_data = virt_who_hypervisor_config(\n+                virt_who_config['general-information']['id'],\n+                virt_who_vm,\n+                org_id=org.id,\n+                lce_id=lce.id,\n+                hypervisor_hostname=provisioning_server,\n+                configure_ssh=True,\n+                exec_one_shot=True,\n+            )\n+            virt_who_hypervisor_host = virt_who_data[\n+                'virt_who_hypervisor_host']\n+            with Session(self) as session:\n+                set_context(session, org=org.name, force_context=True)\n+                self.assertEquals(","path":"tests/foreman/ui/test_contenthost.py","position":80,"original_position":80,"commit_id":"cfcde4ea872b798a0b24c863091fb0c89006e9ee","original_commit_id":"cfcde4ea872b798a0b24c863091fb0c89006e9ee","user":{"login":"abalakh","id":11719030,"avatar_url":"https://avatars0.githubusercontent.com/u/11719030?v=4","gravatar_id":"","url":"https://api.github.com/users/abalakh","html_url":"https://github.com/abalakh","followers_url":"https://api.github.com/users/abalakh/followers","following_url":"https://api.github.com/users/abalakh/following{/other_user}","gists_url":"https://api.github.com/users/abalakh/gists{/gist_id}","starred_url":"https://api.github.com/users/abalakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abalakh/subscriptions","organizations_url":"https://api.github.com/users/abalakh/orgs","repos_url":"https://api.github.com/users/abalakh/repos","events_url":"https://api.github.com/users/abalakh/events{/privacy}","received_events_url":"https://api.github.com/users/abalakh/received_events","type":"User","site_admin":false},"body":"pls use `self.assertEqual`, as `self.assertEquals` - is deprecated alias.","created_at":"2017-11-16T15:55:52Z","updated_at":"2017-11-16T15:59:19Z","html_url":"https://github.com/SatelliteQE/robottelo/pull/5585#discussion_r151455108","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/151455108"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/5585#discussion_r151455108"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585","id":152978567,"html_url":"https://github.com/SatelliteQE/robottelo/pull/5585","diff_url":"https://github.com/SatelliteQE/robottelo/pull/5585.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/5585.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/5585","number":5585,"state":"open","locked":false,"title":"[6.3] Check virt-who hypervisor subscription status (BZ:1336924)","user":{"login":"ldjebran","id":131553,"avatar_url":"https://avatars2.githubusercontent.com/u/131553?v=4","gravatar_id":"","url":"https://api.github.com/users/ldjebran","html_url":"https://github.com/ldjebran","followers_url":"https://api.github.com/users/ldjebran/followers","following_url":"https://api.github.com/users/ldjebran/following{/other_user}","gists_url":"https://api.github.com/users/ldjebran/gists{/gist_id}","starred_url":"https://api.github.com/users/ldjebran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldjebran/subscriptions","organizations_url":"https://api.github.com/users/ldjebran/orgs","repos_url":"https://api.github.com/users/ldjebran/repos","events_url":"https://api.github.com/users/ldjebran/events{/privacy}","received_events_url":"https://api.github.com/users/ldjebran/received_events","type":"User","site_admin":false},"body":"cover https://bugzilla.redhat.com/show_bug.cgi?id=1336924\r\nalso added timeout=600 to one-shot cmd\r\n```bash\r\n(sat-6.3.0) dlezz@elysion:~/projects/robottelo-fork$ py.test -v tests/foreman/ui/test_contenthost.py::ContentHostTestCase::test_positive_virt_who_hypervisor_subscription_status\r\n=================================================================================================== test session starts ====================================================================================================\r\nplatform linux2 -- Python 2.7.13, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 -- /home/dlezz/.pyenv/versions/2.7.13/envs/sat-6.3.0/bin/python\r\ncachedir: .cache\r\nrootdir: /home/dlezz/projects/robottelo-fork, inifile:\r\nplugins: xdist-1.20.1, services-1.2.1, mock-1.6.3, forked-0.2, cov-2.5.1, fauxfactory-1.0.1\r\ncollected 1 item                                                                                                                                                                                                            \r\n2017-11-16 09:15:37 - conftest - DEBUG - BZ deselect is disabled in settings\r\n\r\n\r\ntests/foreman/ui/test_contenthost.py::ContentHostTestCase::test_positive_virt_who_hypervisor_subscription_status <- robottelo/decorators/__init__.py PASSED\r\n\r\n=============================================================================================== 1 passed in 1901.70 seconds ================================================================================================\r\n```","created_at":"2017-11-16T08:32:45Z","updated_at":"2017-11-16T15:59:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"821a191a384de0c5d5173729135927a2c79a8228","assignee":{"login":"ldjebran","id":131553,"avatar_url":"https://avatars2.githubusercontent.com/u/131553?v=4","gravatar_id":"","url":"https://api.github.com/users/ldjebran","html_url":"https://github.com/ldjebran","followers_url":"https://api.github.com/users/ldjebran/followers","following_url":"https://api.github.com/users/ldjebran/following{/other_user}","gists_url":"https://api.github.com/users/ldjebran/gists{/gist_id}","starred_url":"https://api.github.com/users/ldjebran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldjebran/subscriptions","organizations_url":"https://api.github.com/users/ldjebran/orgs","repos_url":"https://api.github.com/users/ldjebran/repos","events_url":"https://api.github.com/users/ldjebran/events{/privacy}","received_events_url":"https://api.github.com/users/ldjebran/received_events","type":"User","site_admin":false},"assignees":[{"login":"ldjebran","id":131553,"avatar_url":"https://avatars2.githubusercontent.com/u/131553?v=4","gravatar_id":"","url":"https://api.github.com/users/ldjebran","html_url":"https://github.com/ldjebran","followers_url":"https://api.github.com/users/ldjebran/followers","following_url":"https://api.github.com/users/ldjebran/following{/other_user}","gists_url":"https://api.github.com/users/ldjebran/gists{/gist_id}","starred_url":"https://api.github.com/users/ldjebran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldjebran/subscriptions","organizations_url":"https://api.github.com/users/ldjebran/orgs","repos_url":"https://api.github.com/users/ldjebran/repos","events_url":"https://api.github.com/users/ldjebran/events{/privacy}","received_events_url":"https://api.github.com/users/ldjebran/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/5585/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/cfcde4ea872b798a0b24c863091fb0c89006e9ee","head":{"label":"ldjebran:6.3.0_qe_test_coverage_1336924","ref":"6.3.0_qe_test_coverage_1336924","sha":"cfcde4ea872b798a0b24c863091fb0c89006e9ee","user":{"login":"ldjebran","id":131553,"avatar_url":"https://avatars2.githubusercontent.com/u/131553?v=4","gravatar_id":"","url":"https://api.github.com/users/ldjebran","html_url":"https://github.com/ldjebran","followers_url":"https://api.github.com/users/ldjebran/followers","following_url":"https://api.github.com/users/ldjebran/following{/other_user}","gists_url":"https://api.github.com/users/ldjebran/gists{/gist_id}","starred_url":"https://api.github.com/users/ldjebran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldjebran/subscriptions","organizations_url":"https://api.github.com/users/ldjebran/orgs","repos_url":"https://api.github.com/users/ldjebran/repos","events_url":"https://api.github.com/users/ldjebran/events{/privacy}","received_events_url":"https://api.github.com/users/ldjebran/received_events","type":"User","site_admin":false},"repo":{"id":71339453,"name":"robottelo","full_name":"ldjebran/robottelo","owner":{"login":"ldjebran","id":131553,"avatar_url":"https://avatars2.githubusercontent.com/u/131553?v=4","gravatar_id":"","url":"https://api.github.com/users/ldjebran","html_url":"https://github.com/ldjebran","followers_url":"https://api.github.com/users/ldjebran/followers","following_url":"https://api.github.com/users/ldjebran/following{/other_user}","gists_url":"https://api.github.com/users/ldjebran/gists{/gist_id}","starred_url":"https://api.github.com/users/ldjebran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldjebran/subscriptions","organizations_url":"https://api.github.com/users/ldjebran/orgs","repos_url":"https://api.github.com/users/ldjebran/repos","events_url":"https://api.github.com/users/ldjebran/events{/privacy}","received_events_url":"https://api.github.com/users/ldjebran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldjebran/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":true,"url":"https://api.github.com/repos/ldjebran/robottelo","forks_url":"https://api.github.com/repos/ldjebran/robottelo/forks","keys_url":"https://api.github.com/repos/ldjebran/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldjebran/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldjebran/robottelo/teams","hooks_url":"https://api.github.com/repos/ldjebran/robottelo/hooks","issue_events_url":"https://api.github.com/repos/ldjebran/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/ldjebran/robottelo/events","assignees_url":"https://api.github.com/repos/ldjebran/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/ldjebran/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/ldjebran/robottelo/tags","blobs_url":"https://api.github.com/repos/ldjebran/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldjebran/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldjebran/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldjebran/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldjebran/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/ldjebran/robottelo/languages","stargazers_url":"https://api.github.com/repos/ldjebran/robottelo/stargazers","contributors_url":"https://api.github.com/repos/ldjebran/robottelo/contributors","subscribers_url":"https://api.github.com/repos/ldjebran/robottelo/subscribers","subscription_url":"https://api.github.com/repos/ldjebran/robottelo/subscription","commits_url":"https://api.github.com/repos/ldjebran/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldjebran/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldjebran/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldjebran/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldjebran/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/ldjebran/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldjebran/robottelo/merges","archive_url":"https://api.github.com/repos/ldjebran/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldjebran/robottelo/downloads","issues_url":"https://api.github.com/repos/ldjebran/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/ldjebran/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/ldjebran/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/ldjebran/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldjebran/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/ldjebran/robottelo/releases{/id}","deployments_url":"https://api.github.com/repos/ldjebran/robottelo/deployments","created_at":"2016-10-19T09:11:49Z","updated_at":"2016-10-19T09:11:52Z","pushed_at":"2017-11-16T15:34:51Z","git_url":"git://github.com/ldjebran/robottelo.git","ssh_url":"git@github.com:ldjebran/robottelo.git","clone_url":"https://github.com/ldjebran/robottelo.git","svn_url":"https://github.com/ldjebran/robottelo","homepage":"","size":19454,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SatelliteQE:master","ref":"master","sha":"d440c14a628465d1278e076d4d6245e70c77cca6","user":{"login":"SatelliteQE","id":8754276,"avatar_url":"https://avatars3.githubusercontent.com/u/8754276?v=4","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://avatars3.githubusercontent.com/u/8754276?v=4","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":"2017-11-10T02:20:43Z","pushed_at":"2017-11-16T15:34:53Z","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":19369,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":52,"mirror_url":null,"archived":false,"open_issues_count":439,"forks":52,"open_issues":439,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/5585"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/5585"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/5585/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/5585/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/cfcde4ea872b798a0b24c863091fb0c89006e9ee"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"abalakh"}}