Skip to content
Snippets Groups Projects
Commit 682d6d03 authored by Tomohiro Ono's avatar Tomohiro Ono Committed by Yas Naoi
Browse files

Issue #3272624 by onotm, yas, kumikoono: Add a BDD test scenario for viewing a...

Issue #3272624 by onotm, yas, kumikoono: Add a BDD test scenario for viewing a copied security group
parent 4e765a1e
No related branches found
No related tags found
5 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2,!832Issue #3274116: Refactor composer.json to use docomoinnovations/drupal-extension
......@@ -3,15 +3,28 @@ Feature: Copying/editing a security group as "Authenticated User"
@javascript @api
Scenario: Add a security group
Given I am logged in as a user with the "{{ role_name }}" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group/add"
# Add a VPC
When I visit "/clouds/aws_cloud/{{ cloud_context }}/vpc/add"
And I enter "{{ vpc_name_1 }}" for "Name"
And I enter "{{ ipv4_cidr }}" for "IPv4 CIDR block"
And I press "Save"
And I wait {{ wait }} milliseconds
And I should be on "/clouds/aws_cloud/{{ cloud_context }}/vpc"
And I should see "has been created"
And I should see the link "{{ vpc_name_1 }}" in the table
# Add a security group to the VPC
And I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group/add"
And I enter "{{ security_group_name_to_copy }}" for "Security group name"
And I enter "{{ description }}" for "Description"
And I select "{{ vpc_name }}" from "VPC CIDR (ID)"
And I select "{{ vpc_name_1 }}" from "VPC CIDR (ID)"
And I press "Save"
Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/security_group/"
And I should see "has been created"
And I should see the link "{{ security_group_name_to_copy }}" in the success_message
And I should not see "Inbound Rules"
And I should see "Outbound Rules"
And I should see "All Traffic" in the "outbound_rules"
And I should see "0.0.0.0/0" in the "outbound_rules"
@javascript @api
Scenario: Copy the security group
......@@ -19,6 +32,7 @@ Feature: Copying/editing a security group as "Authenticated User"
When I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group"
And I click "Refresh"
And I should see the link "{{ security_group_name_to_copy }}"
And I should see "{{ security_group_name_to_copy }}" in the "{{ vpc_name_1 }}" row
And I wait {{wait}} milliseconds
And I click "{{ security_group_name_to_copy }}"
And the url should match "/security_group/"
......@@ -34,6 +48,26 @@ Feature: Copying/editing a security group as "Authenticated User"
And I should see the link "{{ security_group_name_copied }}" in the success_message
And I should see "Outbound Rules"
@javascript @api
Scenario: View the copied security group
Given I am logged in as a user with the "{{ role_name }}" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group"
And I click "Refresh"
Then I should see the link "{{ security_group_name_copied }}"
And I wait {{wait}} milliseconds
And I should see "{{ vpc_name }}" in the "{{ security_group_name_copied }}" row
And I wait {{wait}} milliseconds
And I click "{{ security_group_name_copied }}"
And the url should match "/security_group/"
And I should see "{{ security_group_name_copied }}"
And I should see "{{ description }}"
And I should not see "01/01/1970 - 00:00"
And I should not see "12/31/1969 - 23:59"
And I should not see "Inbound Rules"
And I should see "Outbound Rules"
And I should see "All Traffic" in the "outbound_rules"
And I should see "0.0.0.0/0" in the "outbound_rules"
@javascript @api
Scenario: Add rules to the security group
Given I am logged in as a user with the "{{ role_name }}" role
......@@ -114,3 +148,21 @@ Feature: Copying/editing a security group as "Authenticated User"
And I click "Refresh"
And I should not see the link "{{ security_group_name_to_copy }}" in the table
And I should not see the link "{{ security_group_name_copied }}" in the table
@javascript @api
Scenario: Delete the VPC
Given I am logged in as a user with the "{{ role_name }}" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/vpc"
And I click "Refresh"
And I should see the link "{{ vpc_name_1 }}"
And I wait {{wait}} milliseconds
And I click "{{ vpc_name_1 }}"
And the url should match "/vpc/"
And I click "Delete" in the "actions"
And the url should match "/delete"
And I press "Delete"
And I wait for AJAX to finish
Then I should be on "/clouds/aws_cloud/{{ cloud_context }}/vpc"
And I should see "has been deleted"
And I click "Refresh"
And I should not see the link "{{ vpc_name_1 }}" in the table
......@@ -75,5 +75,7 @@ volume_size:
1
vpc_name:
BDD_VPC_@Random
vpc_name_1:
BDD_VPC_1_@Random
wait:
500
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment