{"action":"created","comment":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/44733549","id":44733549,"diff_hunk":"@@ -0,0 +1,192 @@\n+import tests.config as config\n+import tests.functional_test as functional_test\n+\n+TEST_TENANT_NAME = 'tenant3'\n+\n+\n+class VerifyDstDeletedTenantResources(functional_test.FunctionalTest):\n+\n+    def setUp(self):\n+        self.dst_cloud.switch_user(user=self.dst_cloud.username,\n+                                   password=self.dst_cloud.password,\n+                                   tenant='admin')\n+\n+        (self.tenant_res_dict,) = \\\n+            [tenant for tenant in config.tenants\n+             if tenant['name'] == TEST_TENANT_NAME]\n+\n+        self.tenants = {ten.name: ten.id for\n+                        ten in self.dst_cloud.keystoneclient.tenants.list()}\n+\n+        dst_cinder_volumes = self.dst_cloud.cinderclient.volumes.list(\n+            search_opts={'all_tenants': 0})\n+        self.dst_volumes_admin = \\\n+            {vol.display_name: vol for vol in dst_cinder_volumes}\n+\n+        self.dst_vm_list = \\\n+            self.dst_cloud.novaclient.servers.list(\n+                search_opts={'tenant_id': self.tenants['admin']})\n+\n+        self.tenant_users_list = \\\n+            [user for user in config.users if\n+             'tenant' in user and user['tenant'] == TEST_TENANT_NAME]\n+\n+        user_names_tenant = [user['name'] for user in self.tenant_users_list]\n+        user_names_with_keypair = [key['user'] for key in config.keypairs]\n+        self.tenant_users_with_keyp = \\\n+            set(user_names_with_keypair).intersection(user_names_tenant)\n+\n+    def tenant_exists_on_dst(self, tenant_name):\n+        return bool(tenant_name in self.tenants)","path":"devlab/tests/test_verify_dst_del_tenant_resources.py","position":null,"original_position":40,"commit_id":"802a7e43a0a436d2ea331aa67a070a8d1d41025a","original_commit_id":"a1bc1522bf8850177765fc31b4584486d3177449","user":{"login":"plomakin","id":1098027,"avatar_url":"https://avatars.githubusercontent.com/u/1098027?v=3","gravatar_id":"","url":"https://api.github.com/users/plomakin","html_url":"https://github.com/plomakin","followers_url":"https://api.github.com/users/plomakin/followers","following_url":"https://api.github.com/users/plomakin/following{/other_user}","gists_url":"https://api.github.com/users/plomakin/gists{/gist_id}","starred_url":"https://api.github.com/users/plomakin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plomakin/subscriptions","organizations_url":"https://api.github.com/users/plomakin/orgs","repos_url":"https://api.github.com/users/plomakin/repos","events_url":"https://api.github.com/users/plomakin/events{/privacy}","received_events_url":"https://api.github.com/users/plomakin/received_events","type":"User","site_admin":false},"body":"same as below","created_at":"2015-11-12T23:54:51Z","updated_at":"2015-11-12T23:54:51Z","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566#discussion_r44733549","pull_request_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566","_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments/44733549"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566#discussion_r44733549"},"pull_request":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566"}}},"pull_request":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566","id":50328306,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566","diff_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566.diff","patch_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566.patch","issue_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/566","number":566,"state":"open","locked":false,"title":"[SAIC-569] Verify openstack objects of deleted tenant on DST","user":{"login":"pavloivanets","id":15219800,"avatar_url":"https://avatars.githubusercontent.com/u/15219800?v=3","gravatar_id":"","url":"https://api.github.com/users/pavloivanets","html_url":"https://github.com/pavloivanets","followers_url":"https://api.github.com/users/pavloivanets/followers","following_url":"https://api.github.com/users/pavloivanets/following{/other_user}","gists_url":"https://api.github.com/users/pavloivanets/gists{/gist_id}","starred_url":"https://api.github.com/users/pavloivanets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavloivanets/subscriptions","organizations_url":"https://api.github.com/users/pavloivanets/orgs","repos_url":"https://api.github.com/users/pavloivanets/repos","events_url":"https://api.github.com/users/pavloivanets/events{/privacy}","received_events_url":"https://api.github.com/users/pavloivanets/received_events","type":"User","site_admin":false},"body":"Migrate deleted tenant's openstack objects.","created_at":"2015-11-10T23:38:14Z","updated_at":"2015-11-12T23:54:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a77ada95e51560b3c0b9b3c637f72bd32306ee0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566/commits","review_comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566/comments","review_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/566/comments","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/802a7e43a0a436d2ea331aa67a070a8d1d41025a","head":{"label":"pavloivanets:test-verify-deltenant2","ref":"test-verify-deltenant2","sha":"802a7e43a0a436d2ea331aa67a070a8d1d41025a","user":{"login":"pavloivanets","id":15219800,"avatar_url":"https://avatars.githubusercontent.com/u/15219800?v=3","gravatar_id":"","url":"https://api.github.com/users/pavloivanets","html_url":"https://github.com/pavloivanets","followers_url":"https://api.github.com/users/pavloivanets/followers","following_url":"https://api.github.com/users/pavloivanets/following{/other_user}","gists_url":"https://api.github.com/users/pavloivanets/gists{/gist_id}","starred_url":"https://api.github.com/users/pavloivanets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavloivanets/subscriptions","organizations_url":"https://api.github.com/users/pavloivanets/orgs","repos_url":"https://api.github.com/users/pavloivanets/repos","events_url":"https://api.github.com/users/pavloivanets/events{/privacy}","received_events_url":"https://api.github.com/users/pavloivanets/received_events","type":"User","site_admin":false},"repo":{"id":44629979,"name":"CloudFerry","full_name":"pavloivanets/CloudFerry","owner":{"login":"pavloivanets","id":15219800,"avatar_url":"https://avatars.githubusercontent.com/u/15219800?v=3","gravatar_id":"","url":"https://api.github.com/users/pavloivanets","html_url":"https://github.com/pavloivanets","followers_url":"https://api.github.com/users/pavloivanets/followers","following_url":"https://api.github.com/users/pavloivanets/following{/other_user}","gists_url":"https://api.github.com/users/pavloivanets/gists{/gist_id}","starred_url":"https://api.github.com/users/pavloivanets/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavloivanets/subscriptions","organizations_url":"https://api.github.com/users/pavloivanets/orgs","repos_url":"https://api.github.com/users/pavloivanets/repos","events_url":"https://api.github.com/users/pavloivanets/events{/privacy}","received_events_url":"https://api.github.com/users/pavloivanets/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavloivanets/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":true,"url":"https://api.github.com/repos/pavloivanets/CloudFerry","forks_url":"https://api.github.com/repos/pavloivanets/CloudFerry/forks","keys_url":"https://api.github.com/repos/pavloivanets/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavloivanets/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavloivanets/CloudFerry/teams","hooks_url":"https://api.github.com/repos/pavloivanets/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/pavloivanets/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/pavloivanets/CloudFerry/events","assignees_url":"https://api.github.com/repos/pavloivanets/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/pavloivanets/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/pavloivanets/CloudFerry/tags","blobs_url":"https://api.github.com/repos/pavloivanets/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavloivanets/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavloivanets/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavloivanets/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavloivanets/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/pavloivanets/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/pavloivanets/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/pavloivanets/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/pavloivanets/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/pavloivanets/CloudFerry/subscription","commits_url":"https://api.github.com/repos/pavloivanets/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavloivanets/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavloivanets/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavloivanets/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/pavloivanets/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/pavloivanets/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavloivanets/CloudFerry/merges","archive_url":"https://api.github.com/repos/pavloivanets/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavloivanets/CloudFerry/downloads","issues_url":"https://api.github.com/repos/pavloivanets/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/pavloivanets/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/pavloivanets/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/pavloivanets/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavloivanets/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/pavloivanets/CloudFerry/releases{/id}","created_at":"2015-10-20T19:28:44Z","updated_at":"2015-10-20T19:28:45Z","pushed_at":"2015-11-12T23:45:24Z","git_url":"git://github.com/pavloivanets/CloudFerry.git","ssh_url":"git@github.com:pavloivanets/CloudFerry.git","clone_url":"https://github.com/pavloivanets/CloudFerry.git","svn_url":"https://github.com/pavloivanets/CloudFerry","homepage":null,"size":2818,"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":"MirantisWorkloadMobility:devel","ref":"devel","sha":"f21bc754d20ad3a8aa75b8f18e6f78bf6058dc66","user":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"repo":{"id":23142392,"name":"CloudFerry","full_name":"MirantisWorkloadMobility/CloudFerry","owner":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","description":"CloudFerry is a cloud virtual workloads migration tool designed and developed by Mirantis Inc. ","fork":false,"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry","forks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/forks","keys_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/teams","hooks_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/hooks","issue_events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/events{/number}","events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/events","assignees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/assignees{/user}","branches_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/branches{/branch}","tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/tags","blobs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/refs{/sha}","trees_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/{sha}","languages_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/languages","stargazers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/stargazers","contributors_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contributors","subscribers_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscribers","subscription_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/subscription","commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/commits{/sha}","git_commits_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/git/commits{/sha}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/comments{/number}","issue_comment_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/comments{/number}","contents_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/contents/{+path}","compare_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/merges","archive_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/downloads","issues_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues{/number}","pulls_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls{/number}","milestones_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/milestones{/number}","notifications_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/labels{/name}","releases_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/releases{/id}","created_at":"2014-08-20T09:00:38Z","updated_at":"2015-10-28T23:51:16Z","pushed_at":"2015-11-12T23:45:24Z","git_url":"git://github.com/MirantisWorkloadMobility/CloudFerry.git","ssh_url":"git@github.com:MirantisWorkloadMobility/CloudFerry.git","clone_url":"https://github.com/MirantisWorkloadMobility/CloudFerry.git","svn_url":"https://github.com/MirantisWorkloadMobility/CloudFerry","homepage":null,"size":8042,"stargazers_count":13,"watchers_count":13,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":19,"forks":33,"open_issues":19,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566"},"html":{"href":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/566"},"issue":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/566"},"comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/566/comments"},"review_comments":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566/comments"},"review_comment":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/566/commits"},"statuses":{"href":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/statuses/802a7e43a0a436d2ea331aa67a070a8d1d41025a"}}}}