On Mon, 2010-03-15 at 14:17 +0100, [email protected] wrote:
> I finnish revamp of Test::Unit to Cucumber to match
> testing suite used in portal.

Cool.

> Basic usage:
> 
> rake features
> 
> OR:
> 
> cucumber features/<feature_name>.feature -q
> 
> You don't need to start server or configure something extra.
> Right now, there are two failures:
> 
> 1. Image with no name in Mock driver (could be easely fixed in fixtures)
> 2. Device name in one storage volume is empty (not sure about this)

I get a long list of failures after applying your patch to the HEAD of
master. I've attached the output I get from 'rake features'.

Out of curiosity, is there a way to generate pretty HTML output ?
Slogging through the dump on the console seems like a drag.

> One bonus thing is, that if you have 'rcov' gem installed,
> you will get 'code coverage' generated by this gem in './coverage'
> directory. This could be extra usefull for testing.

For me, it only worked if I had rcov installed - I agree that it's
useful, but since generating the rcov report takes quite a bit of time,
it should only be done optionally.

> Second bonus thing is, that these test are configurable.
> Right now there is only configuration for 'mock' driver,
> but with small changes, (hopefully) we will be able to test
> EC2 and other providers using Cucumber as well.

Any idea how hard it would be to completely stub out the interaction
with the backend cloud for the tests ? For an integration/release test,
we'd definitely want to run them against the actual clouds, but for
individual developers, that takes too long and costs money.

David

(in /homes/lutter/code/deltacloud/core/server)
Feature: Working with flavors
  In order to work with flavors

  Background:               # features/flavors.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all flavors              # features/flavors.feature:7
    When I request index operation for flavors collection  # features/step_definitions/common_steps.rb:10
    Then I should see <FLAVOR_COUNT> flavor inside flavors # features/step_definitions/common_steps.rb:17
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:23:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/flavors.feature:9:in `Then I should see <FLAVOR_COUNT> flavor inside flavors'

  Scenario: I want to show flavor details            # features/flavors.feature:11
    When I request for '<FLAVOR_ID>' flavor          # features/step_definitions/common_steps.rb:28
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:30:in `/^I request for '(.+)' (.+)$/'
      features/flavors.feature:12:in `When I request for '<FLAVOR_ID>' flavor'
    Then I should get this flavor                    # features/step_definitions/common_steps.rb:33
    And flavor should have valid href parameter      # features/step_definitions/flavors_steps.rb:1
    And flavor should contain id parameter           # features/step_definitions/common_steps.rb:90
    And flavor should contain architecture parameter # features/step_definitions/common_steps.rb:90
    And flavor should contain memory parameter       # features/step_definitions/common_steps.rb:90
    And flavor should contain storage parameter      # features/step_definitions/common_steps.rb:90

  Scenario: I want filter flavors by architecture                    # features/flavors.feature:20
    When I want flavors with '<FLAVOR_ARCH>' architecture            # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/flavors.feature:21:in `When I want flavors with '<FLAVOR_ARCH>' architecture'
    Then I should get only flavors with architecture '<FLAVOR_ARCH>' # features/step_definitions/common_steps.rb:47

Feature: Working with images
  In order to work with images

  Background:               # features/images.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all images                      # features/images.feature:7
    When I request index operation for images collection          # features/step_definitions/common_steps.rb:10
    Then I in order to see list of images I need to be authorized # features/step_definitions/common_steps.rb:75
    When I enter correct username and password                    # features/step_definitions/common_steps.rb:79
    And I request index operation for images collection           # features/step_definitions/common_steps.rb:10
    Then I should see <IMAGE_COUNT> image inside images           # features/step_definitions/common_steps.rb:17
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:23:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/images.feature:12:in `Then I should see <IMAGE_COUNT> image inside images'

  Scenario: I want to show image details             # features/images.feature:14
    Given I am authorized to show image '<IMAGE_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/images.feature:15:in `Given I am authorized to show image '<IMAGE_ID>''
    When I request for '<IMAGE_ID>' image            # features/step_definitions/common_steps.rb:28
    Then I should get this image                     # features/step_definitions/common_steps.rb:33
    And image should have valid href parameter       # features/step_definitions/images_steps.rb:2
    And image should contain id parameter            # features/step_definitions/common_steps.rb:90
    And image should contain name parameter          # features/step_definitions/common_steps.rb:90
    And image should contain owner_id parameter      # features/step_definitions/common_steps.rb:90
    And image should contain description parameter   # features/step_definitions/common_steps.rb:90
    And image should contain architecture parameter  # features/step_definitions/common_steps.rb:90

  Scenario: I want filter images by owner_id                    # features/images.feature:25
    When I want images with '<IMAGE_OWNER>' owner_id            # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/images.feature:26:in `When I want images with '<IMAGE_OWNER>' owner_id'
    Then I should get only images with owner_id '<IMAGE_OWNER>' # features/step_definitions/common_steps.rb:47

  Scenario: I want filter images by architecture                   # features/images.feature:29
    When I want images with '<IMAGE_ARCH>' architecture            # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/images.feature:30:in `When I want images with '<IMAGE_ARCH>' architecture'
    Then I should get only images with architecture '<IMAGE_ARCH>' # features/step_definitions/common_steps.rb:47

  Scenario: I want filter images by architecture                   # features/images.feature:33
    When I want images with '<IMAGE_ARCH>' architecture            # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/images.feature:34:in `When I want images with '<IMAGE_ARCH>' architecture'
    And images with '<IMAGE_OWNER>' owner_id                       # features/step_definitions/common_steps.rb:43
    Then I should get only images with architecture '<IMAGE_ARCH>' # features/step_definitions/common_steps.rb:47
    And this images should also have owner_id '<IMAGE_OWNER>'      # features/step_definitions/common_steps.rb:61

Feature: Managing instances
  In order to manage instances

  Background:               # features/instances.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all instances             # features/instances.feature:7
    Given I am authorized to list instances                 # features/step_definitions/common_steps.rb:96
    When I request index operation for instances collection # features/step_definitions/common_steps.rb:10
    Then I should see some instance inside instances        # features/step_definitions/common_steps.rb:17
      expected not: == 0,
               got:    0
      
       Diff: (Spec::Expectations::ExpectationNotMetError)
      ./features/step_definitions/common_steps.rb:21:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/instances.feature:11:in `Then I should see some instance inside instances'

  Scenario: I want to create a new instance                 # features/instances.feature:13
    Given I am authorized to create instance                # features/step_definitions/instances_steps.rb:40
    When I request create new instance with:                # features/step_definitions/instances_steps.rb:53
      | name     | <INSTANCE_1_NAME>   |
      | image_id | <INSTANCE_IMAGE_ID> |
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/instances_steps.rb:55:in `__instance_exec0'
      ./features/step_definitions/instances_steps.rb:55:in `map'
      ./features/step_definitions/instances_steps.rb:55:in `/^I request create new instance with:$/'
      features/instances.feature:15:in `When I request create new instance with:'
    Then I should request this instance                     # features/step_definitions/instances_steps.rb:62
    And this instance should be 'RUNNING'                   # features/step_definitions/instances_steps.rb:67
    And this instance should have name '<INSTANCE_1_NAME>'  # features/step_definitions/instances_steps.rb:72
    And this instance should be image '<INSTANCE_IMAGE_ID>' # features/step_definitions/instances_steps.rb:77

  Scenario: I want to create a new instance using realm     # features/instances.feature:23
    Given I am authorized to create instance                # features/step_definitions/instances_steps.rb:40
    When I request create new instance with:                # features/step_definitions/instances_steps.rb:53
      | name     | <INSTANCE_2_NAME>   |
      | image_id | <INSTANCE_IMAGE_ID> |
      | realm    | <INSTANCE_REALM>    |
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/instances_steps.rb:55:in `__instance_exec0'
      ./features/step_definitions/instances_steps.rb:55:in `map'
      ./features/step_definitions/instances_steps.rb:55:in `/^I request create new instance with:$/'
      features/instances.feature:25:in `When I request create new instance with:'
    Then I should request this instance                     # features/step_definitions/instances_steps.rb:62
    And this instance should be 'RUNNING'                   # features/step_definitions/instances_steps.rb:67
    And this instance should have name '<INSTANCE_2_NAME>'  # features/step_definitions/instances_steps.rb:72
    And this instance should be image '<INSTANCE_IMAGE_ID>' # features/step_definitions/instances_steps.rb:77
    And this instance should have realm  '<INSTANCE_REALM>' # features/step_definitions/instances_steps.rb:83

  Scenario: I want to show instance details                  # features/instances.feature:35
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:36:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    When I request for '<INSTANCE_1_ID>' instance            # features/step_definitions/common_steps.rb:28
    Then I should get this instance                          # features/step_definitions/common_steps.rb:33
    And instance should contain id parameter                 # features/step_definitions/common_steps.rb:90
    And instance should contain name parameter               # features/step_definitions/common_steps.rb:90
    And instance should contain owner_id parameter           # features/step_definitions/common_steps.rb:90
    And instance should contain state parameter              # features/step_definitions/common_steps.rb:90
    And instance state should be RUNNING                     # features/step_definitions/instances_steps.rb:1
    When instance state is RUNNING                           # features/step_definitions/instances_steps.rb:5
    Then instance should have one public address             # features/step_definitions/instances_steps.rb:9
    And instance should have one private address             # features/step_definitions/instances_steps.rb:9
    When instance state is RUNNING                           # features/step_definitions/instances_steps.rb:5
    Then instance should include link to 'reboot' action     # features/step_definitions/instances_steps.rb:15
    And instance should include link to 'stop' action        # features/step_definitions/instances_steps.rb:15

  Scenario: I want to get instance image                     # features/instances.feature:51
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:52:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to get details about instance image          # features/step_definitions/instances_steps.rb:24
    Then I could follow image href attribute                 # features/step_definitions/instances_steps.rb:27
    And this attribute should point me to valid image        # features/step_definitions/instances_steps.rb:33

  Scenario: I want to get instance flavor                    # features/instances.feature:58
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:59:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to get details about instance flavor         # features/step_definitions/instances_steps.rb:24
    Then I could follow flavor href attribute                # features/step_definitions/instances_steps.rb:27
    And this attribute should point me to valid flavor       # features/step_definitions/instances_steps.rb:33

  Scenario: I want to get instance realm                     # features/instances.feature:65
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:66:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to get details about instance realm          # features/step_definitions/instances_steps.rb:24
    Then I could follow realm href attribute                 # features/step_definitions/instances_steps.rb:27
    And this attribute should point me to valid realm        # features/step_definitions/instances_steps.rb:33

  Scenario: I want to stop instance                          # features/instances.feature:72
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:73:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to stop this instance                        # features/step_definitions/instances_steps.rb:37
    Then I could follow stop action in actions               # features/step_definitions/instances_steps.rb:44
    And this instance state should be 'STOPPED'              # features/step_definitions/instances_steps.rb:49

  Scenario: I want to start instance                         # features/instances.feature:79
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:80:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to stop this instance                        # features/step_definitions/instances_steps.rb:37
    Then I could follow start action in actions              # features/step_definitions/instances_steps.rb:44
    And this instance state should be 'RUNNING'              # features/step_definitions/instances_steps.rb:49

  Scenario: I want to reboot instance                        # features/instances.feature:86
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:87:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to reboot this instance                      # features/step_definitions/instances_steps.rb:37
    Then I could follow reboot action in actions             # features/step_definitions/instances_steps.rb:44
    And this instance state should be 'RUNNING'              # features/step_definitions/instances_steps.rb:49

  Scenario: I want to destroy instance                       # features/instances.feature:93
    Given I am authorized to show instance '<INSTANCE_1_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/instances.feature:94:in `Given I am authorized to show instance '<INSTANCE_1_ID>''
    Given I request for '<INSTANCE_1_ID>' instance           # features/step_definitions/common_steps.rb:28
    When I want to stop this instance                        # features/step_definitions/instances_steps.rb:37
    Then I could follow stop action in actions               # features/step_definitions/instances_steps.rb:44
    And this instance state should be 'STOPPED'              # features/step_definitions/instances_steps.rb:49

