Loading modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-03-09-OperateNetworks.feature +33 −2 Original line number Diff line number Diff line Loading @@ -16,13 +16,44 @@ Feature: Create, read, update and delete a network for OpenStack as "Authenticat And I should see the link "{{ network_name_operate }}" in the table @api Scenario: Delete the network Scenario: Read the network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I should see "{{ network_name_operate }}" in the "page_header" And I should see "{{ network_name_operate }}" in the "Name" And I should see "{{ drupal_user_name }}" in the "Authored by" @api Scenario: Update the Network interface Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I click "Edit" And the url should match "/edit" And I enter "{{ network_name_operate_updated }}" for "Name" And I press "Save" Then I should see the success message "has been update" And I should see neither error nor warning messages And I should see the link "{{ network_name_operate_updated }}" in the table And I should not see the link "{{ network_name_operate }}" in the table @api Scenario: Delete the network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate_updated }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate_updated }}" And the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I click "Delete" Then the url should match "/delete" Loading @@ -31,4 +62,4 @@ Feature: Create, read, update and delete a network for OpenStack as "Authenticat And I should see the success message "has been deleted" And I should see neither error nor warning messages And I click "Refresh" And I should not see the link "{{ network_name_operate }}" And I should not see the link "{{ network_name_operate_updated }}" modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/params/openstack_common.yml +2 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ network_name: BDD_network network_name_operate: BDD_network_@Random_Operate network_name_operate_updated: BDD_network_@Random_Updated_Operate project_id: # You need to change the value here, or define the key-value region: Loading Loading
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-03-09-OperateNetworks.feature +33 −2 Original line number Diff line number Diff line Loading @@ -16,13 +16,44 @@ Feature: Create, read, update and delete a network for OpenStack as "Authenticat And I should see the link "{{ network_name_operate }}" in the table @api Scenario: Delete the network Scenario: Read the network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I should see "{{ network_name_operate }}" in the "page_header" And I should see "{{ network_name_operate }}" in the "Name" And I should see "{{ drupal_user_name }}" in the "Authored by" @api Scenario: Update the Network interface Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I click "Edit" And the url should match "/edit" And I enter "{{ network_name_operate_updated }}" for "Name" And I press "Save" Then I should see the success message "has been update" And I should see neither error nor warning messages And I should see the link "{{ network_name_operate_updated }}" in the table And I should not see the link "{{ network_name_operate }}" in the table @api Scenario: Delete the network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network" And I click "Refresh" And I should see the link "{{ network_name_operate_updated }}" And I wait {{ wait }} milliseconds And I click "{{ network_name_operate_updated }}" And the url should match "/clouds/openstack/{{ cloud_context }}/network/" And I click "Delete" Then the url should match "/delete" Loading @@ -31,4 +62,4 @@ Feature: Create, read, update and delete a network for OpenStack as "Authenticat And I should see the success message "has been deleted" And I should see neither error nor warning messages And I click "Refresh" And I should not see the link "{{ network_name_operate }}" And I should not see the link "{{ network_name_operate_updated }}"
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/params/openstack_common.yml +2 −0 Original line number Diff line number Diff line Loading @@ -101,6 +101,8 @@ network_name: BDD_network network_name_operate: BDD_network_@Random_Operate network_name_operate_updated: BDD_network_@Random_Updated_Operate project_id: # You need to change the value here, or define the key-value region: Loading