{"action":"created","comment":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/36753973","id":36753973,"diff_hunk":"@@ -453,9 +452,38 @@ def test_add_multiple_docker_repos_to_content_view(self):\n \n         @Feature: Docker\n \n-        @Status: Manual\n-\n         \"\"\"\n+        product = entities.Product(organization=self.org).create()\n+        repos_amount = randint(1, 5)\n+        repos = [\n+            _create_repository(product, name=gen_string('alpha'))\n+            for _\n+            in range(repos_amount)\n+        ]\n+        self.assertEqual(len(product.read().repository), repos_amount)\n+\n+        content_view = entities.ContentView(\n+            composite=False,\n+            organization=self.org,\n+        ).create()\n+        content_view.repository = repos\n+        content_view = content_view.update(['repository'])\n+\n+        self.assertEqual(len(content_view.repository), repos_amount)\n+\n+        content_view.repository = [\n+            repo.read() for repo in content_view.repository\n+        ]\n+\n+        for attr in ('id', 'content_type', 'docker_upstream_name'):\n+            self.assertEqual(\n+                {getattr(repo, attr) for repo in repos},\n+                {getattr(repo, attr) for repo in content_view.repository},\n+            )\n+\n+        for repo in content_view.repository:\n+            self.assertEqual(repo.content_type, u'docker')\n+            self.assertEqual(repo.docker_upstream_name, u'busybox')","path":"tests/foreman/api/test_docker.py","position":44,"original_position":45,"commit_id":"46419420c8a363ea5074d0ffdd34e687f0c53692","original_commit_id":"3afd0e1b7635dc5edab009f1f72d5fc98374ea58","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":"Right, but \r\n```\r\n for repo in content_view.repository:\r\n            self.assertEqual(repo.content_type, u'docker')\r\n            self.assertEqual(repo.docker_upstream_name, u'busybox')\r\n```\r\nis enough.\r\nWe do not need `repos + content_view.repository` as any of `repos` or `content_view.repository` is enough","created_at":"2015-08-11T14:52:45Z","updated_at":"2015-08-11T14:52:45Z","html_url":"https://github.com/SatelliteQE/robottelo/pull/2672#discussion_r36753973","pull_request_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672","_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments/36753973"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2672#discussion_r36753973"},"pull_request":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672"}}},"pull_request":{"url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672","id":42115814,"html_url":"https://github.com/SatelliteQE/robottelo/pull/2672","diff_url":"https://github.com/SatelliteQE/robottelo/pull/2672.diff","patch_url":"https://github.com/SatelliteQE/robottelo/pull/2672.patch","issue_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2672","number":2672,"state":"open","locked":false,"title":"Increase docker functionality coverage","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":"1) Add 13 more test cases according to #2642\r\n2) Fix one issue in test logic for ```test_publish_once_docker_repo_composite_content_view``` method\r\n\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_add_multiple_docker_repos_to_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 34.018s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_publish_multiple_docker_repo_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 67.226s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_publish_multiple_docker_repo_composite_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 83.757s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_promote_docker_repo_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 69.653s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_promote_multiple_docker_repo_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 160.419s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_promote_docker_repo_composite_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 111.123s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_promote_multiple_docker_repo_composite_content_view\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 185.506s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_add_docker_repo_to_activation_key\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 75.004s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_remove_docker_repo_to_activation_key\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 75.944s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_add_docker_repo_composite_view_to_activation_key\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 127.937s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_remove_docker_repo_composite_view_to_activation_key\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 132.975s\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_update_internal_docker_compute_resource\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 16.297s\r\n\r\nOK\r\n```\r\n```\r\nnosetests tests/foreman/api/test_docker.py -m test_update_external_docker_compute_resource\r\n.\r\n----------------------------------------------------------------------\r\nRan 1 test in 15.528s\r\n\r\nOK\r\n```\r\n","created_at":"2015-08-11T10:51:43Z","updated_at":"2015-08-11T14:52:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfa3b0b3e863d874f9d737bb1575c0d5ed508b05","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672/commits","review_comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672/comments","review_comment_url":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2672/comments","statuses_url":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/46419420c8a363ea5074d0ffdd34e687f0c53692","head":{"label":"oshtaier:Issue_2642_1","ref":"Issue_2642_1","sha":"46419420c8a363ea5074d0ffdd34e687f0c53692","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},"repo":{"id":33350829,"name":"robottelo","full_name":"oshtaier/robottelo","owner":{"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},"private":false,"html_url":"https://github.com/oshtaier/robottelo","description":"Robottelo is a test suite which exercises The Foreman.","fork":true,"url":"https://api.github.com/repos/oshtaier/robottelo","forks_url":"https://api.github.com/repos/oshtaier/robottelo/forks","keys_url":"https://api.github.com/repos/oshtaier/robottelo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oshtaier/robottelo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oshtaier/robottelo/teams","hooks_url":"https://api.github.com/repos/oshtaier/robottelo/hooks","issue_events_url":"https://api.github.com/repos/oshtaier/robottelo/issues/events{/number}","events_url":"https://api.github.com/repos/oshtaier/robottelo/events","assignees_url":"https://api.github.com/repos/oshtaier/robottelo/assignees{/user}","branches_url":"https://api.github.com/repos/oshtaier/robottelo/branches{/branch}","tags_url":"https://api.github.com/repos/oshtaier/robottelo/tags","blobs_url":"https://api.github.com/repos/oshtaier/robottelo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oshtaier/robottelo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oshtaier/robottelo/git/refs{/sha}","trees_url":"https://api.github.com/repos/oshtaier/robottelo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oshtaier/robottelo/statuses/{sha}","languages_url":"https://api.github.com/repos/oshtaier/robottelo/languages","stargazers_url":"https://api.github.com/repos/oshtaier/robottelo/stargazers","contributors_url":"https://api.github.com/repos/oshtaier/robottelo/contributors","subscribers_url":"https://api.github.com/repos/oshtaier/robottelo/subscribers","subscription_url":"https://api.github.com/repos/oshtaier/robottelo/subscription","commits_url":"https://api.github.com/repos/oshtaier/robottelo/commits{/sha}","git_commits_url":"https://api.github.com/repos/oshtaier/robottelo/git/commits{/sha}","comments_url":"https://api.github.com/repos/oshtaier/robottelo/comments{/number}","issue_comment_url":"https://api.github.com/repos/oshtaier/robottelo/issues/comments{/number}","contents_url":"https://api.github.com/repos/oshtaier/robottelo/contents/{+path}","compare_url":"https://api.github.com/repos/oshtaier/robottelo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oshtaier/robottelo/merges","archive_url":"https://api.github.com/repos/oshtaier/robottelo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oshtaier/robottelo/downloads","issues_url":"https://api.github.com/repos/oshtaier/robottelo/issues{/number}","pulls_url":"https://api.github.com/repos/oshtaier/robottelo/pulls{/number}","milestones_url":"https://api.github.com/repos/oshtaier/robottelo/milestones{/number}","notifications_url":"https://api.github.com/repos/oshtaier/robottelo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oshtaier/robottelo/labels{/name}","releases_url":"https://api.github.com/repos/oshtaier/robottelo/releases{/id}","created_at":"2015-04-03T06:48:07Z","updated_at":"2015-04-06T12:49:17Z","pushed_at":"2015-08-11T14:10:34Z","git_url":"git://github.com/oshtaier/robottelo.git","ssh_url":"git@github.com:oshtaier/robottelo.git","clone_url":"https://github.com/oshtaier/robottelo.git","svn_url":"https://github.com/oshtaier/robottelo","homepage":"","size":8658,"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":"0285ac66c4f6d76942603a4d8dbbd736aa85e295","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-08-04T16:49:37Z","pushed_at":"2015-08-11T14:10:34Z","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":18283,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":29,"mirror_url":null,"open_issues_count":198,"forks":29,"open_issues":198,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672"},"html":{"href":"https://github.com/SatelliteQE/robottelo/pull/2672"},"issue":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2672"},"comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/issues/2672/comments"},"review_comments":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672/comments"},"review_comment":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/pulls/2672/commits"},"statuses":{"href":"https://api.github.com/repos/SatelliteQE/robottelo/statuses/46419420c8a363ea5074d0ffdd34e687f0c53692"}}}}