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

Issue #3291661 by shota niioka, yas, kumikoono: Add a BDD test suite for...

Issue #3291661 by shota niioka, yas, kumikoono: Add a BDD test suite for OpenStack instances (Create a launch template, Launch and Terminate)
parent 32e3dae2
No related branches found
No related tags found
No related merge requests found
@minimal @ci_job
Feature: Create an instances for OpenStack as "Authenticated User"
@api @javascript
Scenario: Read an image
# before testing scenario , we have to create image by openstack dashboard .
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/clouds/openstack/{{ cloud_context }}/image"
And I click "Refresh"
And I should see the link "{{ image_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ image_name }}"
Then the url should match "/clouds/openstack/{{ cloud_context }}/image/"
And I should see "{{ image_name }}"
And I should see "{{ status }}"
And I should see neither error nor warning messages
@api @javascript
Scenario: Create an Launch template
Given I am logged in as user "{{ drupal_user_name }}"
When I visit "/clouds/design/server_template/{{ cloud_context }}/openstack/add"
And I should see the heading "Add OpenStack"
And I enter "{{ instance_name }}" for "Name"
And I select "{{ instance_flavor }}" from "Flavor"
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"
# Make sure we have this network interface by openstack dashboard.
And I select "{{ network_name }}" from "Network interface"
And I press "Save"
And I wait for AJAX to finish
Then the url should match "/clouds/design/server_template/{{ cloud_context }}/"
And I should see the success message "has been created"
And I should see neither error nor warning messages
And I should see the heading "{{ instance_name }}"
...@@ -11,7 +11,7 @@ Feature: Launch an instance for OpenStack as "Authenticated User" ...@@ -11,7 +11,7 @@ Feature: Launch an instance for OpenStack as "Authenticated User"
Then the url should match "/launch" Then the url should match "/launch"
And I press "Launch" And I press "Launch"
And I wait for AJAX to finish And I wait for AJAX to finish
Then I should be on "/clouds/design/server_template/{{ cloud_context }}/" Then the url should match "/clouds/design/server_template/{{ cloud_context }}/"
And I should see the success message "has been launched" And I should see the success message "has been launched"
And I should see neither error nor warning messages And I should see neither error nor warning messages
And I wait {{ wait }} milliseconds And I wait {{ wait }} milliseconds
......
...@@ -14,6 +14,8 @@ api_neutron: ...@@ -14,6 +14,8 @@ api_neutron:
# You need to change the value here, or define the key-value in a separate file. # You need to change the value here, or define the key-value in a separate file.
api_nova: api_nova:
# You need to change the value here, or define the key-value in a separate file. # You need to change the value here, or define the key-value in a separate file.
availability_zone:
nova
ca_path: ca_path:
# You need to change the value here, or define the key-value in a separate file. # You need to change the value here, or define the key-value in a separate file.
cloud_context: cloud_context:
......
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