Loading modules/cloud_service_providers/openstack/tests/src/Behat/behat.yml +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ default: Image API endpoint: '.field--name-field-image-api-endpoint' Network API endpoint: '.field--name-field-network-api-endpoint' Volume API endpoint: '.field--name-field-volume-api-endpoint' Orchestration API endpoint: '.field--name-field-orchestration-api-endpoint' # Launch template view form Description: '.field--name-field-description' Flavor: '.field--name-field-flavor' Loading modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-00-03-OperateCloudServiceProvider.feature +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ Feature: Create, view, edit and delete a cloud service provider for OpenStack as And I should see "{{ api_glance }}" in the "Image API endpoint" And I should see "{{ api_neutron }}" in the "Network API endpoint" And I should see "{{ api_cinder }}" in the "Volume API endpoint" And I should see "{{ api_heat }}" for "Orchestration API endpoint" And I should see "{{ api_heat }}" in the "Orchestration API endpoint" And I should see neither error nor warning messages Examples: | role | cloud_context | cloud_service_provider_name | Loading modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-02-01-CreateResources.feature +32 −2 Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ Feature: Create resources for OpenStack as "Authenticated User" Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair/add" And I should see the heading "Add OpenStack key pair" And I enter "{{ key_name }}" for "Key pair name" And I enter "{{ key_pair_name }}" for "Key pair name" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I should see the link "{{ key_name }}" And I should see the link "{{ key_pair_name }}" And I click "Download private key" in the warning_message @api Loading @@ -28,3 +28,33 @@ Feature: Create resources for OpenStack as "Authenticated User" And I should see the success message "Setup the IP permissions" And I should see the link "{{ security_group_name }}" in the success_message And I should see neither error nor warning messages @api Scenario: Create a network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network/add" And I should see the heading "Add OpenStack network" And I enter "{{ network_name }}" for "Name" # Temporarily comment out because of the error when selecting availability zone # And I select "{{ availability_zone }}" from "Availability Zone" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/network" And I should see the success message "has been created" And I should see neither error nor warning messages And I should see the link "{{ network_name }}" in the table @api Scenario: Create a subnet Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/subnet/add" And I should see the heading "Add OpenStack subnet" And I enter "{{ subnet_name }}" for "Name" And I select "{{ network_name }}" from "Network" And I enter "{{ network_address }}" for "CIDR" And I select "{{ ip_version }}" from "IP Version" And I enter "{{ gateway_ip }}" for "Gateway IP" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/subnet" And I should see the success message "has been created" And I should see neither error nor warning messages And I should see the link "{{ subnet_name }}" in the table modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-02-02-CreateLaunchTemplates.feature +3 −2 Original line number Diff line number Diff line Loading @@ -25,9 +25,10 @@ Feature: Create an instances for OpenStack as "Authenticated User" And I select "{{ image_name }}" from "Image ID" And I select "{{ availability_zone }}" from "Availability zone" And I select "{{ security_group_name }}" from "Security groups" And I select "{{ key_name }}" from "SSH key" And I select "{{ key_pair_name }}" from "SSH key" # Remove or replace the line below when refactoring network interface # Make sure we have this network interface at OpenStack Horizon dashboard. And I select "{{ network_name }}" from "Network interface" And I select "{{ network_interface_name }}" from "Network interface" And I press "Save" Then the url should match "/clouds/design/server_template/{{ cloud_context }}/" And I should see the success message "has been created" Loading modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-03-02-OperateKeyPairs.feature +9 −9 Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair/add" And I should see the heading "Add OpenStack key pair" And I enter "{{ key_name_operate }}" for "Key pair name" And I enter "{{ key_pair_name_operate }}" for "Key pair name" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I should see the link "{{ key_name_operate }}" And I should see the link "{{ key_pair_name_operate }}" And I click "Download private key" in the warning_message @api Loading @@ -21,12 +21,12 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use When I visit "/clouds/openstack/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the heading "OpenStack key pairs" And I should see "{{ key_name_operate }}" in the table And I should see "{{ key_pair_name_operate }}" in the table And I wait {{ wait }} milliseconds And I click "{{ key_name_operate }}" And I click "{{ key_pair_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair/" And I should see "{{ key_name_operate }}" in the "page_header" And I should see "{{ key_name_operate }}" in the "Key pair name" And I should see "{{ key_pair_name_operate }}" in the "page_header" And I should see "{{ key_pair_name_operate }}" in the "Key pair name" And I should see "{{ drupal_user_name }}" in the "Authored by" And I should see neither error nor warning messages Loading @@ -35,9 +35,9 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the link "{{ key_name_operate }}" And I should see the link "{{ key_pair_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ key_name_operate }}" And I click "{{ key_pair_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair/" And I click "Delete" Then the url should match "/delete" Loading @@ -46,4 +46,4 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use 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 "{{ key_name_operate }}" And I should not see the link "{{ key_pair_name_operate }}" Loading
modules/cloud_service_providers/openstack/tests/src/Behat/behat.yml +1 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ default: Image API endpoint: '.field--name-field-image-api-endpoint' Network API endpoint: '.field--name-field-network-api-endpoint' Volume API endpoint: '.field--name-field-volume-api-endpoint' Orchestration API endpoint: '.field--name-field-orchestration-api-endpoint' # Launch template view form Description: '.field--name-field-description' Flavor: '.field--name-field-flavor' Loading
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-00-03-OperateCloudServiceProvider.feature +1 −1 Original line number Diff line number Diff line Loading @@ -54,7 +54,7 @@ Feature: Create, view, edit and delete a cloud service provider for OpenStack as And I should see "{{ api_glance }}" in the "Image API endpoint" And I should see "{{ api_neutron }}" in the "Network API endpoint" And I should see "{{ api_cinder }}" in the "Volume API endpoint" And I should see "{{ api_heat }}" for "Orchestration API endpoint" And I should see "{{ api_heat }}" in the "Orchestration API endpoint" And I should see neither error nor warning messages Examples: | role | cloud_context | cloud_service_provider_name | Loading
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-02-01-CreateResources.feature +32 −2 Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ Feature: Create resources for OpenStack as "Authenticated User" Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair/add" And I should see the heading "Add OpenStack key pair" And I enter "{{ key_name }}" for "Key pair name" And I enter "{{ key_pair_name }}" for "Key pair name" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I should see the link "{{ key_name }}" And I should see the link "{{ key_pair_name }}" And I click "Download private key" in the warning_message @api Loading @@ -28,3 +28,33 @@ Feature: Create resources for OpenStack as "Authenticated User" And I should see the success message "Setup the IP permissions" And I should see the link "{{ security_group_name }}" in the success_message And I should see neither error nor warning messages @api Scenario: Create a network Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/network/add" And I should see the heading "Add OpenStack network" And I enter "{{ network_name }}" for "Name" # Temporarily comment out because of the error when selecting availability zone # And I select "{{ availability_zone }}" from "Availability Zone" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/network" And I should see the success message "has been created" And I should see neither error nor warning messages And I should see the link "{{ network_name }}" in the table @api Scenario: Create a subnet Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/subnet/add" And I should see the heading "Add OpenStack subnet" And I enter "{{ subnet_name }}" for "Name" And I select "{{ network_name }}" from "Network" And I enter "{{ network_address }}" for "CIDR" And I select "{{ ip_version }}" from "IP Version" And I enter "{{ gateway_ip }}" for "Gateway IP" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/subnet" And I should see the success message "has been created" And I should see neither error nor warning messages And I should see the link "{{ subnet_name }}" in the table
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-02-02-CreateLaunchTemplates.feature +3 −2 Original line number Diff line number Diff line Loading @@ -25,9 +25,10 @@ Feature: Create an instances for OpenStack as "Authenticated User" And I select "{{ image_name }}" from "Image ID" And I select "{{ availability_zone }}" from "Availability zone" And I select "{{ security_group_name }}" from "Security groups" And I select "{{ key_name }}" from "SSH key" And I select "{{ key_pair_name }}" from "SSH key" # Remove or replace the line below when refactoring network interface # Make sure we have this network interface at OpenStack Horizon dashboard. And I select "{{ network_name }}" from "Network interface" And I select "{{ network_interface_name }}" from "Network interface" And I press "Save" Then the url should match "/clouds/design/server_template/{{ cloud_context }}/" And I should see the success message "has been created" Loading
modules/cloud_service_providers/openstack/tests/src/Behat/features/templates/OpenStack-ATDD-03-02-OperateKeyPairs.feature +9 −9 Original line number Diff line number Diff line Loading @@ -6,13 +6,13 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair/add" And I should see the heading "Add OpenStack key pair" And I enter "{{ key_name_operate }}" for "Key pair name" And I enter "{{ key_pair_name_operate }}" for "Key pair name" And I press "Save" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I should see the link "{{ key_name_operate }}" And I should see the link "{{ key_pair_name_operate }}" And I click "Download private key" in the warning_message @api Loading @@ -21,12 +21,12 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use When I visit "/clouds/openstack/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the heading "OpenStack key pairs" And I should see "{{ key_name_operate }}" in the table And I should see "{{ key_pair_name_operate }}" in the table And I wait {{ wait }} milliseconds And I click "{{ key_name_operate }}" And I click "{{ key_pair_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair/" And I should see "{{ key_name_operate }}" in the "page_header" And I should see "{{ key_name_operate }}" in the "Key pair name" And I should see "{{ key_pair_name_operate }}" in the "page_header" And I should see "{{ key_pair_name_operate }}" in the "Key pair name" And I should see "{{ drupal_user_name }}" in the "Authored by" And I should see neither error nor warning messages Loading @@ -35,9 +35,9 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use Given I am logged in as user "{{ drupal_user_name }}" When I visit "/clouds/openstack/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the link "{{ key_name_operate }}" And I should see the link "{{ key_pair_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ key_name_operate }}" And I click "{{ key_pair_name_operate }}" Then the url should match "/clouds/openstack/{{ cloud_context }}/key_pair/" And I click "Delete" Then the url should match "/delete" Loading @@ -46,4 +46,4 @@ Feature: Create, read, and delete a key pair for OpenStack as "Authenticated Use 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 "{{ key_name_operate }}" And I should not see the link "{{ key_pair_name_operate }}"