Skip to content
Snippets Groups Projects
Commit edafb063 authored by shota niioka's avatar shota niioka Committed by Yas Naoi
Browse files

Issue #3292141 by shota niioka, yas, kumikoono: Add a BDD test suite for volumes (Read and Update)

parent 7c0a139d
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,56 @@ Feature: Create and delete a Volume for OpenStack as "Authenticated User"
And I should see neither error nor warning messages
And I should see "{{ volume_name }}"
@api @javascript
Scenario: read the volume
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/clouds/openstack/{{ cloud_context }}/volume"
And I click "Refresh"
And I should see the link "{{ volume_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ volume_name }}"
Then the url should match "/clouds/openstack/{{ cloud_context }}/volume/"
And I should see "{{ volume_name }}"
And I should see "{{ volume_size }}"
And I should see neither error nor warning messages
@api @javascript
Scenario: attach the volume to an instance
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/clouds/openstack/{{ cloud_context }}/volume"
And I click "Refresh"
And I should see the link "{{ volume_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ volume_name }}"
Then the url should match "/clouds/openstack/{{ cloud_context }}/volume/"
And I click "Attach"
Then the url should match "/attach"
And I enter "{{ volume_device_name }}" for "Device Name"
And I select "{{ instance_name }}" from "Instance ID"
And I press "Attach"
Then the url should match "/clouds/openstack/{{ cloud_context }}/volume"
Then I should see the success message "is attaching to"
And I click "Refresh"
And I should see "{{ instance_name }}" in the "{{ volume_name }}" row
And I should see "in-use" in the "{{ volume_name }}" row
@api @javascript
Scenario: detach the volume from an instance
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/clouds/openstack/{{ cloud_context }}/volume"
And I click "Refresh"
And I should see the link "{{ volume_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ volume_name }}"
Then the url should match "/clouds/openstack/{{ cloud_context }}/volume/"
And I click "Detach"
Then the url should match "/detach"
And I press "Detach"
Then the url should match "/clouds/openstack/{{ cloud_context }}/volume"
Then I should see the success message "is detaching from"
And I click "Refresh"
And I should see "available" in the "{{ volume_name }}" row
@api @javascript
Scenario: delete the volume
Given I am logged in as user "{{ drupal_user_name }}"
......
......@@ -59,6 +59,8 @@ user_name:
# You need to change the value here, or define the key-value
user_password:
# You need to change the value here, or define the key-value
volume_device_name:
/dev/sdh
volume_name:
BDD_volume_@Random
volume_size:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment