Skip to content
Snippets Groups Projects

Issue #3367407: Refactor the AWS Cloud BDD test scenarios

Closed Yas Naoi requested to merge issue/cloud-3367407:6.x into 6.x
3 files
+ 51
127
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -21,47 +21,27 @@ Feature: Confirm no AWS resources are created under the created cloud service
And I should see neither error nor warning messages
@api
Scenario: No link to the security group
Scenario: No link to the resource name on the resource list view
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group"
And I should see the heading "AWS Cloud security groups"
When I visit "/clouds/aws_cloud/{{ cloud_context }}/<resource_type>"
And I should see the heading "AWS Cloud" <resource_type_name>
And I click "Refresh"
Then I should not see the link "{{ security_group_name }}"
Then I should not see the link <resource_name>
And I should see neither error nor warning messages
@api
Scenario: No link to the subnet
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/subnet"
And I should see the heading "AWS Cloud subnets"
And I click "Refresh"
Then I should not see the link "{{ subnet_name }}"
And I should see neither error nor warning messages
@api
Scenario: No link to the VPC, but default exists
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/vpc"
And I should see the heading "AWS Cloud VPCs"
And I click "Refresh"
Then I should not see the link "{{ vpc_name }}"
And I should see the link "default" in the table
And I should see neither error nor warning messages
Examples:
| resource_type | resource_type_name | resource_name |
| image | "images" | {{ image_name }} |
| security_group | "security groups" | {{ security_group_name }} |
| elastic_ip | "Elastic IPs" | {{ elastic_ip_name }} |
| key_pair | "key pairs" | {{ ssh_key_name }} |
| volume | "volumes" | {{ volume_name }} |
| snapshot | "snapshots" | {{ snapshot_name }} |
| network_interface | "network interfaces" | {{ network_interface_name }} |
| subnet | "subnets" | {{ subnet_name }} |
| vpc | "VPCs" | {{ vpc_name }} |
| vpc_peering_connection_name | "VPC peering connections" | {{ vpc_peering_connection_name }} |
| internet_gateway | "internet gateways" | {{ internet_gateway_name }} |
| carrier_gateway | "carrier gateways" | {{ carrier_gateway_name }} |
| transit_gateway | "transit gateways" | {{ transit_gateway_name }} |
@api
Scenario: No link to the AMI image
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/image"
And I should see the heading "AWS Cloud images"
And I click "Refresh"
Then I should not see the link "{{ image_name }}"
And I should see neither error nor warning messages
@api
Scenario: No link to the SSH key pair
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair"
And I should see the heading "AWS Cloud key pairs"
And I click "Refresh"
Then I should not see the link "{{ ssh_key_name }}"
And I should see neither error nor warning messages
Loading