Commit 6d60eeaf authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3310560 by TamakiFujino, yas, kumikoono: Add a BDD test scenario for...

Issue #3310560 by TamakiFujino, yas, kumikoono: Add a BDD test scenario for viewing and updating AWS Cloud snapshots
parent ebf301e5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -32,3 +32,5 @@ default:
        Size: '.field--name-size'
        # Internet gateway view form
        Internet gateway name: '.field--name-tags'
        # Snapshot view form
        Description: '.field--name-description'
+46 −4
Original line number Diff line number Diff line
@@ -22,20 +22,62 @@ Feature: Create and view a snapshot as "Authenticated User"
    And I should see the heading "Add AWS Cloud snapshot"
    And I enter "{{ snapshot_name_operate }}" for "Name"
    And I select "{{ volume_name_operate }}" from "Volume ID"
    And I enter "{{ description }}" for "Description"
    And I press "Save"
    Then I should be on "/clouds/aws_cloud/{{ cloud_context }}/snapshot"
    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 "{{ snapshot_name_operate }}" in the table
    And I should see "pending" in the "{{ snapshot_name_operate }}" row

  @api
  Scenario: Delete the snapshot
  Scenario: View the snapshot
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/snapshot"
    And I click "Refresh"
    And I should see the heading "AWS Cloud snapshots"
    And I should see "{{ snapshot_name_operate }}" in the table
    And I should see "completed" in the "{{ snapshot_name_operate }}" row
    And I wait {{ wait }} milliseconds
    And I click "{{ snapshot_name_operate }}"
    Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/snapshot/"
    And I should see "{{ snapshot_name_operate }}" in the "page_header"
    # Temporarily commented out until the view includes the snapshot name along with the volume name.
    # And I should see "{{ snapshot_name_operate }}" in the "details"
    # And I should see "{{ volume_name_operate }}" in the "details"
    And I should see "{{ description }}" in the "Description"
    And I should see "{{ user_name }}" in the "Authored by"
    And I should see neither error nor warning messages

  @api
  Scenario: Update the snapshot
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/snapshot"
    # And I click "Refresh"
    And I click "Refresh"
    And I should see the heading "AWS Cloud snapshots"
    And I should see "{{ snapshot_name_operate }}" in the table
    And I wait {{ wait }} milliseconds
    And I should see the link "{{ snapshot_name_operate }}"
    And I click "{{ snapshot_name_operate }}"
    And the url should match "/clouds/aws_cloud/{{ cloud_context }}/snapshot"
    And I click "Edit"
    And the url should match "/edit"
    And I should see "Edit {{ snapshot_name_operate }}" in the "page_header"
    And I enter "{{ snapshot_name_operate_updated }}" for "Name"
    # As the AWS specification, the Description is not editable.
    # And I enter "{{ description_updated }}" for "Description"
    And I press "Save"
    Then the url should match "/edit"
    And I should see the success message "has been updated"
    And I should see neither error nor warning messages

  @api
  Scenario: Delete the snapshot
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/snapshot"
    And I click "Refresh"
    And I wait {{ wait }} milliseconds
    And I should see the link "{{ snapshot_name_operate_updated }}"
    And I click "{{ snapshot_name_operate_updated }}"
    And the url should match "/clouds/aws_cloud/{{ cloud_context }}/snapshot/"
    And I click "Delete" in the "actions"
    And the url should match "/delete"
@@ -45,7 +87,7 @@ Feature: Create and view a snapshot as "Authenticated User"
    And I should see neither error nor warning messages
    And I click "Refresh"
    # No table exists.
    And I should not see the link "{{ snapshot_name_operate }}"
    And I should not see the link "{{ snapshot_name_operate_updated }}"

  @api
  Scenario: Delete the volume
+2 −0
Original line number Diff line number Diff line
@@ -77,6 +77,8 @@ security_group_source:
  IP
snapshot_name_operate:
  BDD_Snapshot_@Random_Operate
snapshot_name_operate_updated:
  BDD_Snapshot_@Random_Updated_Operate
ssh_key_name:
  BDD_Key_@Random
ssh_key_name_operate: