Loading modules/cloud_service_providers/aws_cloud/tests/src/Behat/behat.yml +3 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ default: # Elastic IP view form Domain: '.field--name-domain' Network border group: '.field--name-network-border-group' Instance ID: '.field--name-instance-id' Instance ID: '.field--name-instance-id,.field--name-attachment-information' # Volume view form Size: '.field--name-size' # Internet gateway view form Internet gateway name: '.field--name-tags' modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-03-02-OperateVolumes.feature +22 −4 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ Feature: Create and delete a volume as "Authenticated User" @api Scenario: Create a Volume Scenario: Create a volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume/add" And I should see the heading "Add AWS Cloud volume" Loading @@ -16,7 +16,7 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "creating" in the "{{ volume_name }}" row @api Scenario: Attach the Volume Scenario: Attach the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I should see the heading "AWS Cloud volumes" Loading @@ -37,7 +37,25 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "attaching" in the "{{ volume_name }}" row @api Scenario: Detach the Volume Scenario: View the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I click "Refresh" And I should see the heading "AWS Cloud volumes" And I should see "{{ volume_name }}" in the table And I wait {{ wait }} milliseconds And I click "{{ volume_name }}" Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/volume/" And I should see "{{ volume_name }}" in the "page_header" And I should see "{{ volume_size }}" in the "Size" And I should see "{{ availability_zone }}" in the "Availability Zone" And I should see "{{ instance_name }}" in the "Instance ID" # And I should see "{{ device_name }} in the "Device Name" And I should see "{{ user_name }}" in the "Authored by" And I should see neither error nor warning messages @api Scenario: Detach the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I should see the heading "AWS Cloud volumes" Loading @@ -56,7 +74,7 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "detaching" in the "{{ volume_name }}" row @api Scenario: Delete the Volume Scenario: Delete the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I click "Refresh" Loading Loading
modules/cloud_service_providers/aws_cloud/tests/src/Behat/behat.yml +3 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ default: # Elastic IP view form Domain: '.field--name-domain' Network border group: '.field--name-network-border-group' Instance ID: '.field--name-instance-id' Instance ID: '.field--name-instance-id,.field--name-attachment-information' # Volume view form Size: '.field--name-size' # Internet gateway view form Internet gateway name: '.field--name-tags'
modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-03-02-OperateVolumes.feature +22 −4 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ Feature: Create and delete a volume as "Authenticated User" @api Scenario: Create a Volume Scenario: Create a volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume/add" And I should see the heading "Add AWS Cloud volume" Loading @@ -16,7 +16,7 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "creating" in the "{{ volume_name }}" row @api Scenario: Attach the Volume Scenario: Attach the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I should see the heading "AWS Cloud volumes" Loading @@ -37,7 +37,25 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "attaching" in the "{{ volume_name }}" row @api Scenario: Detach the Volume Scenario: View the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I click "Refresh" And I should see the heading "AWS Cloud volumes" And I should see "{{ volume_name }}" in the table And I wait {{ wait }} milliseconds And I click "{{ volume_name }}" Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/volume/" And I should see "{{ volume_name }}" in the "page_header" And I should see "{{ volume_size }}" in the "Size" And I should see "{{ availability_zone }}" in the "Availability Zone" And I should see "{{ instance_name }}" in the "Instance ID" # And I should see "{{ device_name }} in the "Device Name" And I should see "{{ user_name }}" in the "Authored by" And I should see neither error nor warning messages @api Scenario: Detach the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I should see the heading "AWS Cloud volumes" Loading @@ -56,7 +74,7 @@ Feature: Create and delete a volume as "Authenticated User" And I should see "detaching" in the "{{ volume_name }}" row @api Scenario: Delete the Volume Scenario: Delete the volume Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/volume" And I click "Refresh" Loading