{"action":"created","comment":{"url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments/29810368","id":29810368,"diff_hunk":"@@ -0,0 +1,40 @@\n+@images\n+Feature: OpenStack Image management\n+  As an administrator\n+  I want to make sure that OpenStack Image management component\n+  is working correctly\n+\n+  @create_kvm\n+  Scenario: Creation of KVM image\n+    Given KVM source image exists\n+    And glance image does not exist\n+    When I create new glance image based on jeos\n+    Then this image has non-empty ID\n+    And its ID can be used to show the image info\n+    And the status of the image is active\n+    When I delete the image","path":"features/images.feature","position":15,"original_position":15,"commit_id":"07147a9c5590865248378c496ff1b0e481897429","original_commit_id":"07147a9c5590865248378c496ff1b0e481897429","user":{"login":"aspiers","id":100738,"avatar_url":"https://avatars.githubusercontent.com/u/100738?v=3","gravatar_id":"","url":"https://api.github.com/users/aspiers","html_url":"https://github.com/aspiers","followers_url":"https://api.github.com/users/aspiers/followers","following_url":"https://api.github.com/users/aspiers/following{/other_user}","gists_url":"https://api.github.com/users/aspiers/gists{/gist_id}","starred_url":"https://api.github.com/users/aspiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aspiers/subscriptions","organizations_url":"https://api.github.com/users/aspiers/orgs","repos_url":"https://api.github.com/users/aspiers/repos","events_url":"https://api.github.com/users/aspiers/events{/privacy}","received_events_url":"https://api.github.com/users/aspiers/received_events","type":"User","site_admin":false},"body":"Actually the DRY violation is a bit worse than I described, because these 3 steps are also duplicated in every scenario:\r\n\r\n```gherkin\r\nThen this image has non-empty ID\r\n  And its ID can be used to show the image info\r\n  And the status of the image is active\r\n```\r\n\r\nSo it should be possible to collapse each scenario from 8 steps down to 2 or 3 by using appropriate nested steps.\r\n\r\nOne more point - these are mostly not my original ideas.  Lots of people advocate DRY in Cucumber features, e.g.\r\n\r\n* http://eggsonbread.com/2010/09/06/my-cucumber-best-practices-and-tips/\r\n* http://makandracards.com/makandra/18905-how-to-not-repeat-yourself-in-cucumber-scenarios\r\n* http://rails-bestpractices.com/tag/cucumber/\r\n* http://coryschires.com/ten-tips-for-writing-better-cucumber-steps/","created_at":"2015-05-06T22:45:10Z","updated_at":"2015-05-06T22:45:10Z","html_url":"https://github.com/SUSE-Cloud/cct/pull/2#discussion_r29810368","pull_request_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/comments/29810368"},"html":{"href":"https://github.com/SUSE-Cloud/cct/pull/2#discussion_r29810368"},"pull_request":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2","id":34450271,"html_url":"https://github.com/SUSE-Cloud/cct/pull/2","diff_url":"https://github.com/SUSE-Cloud/cct/pull/2.diff","patch_url":"https://github.com/SUSE-Cloud/cct/pull/2.patch","issue_url":"https://api.github.com/repos/SUSE-Cloud/cct/issues/2","number":2,"state":"open","locked":false,"title":"tests for creating glance image","user":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"body":"Covers tests 107-109 from https://github.com/SUSE-Cloud/qa-openstack-cli/tree/master/tests","created_at":"2015-04-30T11:20:31Z","updated_at":"2015-05-06T22:45:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31646d8c07d0da73b78cb260cec83f2c98b92f24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2/commits","review_comments_url":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2/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/2/comments","statuses_url":"https://api.github.com/repos/SUSE-Cloud/cct/statuses/07147a9c5590865248378c496ff1b0e481897429","head":{"label":"jsuchome:glance_to_master","ref":"glance_to_master","sha":"07147a9c5590865248378c496ff1b0e481897429","user":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"repo":{"id":34778612,"name":"cct","full_name":"jsuchome/cct","owner":{"login":"jsuchome","id":910000,"avatar_url":"https://avatars.githubusercontent.com/u/910000?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuchome","html_url":"https://github.com/jsuchome","followers_url":"https://api.github.com/users/jsuchome/followers","following_url":"https://api.github.com/users/jsuchome/following{/other_user}","gists_url":"https://api.github.com/users/jsuchome/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuchome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuchome/subscriptions","organizations_url":"https://api.github.com/users/jsuchome/orgs","repos_url":"https://api.github.com/users/jsuchome/repos","events_url":"https://api.github.com/users/jsuchome/events{/privacy}","received_events_url":"https://api.github.com/users/jsuchome/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsuchome/cct","description":"Cucumber Cloud Testsuite","fork":true,"url":"https://api.github.com/repos/jsuchome/cct","forks_url":"https://api.github.com/repos/jsuchome/cct/forks","keys_url":"https://api.github.com/repos/jsuchome/cct/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsuchome/cct/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsuchome/cct/teams","hooks_url":"https://api.github.com/repos/jsuchome/cct/hooks","issue_events_url":"https://api.github.com/repos/jsuchome/cct/issues/events{/number}","events_url":"https://api.github.com/repos/jsuchome/cct/events","assignees_url":"https://api.github.com/repos/jsuchome/cct/assignees{/user}","branches_url":"https://api.github.com/repos/jsuchome/cct/branches{/branch}","tags_url":"https://api.github.com/repos/jsuchome/cct/tags","blobs_url":"https://api.github.com/repos/jsuchome/cct/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsuchome/cct/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsuchome/cct/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsuchome/cct/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsuchome/cct/statuses/{sha}","languages_url":"https://api.github.com/repos/jsuchome/cct/languages","stargazers_url":"https://api.github.com/repos/jsuchome/cct/stargazers","contributors_url":"https://api.github.com/repos/jsuchome/cct/contributors","subscribers_url":"https://api.github.com/repos/jsuchome/cct/subscribers","subscription_url":"https://api.github.com/repos/jsuchome/cct/subscription","commits_url":"https://api.github.com/repos/jsuchome/cct/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsuchome/cct/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsuchome/cct/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsuchome/cct/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsuchome/cct/contents/{+path}","compare_url":"https://api.github.com/repos/jsuchome/cct/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsuchome/cct/merges","archive_url":"https://api.github.com/repos/jsuchome/cct/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsuchome/cct/downloads","issues_url":"https://api.github.com/repos/jsuchome/cct/issues{/number}","pulls_url":"https://api.github.com/repos/jsuchome/cct/pulls{/number}","milestones_url":"https://api.github.com/repos/jsuchome/cct/milestones{/number}","notifications_url":"https://api.github.com/repos/jsuchome/cct/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsuchome/cct/labels{/name}","releases_url":"https://api.github.com/repos/jsuchome/cct/releases{/id}","created_at":"2015-04-29T07:24:15Z","updated_at":"2015-05-04T15:26:34Z","pushed_at":"2015-05-06T13:03:41Z","git_url":"git://github.com/jsuchome/cct.git","ssh_url":"git@github.com:jsuchome/cct.git","clone_url":"https://github.com/jsuchome/cct.git","svn_url":"https://github.com/jsuchome/cct","homepage":"","size":313,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"SUSE-Cloud:master","ref":"master","sha":"8013aaa774b9c937e6a6569bc25c43e809ad8a1d","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-05T14:35:46Z","pushed_at":"2015-05-06T13:03:41Z","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":360,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2"},"html":{"href":"https://github.com/SUSE-Cloud/cct/pull/2"},"issue":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/issues/2"},"comments":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/pulls/2/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/2/commits"},"statuses":{"href":"https://api.github.com/repos/SUSE-Cloud/cct/statuses/07147a9c5590865248378c496ff1b0e481897429"}}}}