Commit 73f256bc authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3320385 by TamakiFujino, yas: Add a BDD test suite for OpenStack network (Read and Update)

parent e23e0f25
Loading
Loading
Loading
Loading
+33 −2
Original line number Diff line number Diff line
@@ -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"
@@ -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 }}"
+2 −0
Original line number Diff line number Diff line
@@ -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: