{"action":"created","comment":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments/64531995","id":64531995,"diff_hunk":"@@ -12,21 +12,50 @@\n pytest_generate_tests = testgen.generate(testgen.provider_by_type, [\"hawkular\"], scope=\"function\")\n \n \n+@pytest.mark.usefixtures('has_no_middleware_providers')\n def test_list_deployments(provider):\n-    \"\"\"Tests deployments count between UI, DB and Management system\n+    \"\"\"Tests deployments list between UI, DB and Management system\n+    This test requires that no any other provider should exist before.\n \n     Steps:\n+        * Creates a provider.\n         * Get deployments list from UI\n         * Get deployments list from Database\n         * Get deployments list from Management system(Hawkular)\n         * Compare size of all the list [UI, Database, Management system]\n     \"\"\"\n-    ui_deps = MiddlewareDeployment.deployments(provider=provider)\n-    db_deps = MiddlewareDeployment.deployments_in_db()\n-    mgmt_deps = MiddlewareDeployment.deployments_in_mgmt(provider)\n-    assert len(ui_deps) == len(db_deps) == len(mgmt_deps), \\\n-        (\"Size of deployments mismatch! UI:{}, DB:{}, MGMT:{}\"\n-         .format(len(ui_deps), len(db_deps), len(mgmt_deps)))\n+    provider.create(cancel=False, validate_credentials=False)","path":"cfme/tests/middleware/test_middleware_deployment.py","position":23,"original_position":23,"commit_id":"3da6bfc2b8fe44cece6ee54a0e0e4c16953fd234","original_commit_id":"3da6bfc2b8fe44cece6ee54a0e0e4c16953fd234","user":{"login":"psav","id":5639745,"avatar_url":"https://avatars.githubusercontent.com/u/5639745?v=3","gravatar_id":"","url":"https://api.github.com/users/psav","html_url":"https://github.com/psav","followers_url":"https://api.github.com/users/psav/followers","following_url":"https://api.github.com/users/psav/following{/other_user}","gists_url":"https://api.github.com/users/psav/gists{/gist_id}","starred_url":"https://api.github.com/users/psav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psav/subscriptions","organizations_url":"https://api.github.com/users/psav/orgs","repos_url":"https://api.github.com/users/psav/repos","events_url":"https://api.github.com/users/psav/events{/privacy}","received_events_url":"https://api.github.com/users/psav/received_events","type":"User","site_admin":false},"body":"@hhovsepy As I mentioned in an earlier commit, we need to put a comment as to why we are doing it this way. The \"better\" way to do it is as I said, to make sure that the calls are provider specific, but if that is not possible right now, let's add a comment as to why we are doing the provider create locally. I think @mfalesni was just thinking that as a \"provider\" is a prerequisite to a test, that we should probably have it as a fixture, and not inside the actual test. So maybe have a fixture that creates the provider that uses the has_no_middleware_providers fixture as its prerequisite.","created_at":"2016-05-25T08:16:01Z","updated_at":"2016-05-25T08:16:01Z","html_url":"https://github.com/RedHatQE/cfme_tests/pull/2998#discussion_r64531995","pull_request_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998","_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments/64531995"},"html":{"href":"https://github.com/RedHatQE/cfme_tests/pull/2998#discussion_r64531995"},"pull_request":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998"}}},"pull_request":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998","id":70694218,"html_url":"https://github.com/RedHatQE/cfme_tests/pull/2998","diff_url":"https://github.com/RedHatQE/cfme_tests/pull/2998.diff","patch_url":"https://github.com/RedHatQE/cfme_tests/pull/2998.patch","issue_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2998","number":2998,"state":"open","locked":false,"title":"Added new methods for listing servers on UI, DB and mgmt_systems.  Added new functionality to filter servers and deployments by provider, added new test cases.","user":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"body":"Added test case to compare those lists and headers of servers list in UI.","created_at":"2016-05-19T13:30:58Z","updated_at":"2016-05-25T08:16:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ecea203711cce98ac460cb6324eb9c91cf3b70e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998/commits","review_comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998/comments","review_comment_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2998/comments","statuses_url":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/3da6bfc2b8fe44cece6ee54a0e0e4c16953fd234","head":{"label":"hhovsepy:hawkular_integration","ref":"hawkular_integration","sha":"3da6bfc2b8fe44cece6ee54a0e0e4c16953fd234","user":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"repo":{"id":53510897,"name":"cfme_tests","full_name":"hhovsepy/cfme_tests","owner":{"login":"hhovsepy","id":604313,"avatar_url":"https://avatars.githubusercontent.com/u/604313?v=3","gravatar_id":"","url":"https://api.github.com/users/hhovsepy","html_url":"https://github.com/hhovsepy","followers_url":"https://api.github.com/users/hhovsepy/followers","following_url":"https://api.github.com/users/hhovsepy/following{/other_user}","gists_url":"https://api.github.com/users/hhovsepy/gists{/gist_id}","starred_url":"https://api.github.com/users/hhovsepy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhovsepy/subscriptions","organizations_url":"https://api.github.com/users/hhovsepy/orgs","repos_url":"https://api.github.com/users/hhovsepy/repos","events_url":"https://api.github.com/users/hhovsepy/events{/privacy}","received_events_url":"https://api.github.com/users/hhovsepy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hhovsepy/cfme_tests","description":"CloudForms Management Engine - Functional tests","fork":true,"url":"https://api.github.com/repos/hhovsepy/cfme_tests","forks_url":"https://api.github.com/repos/hhovsepy/cfme_tests/forks","keys_url":"https://api.github.com/repos/hhovsepy/cfme_tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hhovsepy/cfme_tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hhovsepy/cfme_tests/teams","hooks_url":"https://api.github.com/repos/hhovsepy/cfme_tests/hooks","issue_events_url":"https://api.github.com/repos/hhovsepy/cfme_tests/issues/events{/number}","events_url":"https://api.github.com/repos/hhovsepy/cfme_tests/events","assignees_url":"https://api.github.com/repos/hhovsepy/cfme_tests/assignees{/user}","branches_url":"https://api.github.com/repos/hhovsepy/cfme_tests/branches{/branch}","tags_url":"https://api.github.com/repos/hhovsepy/cfme_tests/tags","blobs_url":"https://api.github.com/repos/hhovsepy/cfme_tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hhovsepy/cfme_tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hhovsepy/cfme_tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/hhovsepy/cfme_tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hhovsepy/cfme_tests/statuses/{sha}","languages_url":"https://api.github.com/repos/hhovsepy/cfme_tests/languages","stargazers_url":"https://api.github.com/repos/hhovsepy/cfme_tests/stargazers","contributors_url":"https://api.github.com/repos/hhovsepy/cfme_tests/contributors","subscribers_url":"https://api.github.com/repos/hhovsepy/cfme_tests/subscribers","subscription_url":"https://api.github.com/repos/hhovsepy/cfme_tests/subscription","commits_url":"https://api.github.com/repos/hhovsepy/cfme_tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/hhovsepy/cfme_tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/hhovsepy/cfme_tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/hhovsepy/cfme_tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/hhovsepy/cfme_tests/contents/{+path}","compare_url":"https://api.github.com/repos/hhovsepy/cfme_tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hhovsepy/cfme_tests/merges","archive_url":"https://api.github.com/repos/hhovsepy/cfme_tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hhovsepy/cfme_tests/downloads","issues_url":"https://api.github.com/repos/hhovsepy/cfme_tests/issues{/number}","pulls_url":"https://api.github.com/repos/hhovsepy/cfme_tests/pulls{/number}","milestones_url":"https://api.github.com/repos/hhovsepy/cfme_tests/milestones{/number}","notifications_url":"https://api.github.com/repos/hhovsepy/cfme_tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hhovsepy/cfme_tests/labels{/name}","releases_url":"https://api.github.com/repos/hhovsepy/cfme_tests/releases{/id}","deployments_url":"https://api.github.com/repos/hhovsepy/cfme_tests/deployments","created_at":"2016-03-09T15:56:37Z","updated_at":"2016-03-09T15:56:39Z","pushed_at":"2016-05-24T12:33:27Z","git_url":"git://github.com/hhovsepy/cfme_tests.git","ssh_url":"git@github.com:hhovsepy/cfme_tests.git","clone_url":"https://github.com/hhovsepy/cfme_tests.git","svn_url":"https://github.com/hhovsepy/cfme_tests","homepage":"","size":10101,"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":"RedHatQE:master","ref":"master","sha":"4045d4462885d9288a96273aac67b92ad8c10baf","user":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"repo":{"id":8061086,"name":"cfme_tests","full_name":"RedHatQE/cfme_tests","owner":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RedHatQE/cfme_tests","description":"CloudForms Management Engine - Functional tests","fork":false,"url":"https://api.github.com/repos/RedHatQE/cfme_tests","forks_url":"https://api.github.com/repos/RedHatQE/cfme_tests/forks","keys_url":"https://api.github.com/repos/RedHatQE/cfme_tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedHatQE/cfme_tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedHatQE/cfme_tests/teams","hooks_url":"https://api.github.com/repos/RedHatQE/cfme_tests/hooks","issue_events_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/events{/number}","events_url":"https://api.github.com/repos/RedHatQE/cfme_tests/events","assignees_url":"https://api.github.com/repos/RedHatQE/cfme_tests/assignees{/user}","branches_url":"https://api.github.com/repos/RedHatQE/cfme_tests/branches{/branch}","tags_url":"https://api.github.com/repos/RedHatQE/cfme_tests/tags","blobs_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/{sha}","languages_url":"https://api.github.com/repos/RedHatQE/cfme_tests/languages","stargazers_url":"https://api.github.com/repos/RedHatQE/cfme_tests/stargazers","contributors_url":"https://api.github.com/repos/RedHatQE/cfme_tests/contributors","subscribers_url":"https://api.github.com/repos/RedHatQE/cfme_tests/subscribers","subscription_url":"https://api.github.com/repos/RedHatQE/cfme_tests/subscription","commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedHatQE/cfme_tests/contents/{+path}","compare_url":"https://api.github.com/repos/RedHatQE/cfme_tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedHatQE/cfme_tests/merges","archive_url":"https://api.github.com/repos/RedHatQE/cfme_tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedHatQE/cfme_tests/downloads","issues_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues{/number}","pulls_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls{/number}","milestones_url":"https://api.github.com/repos/RedHatQE/cfme_tests/milestones{/number}","notifications_url":"https://api.github.com/repos/RedHatQE/cfme_tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedHatQE/cfme_tests/labels{/name}","releases_url":"https://api.github.com/repos/RedHatQE/cfme_tests/releases{/id}","deployments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/deployments","created_at":"2013-02-06T21:59:17Z","updated_at":"2016-05-24T09:07:05Z","pushed_at":"2016-05-25T08:11:52Z","git_url":"git://github.com/RedHatQE/cfme_tests.git","ssh_url":"git@github.com:RedHatQE/cfme_tests.git","clone_url":"https://github.com/RedHatQE/cfme_tests.git","svn_url":"https://github.com/RedHatQE/cfme_tests","homepage":"","size":14344,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":74,"forks":56,"open_issues":74,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998"},"html":{"href":"https://github.com/RedHatQE/cfme_tests/pull/2998"},"issue":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2998"},"comments":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2998/comments"},"review_comments":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998/comments"},"review_comment":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2998/commits"},"statuses":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/3da6bfc2b8fe44cece6ee54a0e0e4c16953fd234"}}}}
{"actor":{"display_login":"psav"}}