Skip to content
Snippets Groups Projects

Issue #3380867: Add a BDD test suite for OpenStack Instance resources (2) (Interface attach and detach - Launch Template)

Merged Issue #3380867: Add a BDD test suite for OpenStack Instance resources (2) (Interface attach and detach - Launch Template)
@@ -68,6 +68,72 @@ Feature: Create and copy a launch template for OpenStack as an "authenticated us
And I should see "{{ customization_script_operate }}" in the "Customization script"
And I should see "{{ drupal_user_name }}" in the "Authored by"
@api
Scenario: Create a network
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/{{ root_path }}/openstack/{{ cloud_context }}/network/add"
And I should see the heading "{{ prefix_add_form }} network"
And I enter "{{ network_name_operate }}" 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 "/{{ root_path }}/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_operate }}" in the table
@api
Scenario: Attach the network
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/{{ root_path }}/design/server_template/{{ cloud_context }}"
And I should see the link "{{ launch_template_name }}"
And I click "{{ launch_template_name }}"
And the url should match "/{{ root_path }}/design/server_template/{{ cloud_context }}/"
And I click "Edit"
And the url should match "/edit"
And I should see the heading "Edit {{ launch_template_name }}"
And I select "{{ network_name_operate }}" from "Network"
And I press "Save"
Then the url should match "/{{ root_path }}/design/server_template/{{ cloud_context }}/"
And I should see the success message "has been updated"
And I should see neither error nor warning messages
And I should see the heading "{{ launch_template_name }}"
@api
Scenario: Detach the network
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/{{ root_path }}/design/server_template/{{ cloud_context }}"
And I should see the link "{{ launch_template_name }}"
And I click "{{ launch_template_name }}"
And the url should match "/{{ root_path }}/design/server_template/{{ cloud_context }}/"
And I click "Edit"
And the url should match "/edit"
And I should see the heading "Edit {{ launch_template_name }}"
And I select "{{ network_name }}" from "Network"
And I press "Save"
Then the url should match "/{{ root_path }}/design/server_template/{{ cloud_context }}/"
And I should see the success message "has been updated"
And I should see neither error nor warning messages
And I should see the heading "{{ launch_template_name }}"
@api
Scenario: Delete the network
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/{{ root_path }}/openstack/{{ cloud_context }}/network"
And I run drush cron
And I should see the link "{{ network_name_operate }}"
And I wait {{ wait }} milliseconds
And I click "{{ network_name_operate }}"
And the url should match "/{{ root_path }}/openstack/{{ cloud_context }}/network/"
And I click "Delete" in the actions
Then the url should match "/delete"
And I press "Delete"
Then I should be on "/{{ root_path }}/openstack/{{ cloud_context }}/network"
And I should see the success message "has been deleted"
And I should see neither error nor warning messages
And I run drush cron
And I should not see the link "{{ network_name_operate }}"
@api
Scenario: Copy the created launch template by a Cloud administrator
Given I am logged in as user {{ drupal_cloud_admin_name }}
Loading