{"action":"opened","number":2358,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358","id":36749120,"html_url":"https://github.com/SatelliteQE/robottelo/pull/2358","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2358.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2358.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2358","number":2358,"state":"open","locked":false,"title":"Finish hammer content-host CLI class","user":{"login":"elyezer","id":48132,"avatar_url":"https://avatars.githubusercontent.com/u/48132?v=3","gravatar_id":"","url":"https://api.github.com/users/elyezer","html_url":"https://github.com/elyezer","followers_url":"https://api.github.com/users/elyezer/followers","following_url":"https://api.github.com/users/elyezer/following{/other_user}","gists_url":"https://api.github.com/users/elyezer/gists{/gist_id}","starred_url":"https://api.github.com/users/elyezer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyezer/subscriptions","organizations_url":"https://api.github.com/users/elyezer/orgs","repos_url":"https://api.github.com/users/elyezer/repos","events_url":"https://api.github.com/users/elyezer/events{/privacy}","received_events_url":"https://api.github.com/users/elyezer/received_events","type":"User","site_admin":false},"body":"Add all missing content-host subcommands to the ContentHost CLI class.\r\n\r\nCloses #1232\r\n\r\nFollow the usage of all commands, they have failed due to no option provided, but robottelo is generating the right commands.\r\n\r\n```\r\nIn [5]: ContentHost.errata_apply({})\r\n2015-06-02 13:32:49 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host errata apply\r\n2015-06-02 13:32:53 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:32:52 Exception] Error: Could not find system, please set one of options --content-host, --content-host-id.\r\nCould not apply errata:\r\n  Error: Could not find system, please set one of options --content-host, --content-host-id.\r\n\r\nIn [6]: ContentHost.errata_info({})\r\n2015-06-02 13:33:09 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host errata info\r\n2015-06-02 13:33:12 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:33:12 Exception] Error: Could not find system, please set one of options --content-host, --content-host-id.\r\nError: Could not find system, please set one of options --content-host, --content-host-id.\r\n\r\nIn [7]: ContentHost.errata_list({})\r\n2015-06-02 13:33:18 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host errata list\r\n2015-06-02 13:33:21 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:33:21 Exception] missing param 'system_id' in parameters\r\nmissing param 'system_id' in parameters\r\n\r\nIn [8]: ContentHost.package_install({})\r\n2015-06-02 13:33:32 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package install\r\n2015-06-02 13:33:35 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:33:35 Exception] Error: Options --packages are required\r\n\r\nSee: 'hammer content-host package install --help'\r\nCould not install packages:\r\n  Error: Options --packages are required\r\n\r\n  See: 'hammer content-host package install --help'\r\n\r\nIn [9]: ContentHost.package_remove({})\r\n2015-06-02 13:33:43 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package remove\r\n2015-06-02 13:33:46 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:33:46 Exception] Error: Options --packages are required\r\n\r\nSee: 'hammer content-host package remove --help'\r\nCould not remove packages:\r\n  Error: Options --packages are required\r\n\r\n  See: 'hammer content-host package remove --help'\r\n\r\nIn [10]: ContentHost.package_upgrade({})\r\n2015-06-02 13:33:55 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package upgrade\r\n2015-06-02 13:33:58 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:33:58 Exception] Error: Could not find system, please set one of options --content-host, --content-host-id.\r\nCould not upgrade packages:\r\n  Error: Could not find system, please set one of options --content-host, --content-host-id.\r\n\r\nIn [11]: ContentHost.package_upgrade_all({})\r\n2015-06-02 13:34:03 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package upgrade-all\r\n2015-06-02 13:34:06 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:06 Exception] Error: Could not find system, please set one of options --content-host, --content-host-id.\r\nCould not upgrade all packages:\r\n  Error: Could not find system, please set one of options --content-host, --content-host-id.\r\n\r\nIn [12]: ContentHost.package_group_install({})\r\n2015-06-02 13:34:17 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package-group install\r\n2015-06-02 13:34:20 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:20 Exception] Error: Options --groups are required\r\n\r\nSee: 'hammer content-host package-group install --help'\r\nCould not install package-groups:\r\n  Error: Options --groups are required\r\n\r\n  See: 'hammer content-host package-group install --help'\r\n\r\nIn [13]: ContentHost.package_group_remove({})\r\n2015-06-02 13:34:27 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host package-group remove\r\n2015-06-02 13:34:30 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:30 Exception] Error: Options --groups are required\r\n\r\nSee: 'hammer content-host package-group remove --help'\r\nCould not remove package-groups:\r\n  Error: Options --groups are required\r\n\r\n  See: 'hammer content-host package-group remove --help'\r\n\r\nIn [14]: ContentHost.tasks({})\r\n2015-06-02 13:34:40 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host tasks\r\n2015-06-02 13:34:43 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:43 Exception] Error: The server does not support such operation.\r\nError: The server does not support such operation.\r\n\r\nIn [15]: ContentHost.create({})\r\n2015-06-02 13:34:48 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host create\r\n2015-06-02 13:34:52 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:52 Exception] Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.\r\nCould not create content host:\r\n  Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.\r\n\r\nIn [16]: ContentHost.delete({})\r\n2015-06-02 13:34:56 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  content-host delete\r\n2015-06-02 13:34:59 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:34:59 Exception] missing param 'id' in parameters\r\nCould not delete content host:\r\n  missing param 'id' in parameters\r\n\r\nIn [17]: ContentHost.list({})\r\n2015-06-02 13:35:03 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host list --per-page=\"10000\"\r\n2015-06-02 13:35:06 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:35:06 Exception] Error: Could not find organization, please set one of options --organization, --organization-label, --organization-id.\r\nError: Could not find organization, please set one of options --organization, --organization-label, --organization-id.\r\n\r\nIn [18]: ContentHost.update({})\r\n2015-06-02 13:35:12 - robottelo.common.ssh - DEBUG - >>> [qe-sat6-rhel71.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme --output=csv content-host update\r\n2015-06-02 13:35:15 - robottelo.common.ssh - DEBUG - <<< stderr\r\n[ERROR 2015-06-02 12:35:15 Exception] missing param 'id' in parameters\r\nCould not update content host:\r\n  missing param 'id' in parameters\r\n```","created_at":"2015-06-02T16:42:24Z","updated_at":"2015-06-02T16:42:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2358/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/3a68d37d4cd088bc7548a661846464aa6c5bcdd7","head":{"label":"elyezer:fix-1232","ref":"fix-1232","sha":"3a68d37d4cd088bc7548a661846464aa6c5bcdd7","user":{"login":"elyezer","id":48132,"avatar_url":"https://avatars.githubusercontent.com/u/48132?v=3","gravatar_id":"","url":"https://api.github.com/users/elyezer","html_url":"https://github.com/elyezer","followers_url":"https://api.github.com/users/elyezer/followers","following_url":"https://api.github.com/users/elyezer/following{/other_user}","gists_url":"https://api.github.com/users/elyezer/gists{/gist_id}","starred_url":"https://api.github.com/users/elyezer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyezer/subscriptions","organizations_url":"https://api.github.com/users/elyezer/orgs","repos_url":"https://api.github.com/users/elyezer/repos","events_url":"https://api.github.com/users/elyezer/events{/privacy}","received_events_url":"https://api.github.com/users/elyezer/received_events","type":"User","site_admin":false},"repo":{"id":14159745,"name":"robottelo","full_name":"elyezer/robottelo","owner":{"login":"elyezer","id":48132,"avatar_url":"https://avatars.githubusercontent.com/u/48132?v=3","gravatar_id":"","url":"https://api.github.com/users/elyezer","html_url":"https://github.com/elyezer","followers_url":"https://api.github.com/users/elyezer/followers","following_url":"https://api.github.com/users/elyezer/following{/other_user}","gists_url":"https://api.github.com/users/elyezer/gists{/gist_id}","starred_url":"https://api.github.com/users/elyezer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyezer/subscriptions","organizations_url":"https://api.github.com/users/elyezer/orgs","repos_url":"https://api.github.com/users/elyezer/repos","events_url":"https://api.github.com/users/elyezer/events{/privacy}","received_events_url":"https://api.github.com/users/elyezer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/elyezer/robottelo","description":"An automation testing framework for the Foreman project.","fork":true,"url":"https://api.github.com/repos/elyezer/robottelo","forks_url":"https://api.github.com/repos/elyezer/robottelo/forks","keys_url":"https://api.github.com/repos/elyezer/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elyezer/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elyezer/robottelo/teams","hooks_url":"https://api.github.com/repos/elyezer/robottelo/hooks","issue_events_url":"https://api.github.com/repos/elyezer/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/elyezer/robottelo/events","assignees_url":"https://api.github.com/repos/elyezer/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/elyezer/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/elyezer/robottelo/tags","blobs_url":"https://api.github.com/repos/elyezer/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elyezer/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elyezer/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/elyezer/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elyezer/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/elyezer/robottelo/languages","stargazers_url":"https://api.github.com/repos/elyezer/robottelo/stargazers","contributors_url":"https://api.github.com/repos/elyezer/robottelo/contributors","subscribers_url":"https://api.github.com/repos/elyezer/robottelo/subscribers","subscription_url":"https://api.github.com/repos/elyezer/robottelo/subscription","commits_url":"https://api.github.com/repos/elyezer/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/elyezer/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/elyezer/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/elyezer/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/elyezer/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/elyezer/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elyezer/robottelo/merges","archive_url":"https://api.github.com/repos/elyezer/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elyezer/robottelo/downloads","issues_url":"https://api.github.com/repos/elyezer/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/elyezer/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/elyezer/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/elyezer/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elyezer/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/elyezer/robottelo/releases{/id}","created_at":"2013-11-06T01:31:06Z","updated_at":"2015-05-08T20:30:32Z","pushed_at":"2015-06-02T16:40:48Z","git_url":"git://github.com/elyezer/robottelo.git","ssh_url":"git@github.com:elyezer/robottelo.git","clone_url":"https://github.com/elyezer/robottelo.git","svn_url":"https://github.com/elyezer/robottelo","homepage":"","size":10146,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":"09e47233733217913fd33ff7de91333ca8db4826","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}","created_at":"2012-04-12T01:36:39Z","updated_at":"2015-05-08T20:29:03Z","pushed_at":"2015-06-02T13:05:32Z","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":19469,"stargazers_count":21,"watchers_count":21,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":149,"forks":28,"open_issues":149,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2358"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2358"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2358/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2358/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/3a68d37d4cd088bc7548a661846464aa6c5bcdd7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":68,"deletions":24,"changed_files":1}}