Feature: Working with realms
  In order to work with realms

  Background:               # features/realms.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all realms             # features/realms.feature:7
    When I request index operation for realms collection # features/step_definitions/common_steps.rb:10
    Then I should see <REALM_COUNT> realm inside realms  # features/step_definitions/common_steps.rb:17
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:23:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/realms.feature:9:in `Then I should see <REALM_COUNT> realm inside realms'

  Scenario: I want to show realm details       # features/realms.feature:11
    When I request for '<REALM_ID>' realm      # features/step_definitions/common_steps.rb:28
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:30:in `/^I request for '(.+)' (.+)$/'
      features/realms.feature:12:in `When I request for '<REALM_ID>' realm'
    Then I should get this realm               # features/step_definitions/common_steps.rb:33
    And realm should have valid href parameter # features/step_definitions/realms_steps.rb:1
    And realm should contain id parameter      # features/step_definitions/common_steps.rb:90
    And realm should contain name parameter    # features/step_definitions/common_steps.rb:90
    And realm should contain state parameter   # features/step_definitions/common_steps.rb:90

  Scenario: I want filter realms by state                    # features/realms.feature:19
    When I want realms with '<REALM_STATE>' state            # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/realms.feature:20:in `When I want realms with '<REALM_STATE>' state'
    Then I should get only realms with state '<REALM_STATE>' # features/step_definitions/common_steps.rb:47

Feature: Working with storage snapshots
  In order to work with storage snapshots

  Background:               # features/storage_snapshots.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all storage snapshots                                  # features/storage_snapshots.feature:7
    Given I am authorized to list storage_snapshots                                      # features/step_definitions/common_steps.rb:96
    When I request index operation for storage_snapshots collection                      # features/step_definitions/common_steps.rb:10
    Then I should see <STORAGE_SNAPSHOT_COUNT> storage-snapshot inside storage-snapshots # features/step_definitions/common_steps.rb:17
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:23:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/storage_snapshots.feature:10:in `Then I should see <STORAGE_SNAPSHOT_COUNT> storage snapshot inside storage snapshots'

  Scenario: I want to show storage snapshot details                           # features/storage_snapshots.feature:12
    Given I am authorized to show storage_snapshot '<STORAGE_SNAPSHOT_ID>'    # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/storage_snapshots.feature:13:in `Given I am authorized to show storage snapshot '<STORAGE_SNAPSHOT_ID>''
    When I request for '<STORAGE_SNAPSHOT_ID>' storage snapshot               # features/step_definitions/common_steps.rb:28
    Then I should get this storage snapshot                                   # features/step_definitions/common_steps.rb:33
    And storage snapshot should have valid href parameter                     # features/step_definitions/storage_snapshots_steps.rb:1
    And storage snapshot should contain id parameter                          # features/step_definitions/common_steps.rb:90
    And storage snapshot should contain created parameter                     # features/step_definitions/common_steps.rb:90
    And storage snapshot should contain state parameter                       # features/step_definitions/common_steps.rb:90
    And storage snapshot should have storage-volume with valid href attribute # features/step_definitions/storage_snapshots_steps.rb:6
    When I want to get details about storage volume                           # features/step_definitions/storage_snapshots_steps.rb:11
    Then I could follow storage volume href attribute                         # features/step_definitions/storage_snapshots_steps.rb:15
    And this attribute should point me to valid storage volume                # features/step_definitions/storage_snapshots_steps.rb:21

  Scenario: I want filter storage snapshots by state                    # features/storage_snapshots.feature:25
    Given I am authorized to list storage_snapshots                     # features/step_definitions/common_steps.rb:96
    When I want storage snapshots with '<STORAGE_SNAPSHOT_STATE>' state # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/storage_snapshots.feature:27:in `When I want storage snapshots with '<STORAGE_SNAPSHOT_STATE>' state'
    Then I should get only realms with state '<STORAGE_SNAPSHOT_STATE>' # features/step_definitions/common_steps.rb:47

