{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments/30230973","id":30230973,"diff_hunk":"@@ -42,6 +42,15 @@\n   log.error(message + \"failed\")  if scenario.failed?\n end\n \n+After('@users') do\n+  user_name = config[\"features\"][\"users\"][\"user_name\"]\n+  users = control_node.openstack.user.list\n+  user_names = users.map(&:name)\n+  if user_names.include? user_name\n+    control_node.openstack.user.delete user_name\n+  end","path":"features/support/env.rb","position":10,"original_position":10,"commit_id":"5eb9a8b3559e10441dfe30a571b36b8307f653c5","original_commit_id":"5eb9a8b3559e10441dfe30a571b36b8307f653c5","user":{"login":"vmoravec","id":1215576,"avatar_url":"https://avatars.githubusercontent.com/u/1215576?v=3","gravatar_id":"","url":"https://api.github.com/users/vmoravec","html_url":"https://github.com/vmoravec","followers_url":"https://api.github.com/users/vmoravec/followers","following_url":"https://api.github.com/users/vmoravec/following{/other_user}","gists_url":"https://api.github.com/users/vmoravec/gists{/gist_id}","starred_url":"https://api.github.com/users/vmoravec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmoravec/subscriptions","organizations_url":"https://api.github.com/users/vmoravec/orgs","repos_url":"https://api.github.com/users/vmoravec/repos","events_url":"https://api.github.com/users/vmoravec/events{/privacy}","received_events_url":"https://api.github.com/users/vmoravec/received_events","type":"User","site_admin":false},"body":"This might be written shorter by using `find`:\r\n```ruby\r\nif control_node.openstack.user.list.find {|u| u.name == user_name }\r\n  control_node.openstack.user.delete(user_name)\r\nend\r\n```\r\n","created_at":"2015-05-13T13:41:42Z","updated_at":"2015-05-13T13:41:42Z","html_url":"https://github.com/SUSE-Cloud/cct/pull/1#discussion_r30230973","pull_request_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments/30230973"},"html":{"href":"https://github.com/SUSE-Cloud/cct/pull/1#discussion_r30230973"},"pull_request":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1","id":34371515,"html_url":"https://github.com/SUSE-Cloud/cct/pull/1","diff_url":"https://github.com/SUSE-Cloud/cct/pull/1.diff","patch_url":"https://github.com/SUSE-Cloud/cct/pull/1.patch","issue_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues/1","number":1,"state":"open","locked":false,"title":"basic keystone tests","user":{"login":"thutterer","id":5372947,"avatar_url":"https://avatars.githubusercontent.com/u/5372947?v=3","gravatar_id":"","url":"https://api.github.com/users/thutterer","html_url":"https://github.com/thutterer","followers_url":"https://api.github.com/users/thutterer/followers","following_url":"https://api.github.com/users/thutterer/following{/other_user}","gists_url":"https://api.github.com/users/thutterer/gists{/gist_id}","starred_url":"https://api.github.com/users/thutterer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thutterer/subscriptions","organizations_url":"https://api.github.com/users/thutterer/orgs","repos_url":"https://api.github.com/users/thutterer/repos","events_url":"https://api.github.com/users/thutterer/events{/privacy}","received_events_url":"https://api.github.com/users/thutterer/received_events","type":"User","site_admin":false},"body":"@jsuchome This is how far i got. \r\n@vmoravec This is not meant to be merged yet! Lot of typos and such. But a short feedback on how I implemented the two tests would still be appreciated.","created_at":"2015-04-29T14:58:09Z","updated_at":"2015-05-13T13:41:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f1fdf7046ac5f849dd61f2d4cda9ff71c7604d5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues/1/comments","statuses_url":"https://api.github.com/repos/SUSE-Cloud/cct/statuses/5eb9a8b3559e10441dfe30a571b36b8307f653c5","head":{"label":"thutterer:add_basic_tests_keystone_glance","ref":"add_basic_tests_keystone_glance","sha":"5eb9a8b3559e10441dfe30a571b36b8307f653c5","user":{"login":"thutterer","id":5372947,"avatar_url":"https://avatars.githubusercontent.com/u/5372947?v=3","gravatar_id":"","url":"https://api.github.com/users/thutterer","html_url":"https://github.com/thutterer","followers_url":"https://api.github.com/users/thutterer/followers","following_url":"https://api.github.com/users/thutterer/following{/other_user}","gists_url":"https://api.github.com/users/thutterer/gists{/gist_id}","starred_url":"https://api.github.com/users/thutterer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thutterer/subscriptions","organizations_url":"https://api.github.com/users/thutterer/orgs","repos_url":"https://api.github.com/users/thutterer/repos","events_url":"https://api.github.com/users/thutterer/events{/privacy}","received_events_url":"https://api.github.com/users/thutterer/received_events","type":"User","site_admin":false},"repo":{"id":34508366,"name":"cct","full_name":"thutterer/cct","owner":{"login":"thutterer","id":5372947,"avatar_url":"https://avatars.githubusercontent.com/u/5372947?v=3","gravatar_id":"","url":"https://api.github.com/users/thutterer","html_url":"https://github.com/thutterer","followers_url":"https://api.github.com/users/thutterer/followers","following_url":"https://api.github.com/users/thutterer/following{/other_user}","gists_url":"https://api.github.com/users/thutterer/gists{/gist_id}","starred_url":"https://api.github.com/users/thutterer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thutterer/subscriptions","organizations_url":"https://api.github.com/users/thutterer/orgs","repos_url":"https://api.github.com/users/thutterer/repos","events_url":"https://api.github.com/users/thutterer/events{/privacy}","received_events_url":"https://api.github.com/users/thutterer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thutterer/cct","description":"Cucumber Cloud Testsuite","fork":true,"url":"https://api.github.com/repos/thutterer/cct","forks_url":"https://api.github.com/repos/thutterer/cct/forks","keys_url":"https://api.github.com/repos/thutterer/cct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thutterer/cct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thutterer/cct/teams","hooks_url":"https://api.github.com/repos/thutterer/cct/hooks","issue_events_url":"https://api.github.com/repos/thutterer/cct/issues/events{/number}","events_url":"https://api.github.com/repos/thutterer/cct/events","assignees_url":"https://api.github.com/repos/thutterer/cct/assignees{/user}","branches_url":"https://api.github.com/repos/thutterer/cct/branches{/branch}","tags_url":"https://api.github.com/repos/thutterer/cct/tags","blobs_url":"https://api.github.com/repos/thutterer/cct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thutterer/cct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thutterer/cct/git/refs{/sha}","trees_url":"https://api.github.com/repos/thutterer/cct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thutterer/cct/statuses/{sha}","languages_url":"https://api.github.com/repos/thutterer/cct/languages","stargazers_url":"https://api.github.com/repos/thutterer/cct/stargazers","contributors_url":"https://api.github.com/repos/thutterer/cct/contributors","subscribers_url":"https://api.github.com/repos/thutterer/cct/subscribers","subscription_url":"https://api.github.com/repos/thutterer/cct/subscription","commits_url":"https://api.github.com/repos/thutterer/cct/commits{/sha}","git_commits_url":"https://api.github.com/repos/thutterer/cct/git/commits{/sha}","comments_url":"https://api.github.com/repos/thutterer/cct/comments{/number}","issue_comment_url":"https://api.github.com/repos/thutterer/cct/issues/comments{/number}","contents_url":"https://api.github.com/repos/thutterer/cct/contents/{+path}","compare_url":"https://api.github.com/repos/thutterer/cct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thutterer/cct/merges","archive_url":"https://api.github.com/repos/thutterer/cct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thutterer/cct/downloads","issues_url":"https://api.github.com/repos/thutterer/cct/issues{/number}","pulls_url":"https://api.github.com/repos/thutterer/cct/pulls{/number}","milestones_url":"https://api.github.com/repos/thutterer/cct/milestones{/number}","notifications_url":"https://api.github.com/repos/thutterer/cct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thutterer/cct/labels{/name}","releases_url":"https://api.github.com/repos/thutterer/cct/releases{/id}","created_at":"2015-04-24T08:54:57Z","updated_at":"2015-04-29T08:14:03Z","pushed_at":"2015-05-13T13:03:28Z","git_url":"git://github.com/thutterer/cct.git","ssh_url":"git@github.com:thutterer/cct.git","clone_url":"https://github.com/thutterer/cct.git","svn_url":"https://github.com/thutterer/cct","homepage":"","size":294,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SUSE-Cloud:master","ref":"master","sha":"d7ca9fbe6a0d79eff8a62fc449d060efd7560104","user":{"login":"SUSE-Cloud","id":1553906,"avatar_url":"https://avatars.githubusercontent.com/u/1553906?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE-Cloud","html_url":"https://github.com/SUSE-Cloud","followers_url":"https://api.github.com/users/SUSE-Cloud/followers","following_url":"https://api.github.com/users/SUSE-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/SUSE-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE-Cloud/subscriptions","organizations_url":"https://api.github.com/users/SUSE-Cloud/orgs","repos_url":"https://api.github.com/users/SUSE-Cloud/repos","events_url":"https://api.github.com/users/SUSE-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE-Cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":33720711,"name":"cct","full_name":"SUSE-Cloud/cct","owner":{"login":"SUSE-Cloud","id":1553906,"avatar_url":"https://avatars.githubusercontent.com/u/1553906?v=3","gravatar_id":"","url":"https://api.github.com/users/SUSE-Cloud","html_url":"https://github.com/SUSE-Cloud","followers_url":"https://api.github.com/users/SUSE-Cloud/followers","following_url":"https://api.github.com/users/SUSE-Cloud/following{/other_user}","gists_url":"https://api.github.com/users/SUSE-Cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/SUSE-Cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SUSE-Cloud/subscriptions","organizations_url":"https://api.github.com/users/SUSE-Cloud/orgs","repos_url":"https://api.github.com/users/SUSE-Cloud/repos","events_url":"https://api.github.com/users/SUSE-Cloud/events{/privacy}","received_events_url":"https://api.github.com/users/SUSE-Cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SUSE-Cloud/cct","description":"Cucumber Cloud Testsuite","fork":true,"url":"https://api.github.com/repos/SUSE-Cloud/cct","forks_url":"https://api.github.com/repos/SUSE-Cloud/cct/forks","keys_url":"https://api.github.com/repos/SUSE-Cloud/cct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SUSE-Cloud/cct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SUSE-Cloud/cct/teams","hooks_url":"https://api.github.com/repos/SUSE-Cloud/cct/hooks","issue_events_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues/events{/number}","events_url":"https://api.github.com/repos/SUSE-Cloud/cct/events","assignees_url":"https://api.github.com/repos/SUSE-Cloud/cct/assignees{/user}","branches_url":"https://api.github.com/repos/SUSE-Cloud/cct/branches{/branch}","tags_url":"https://api.github.com/repos/SUSE-Cloud/cct/tags","blobs_url":"https://api.github.com/repos/SUSE-Cloud/cct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SUSE-Cloud/cct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SUSE-Cloud/cct/git/refs{/sha}","trees_url":"https://api.github.com/repos/SUSE-Cloud/cct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SUSE-Cloud/cct/statuses/{sha}","languages_url":"https://api.github.com/repos/SUSE-Cloud/cct/languages","stargazers_url":"https://api.github.com/repos/SUSE-Cloud/cct/stargazers","contributors_url":"https://api.github.com/repos/SUSE-Cloud/cct/contributors","subscribers_url":"https://api.github.com/repos/SUSE-Cloud/cct/subscribers","subscription_url":"https://api.github.com/repos/SUSE-Cloud/cct/subscription","commits_url":"https://api.github.com/repos/SUSE-Cloud/cct/commits{/sha}","git_commits_url":"https://api.github.com/repos/SUSE-Cloud/cct/git/commits{/sha}","comments_url":"https://api.github.com/repos/SUSE-Cloud/cct/comments{/number}","issue_comment_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues/comments{/number}","contents_url":"https://api.github.com/repos/SUSE-Cloud/cct/contents/{+path}","compare_url":"https://api.github.com/repos/SUSE-Cloud/cct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SUSE-Cloud/cct/merges","archive_url":"https://api.github.com/repos/SUSE-Cloud/cct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SUSE-Cloud/cct/downloads","issues_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues{/number}","pulls_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls{/number}","milestones_url":"https://api.github.com/repos/SUSE-Cloud/cct/milestones{/number}","notifications_url":"https://api.github.com/repos/SUSE-Cloud/cct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SUSE-Cloud/cct/labels{/name}","releases_url":"https://api.github.com/repos/SUSE-Cloud/cct/releases{/id}","created_at":"2015-04-10T09:36:28Z","updated_at":"2015-05-07T11:24:22Z","pushed_at":"2015-05-13T13:03:29Z","git_url":"git://github.com/SUSE-Cloud/cct.git","ssh_url":"git@github.com:SUSE-Cloud/cct.git","clone_url":"https://github.com/SUSE-Cloud/cct.git","svn_url":"https://github.com/SUSE-Cloud/cct","homepage":"","size":566,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1"},"html":{"href":"https://github.com/SUSE-Cloud/cct/pull/1"},"issue":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/issues/1"},"comments":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/statuses/5eb9a8b3559e10441dfe30a571b36b8307f653c5"}}}}