{"action":"created","issue":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2082","labels_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2082/labels{/name}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2082/comments","events_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2082/events","html_url":"https://github.com/SatelliteQE/robottelo/pull/2082","id":69116629,"number":2082,"title":"Add CLI test for product synchronize - issue #1728","user":{"login":"abalakh","id":11719030,"avatar_url":"https://avatars.githubusercontent.com/u/11719030?v=3","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-17T10:59:43Z","updated_at":"2015-04-17T15:27:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2082","html_url":"https://github.com/SatelliteQE/robottelo/pull/2082","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2082.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2082.patch"},"body":"Added CLI tests for product synchronize command. Splitted to 3 tests\r\nas there're 3 ways to search for organization - by ID, Name or Label, \r\nand 2 ways to search for product - by ID or Name.\r\nResolves #1728 \r\n```\r\nhammer product synchronize --help\r\n\r\nUsage:\r\n    hammer product synchronize [OPTIONS]\r\n\r\nOptions:\r\n --async                                 Do not wait for the task\r\n --id ID                                 product ID\r\n --name NAME                             Product name to search by\r\n --organization ORGANIZATION_NAME        Organization name to search by\r\n --organization-id ORGANIZATION_ID       organization ID\r\n --organization-label ORGANIZATION_LABEL Organization label to search by\r\n -h, --help                              print help\r\n```\r\n\r\nTests results:\r\n```\r\n$ nosetests tests/foreman/cli/test_product.py -m test_product_synchronize\r\n...\r\n----------------------------------------------------------------------\r\nRan 3 tests in 144.132s\r\n\r\nOK\r\n```"},"comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/comments/94008865","html_url":"https://github.com/SatelliteQE/robottelo/pull/2082#issuecomment-94008865","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2082","id":94008865,"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},"created_at":"2015-04-17T15:27:11Z","updated_at":"2015-04-17T15:27:11Z","body":"ACK, pending nitpick."}}