Feature: Working with storage volumes
  In order to work with storage volumes

  Background:               # features/storage_volumes.feature:4
    Given I want to get XML # features/step_definitions/common_steps.rb:3

  Scenario: I want to get list of all storage volumes                              # features/storage_volumes.feature:7
    Given I am authorized to list storage_volumes                                  # features/step_definitions/common_steps.rb:96
    When I request index operation for storage_volumes collection                  # features/step_definitions/common_steps.rb:10
    Then I should see <STORAGE_VOLUME_COUNT> storage-volume inside storage-volumes # features/step_definitions/common_steps.rb:17
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:23:in `/^I should see ([\w\<\>_\-]+) (.+) inside (.+)$/'
      features/storage_volumes.feature:10:in `Then I should see <STORAGE_VOLUME_COUNT> storage volume inside storage volumes'

  Scenario: I want to show storage volume details                      # features/storage_volumes.feature:12
    Given I am authorized to show storage_volume '<STORAGE_VOLUME_ID>' # features/step_definitions/common_steps.rb:83
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:86:in `/^I am authorized to show (.+) '(.+)'$/'
      features/storage_volumes.feature:13:in `Given I am authorized to show storage volume '<STORAGE_VOLUME_ID>''
    When I request for '<STORAGE_VOLUME_ID>' storage volume            # features/step_definitions/common_steps.rb:28
    Then I should get this storage volume                              # features/step_definitions/common_steps.rb:33
    And storage volume should have valid href parameter                # features/step_definitions/storage_volumes.rb:1
    And storage volume should contain id parameter                     # features/step_definitions/common_steps.rb:90
    And storage volume should contain created parameter                # features/step_definitions/common_steps.rb:90
    And storage volume should contain state parameter                  # features/step_definitions/common_steps.rb:90
    And storage volume should contain capacity parameter               # features/step_definitions/common_steps.rb:90
    And storage volume should contain device parameter                 # features/step_definitions/common_steps.rb:90
    And storage volume should contain instance parameter               # features/step_definitions/common_steps.rb:90

  Scenario: I want filter storage volumes by state                    # features/storage_volumes.feature:24
    Given I am authorized to list storage_volumes                     # features/step_definitions/common_steps.rb:96
    When I want storage volumes with '<STORAGE_VOLUME_STATE>' state   # features/step_definitions/common_steps.rb:38
      no block given (LocalJumpError)
      ./features/support/env.rb:19:in `each_key'
      ./features/support/env.rb:19:in `replace_variables'
      ./features/step_definitions/common_steps.rb:40:in `/^I want (.+) with '(.+)' (.+)$/'
      features/storage_volumes.feature:26:in `When I want storage volumes with '<STORAGE_VOLUME_STATE>' state'
    Then I should get only realms with state '<STORAGE_VOLUME_STATE>' # features/step_definitions/common_steps.rb:47

Failing Scenarios:
cucumber features/flavors.feature:7 # Scenario: I want to get list of all flavors
cucumber features/flavors.feature:11 # Scenario: I want to show flavor details
cucumber features/flavors.feature:20 # Scenario: I want filter flavors by architecture
cucumber features/images.feature:7 # Scenario: I want to get list of all images
cucumber features/images.feature:14 # Scenario: I want to show image details
cucumber features/images.feature:25 # Scenario: I want filter images by owner_id
cucumber features/images.feature:29 # Scenario: I want filter images by architecture
cucumber features/images.feature:33 # Scenario: I want filter images by architecture
cucumber features/instances.feature:7 # Scenario: I want to get list of all instances
cucumber features/instances.feature:13 # Scenario: I want to create a new instance
cucumber features/instances.feature:23 # Scenario: I want to create a new instance using realm
cucumber features/instances.feature:35 # Scenario: I want to show instance details
cucumber features/instances.feature:51 # Scenario: I want to get instance image
cucumber features/instances.feature:58 # Scenario: I want to get instance flavor
cucumber features/instances.feature:65 # Scenario: I want to get instance realm
cucumber features/instances.feature:72 # Scenario: I want to stop instance
cucumber features/instances.feature:79 # Scenario: I want to start instance
cucumber features/instances.feature:86 # Scenario: I want to reboot instance
cucumber features/instances.feature:93 # Scenario: I want to destroy instance
cucumber features/realms.feature:7 # Scenario: I want to get list of all realms
cucumber features/realms.feature:11 # Scenario: I want to show realm details
cucumber features/realms.feature:19 # Scenario: I want filter realms by state
cucumber features/storage_snapshots.feature:7 # Scenario: I want to get list of all storage snapshots
cucumber features/storage_snapshots.feature:12 # Scenario: I want to show storage snapshot details
cucumber features/storage_snapshots.feature:25 # Scenario: I want filter storage snapshots by state
cucumber features/storage_volumes.feature:7 # Scenario: I want to get list of all storage volumes
cucumber features/storage_volumes.feature:12 # Scenario: I want to show storage volume details
cucumber features/storage_volumes.feature:24 # Scenario: I want filter storage volumes by state

28 scenarios (28 failed)
169 steps (28 failed, 97 skipped, 44 passed)
0m0.354s
_______________________________________________
deltacloud-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/deltacloud-devel

Reply via email to