Skip to content
Snippets Groups Projects
Commit 01ca95af authored by Kumiko Ono's avatar Kumiko Ono Committed by Yas Naoi
Browse files

Issue #3293846 by kumikoono, yas, baldwinlouie: Update a BDD test scenario for...

Issue #3293846 by kumikoono, yas, baldwinlouie: Update a BDD test scenario for checking Refresh button for AWS resources
parent 67d5e5d6
No related branches found
No related tags found
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!1205Issue #3293846: Update a BDD test scenario for checking Refresh button for AWS resources
...@@ -35,7 +35,9 @@ Feature: Create a cloud service provider for AWS as "Cloud administrator" ...@@ -35,7 +35,9 @@ Feature: Create a cloud service provider for AWS as "Cloud administrator"
And I should see the warning message "Pricing data unavailable. Click to refresh all pricing data." And I should see the warning message "Pricing data unavailable. Click to refresh all pricing data."
And I click "Click to refresh all pricing data." in the warning_message And I click "Click to refresh all pricing data." in the warning_message
And I should see the success message "Updated instance type prices" And I should see the success message "Updated instance type prices"
And I should see no error message # Temporarily comment out the following assertion for no error message
# as Drupal core may display a 'No active batch' error message.
# And I should see no error message
And I should see "{{ cloud_service_provider_name }}" And I should see "{{ cloud_service_provider_name }}"
@ignore @ignore
......
Feature: Confirm no AWS resources created by user as "Administrator" @ci_job
Feature: Confirm no AWS resources are created under the created cloud service
provider
@api @api
Scenario: No link to the instance Scenario: No link to the instance
......
@ci_job
Feature: View the created resources for AWS as "Cloud administrator" Feature: View the created resources for AWS as "Cloud administrator"
@api @api
......
@ci_job
Feature: Make sure "Authenticated user" cannot add resources Feature: Make sure "Authenticated user" cannot add resources
@api @javascript @api @javascript
...@@ -31,7 +32,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -31,7 +32,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud security groups" And I should see the heading "All AWS Cloud security groups"
Then I should not see "Add AWS Cloud security group" Then I should not see "Add AWS Cloud security group"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/security_group/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/security_group/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add an Elastic IP Scenario: Cannot add an Elastic IP
...@@ -40,7 +41,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -40,7 +41,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud Elastic IPs" And I should see the heading "All AWS Cloud Elastic IPs"
Then I should not see "Add AWS Cloud Elastic IP" Then I should not see "Add AWS Cloud Elastic IP"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/elastic_ip/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/elastic_ip/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a key pair Scenario: Cannot add a key pair
...@@ -58,7 +59,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -58,7 +59,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud volumes" And I should see the heading "All AWS Cloud volumes"
Then I should not see "Add AWS Cloud volume" Then I should not see "Add AWS Cloud volume"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a snapshot Scenario: Cannot add a snapshot
...@@ -67,7 +68,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -67,7 +68,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud snapshots" And I should see the heading "All AWS Cloud snapshots"
Then I should not see "Add AWS Cloud snapshot" Then I should not see "Add AWS Cloud snapshot"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/snapshot/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/snapshot/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a network iinterface Scenario: Cannot add a network iinterface
...@@ -76,7 +77,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -76,7 +77,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud network interfaces" And I should see the heading "All AWS Cloud network interfaces"
Then I should not see "Add AWS Cloud network interface" Then I should not see "Add AWS Cloud network interface"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/network_interface/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/network_interface/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a VPC Scenario: Cannot add a VPC
...@@ -85,7 +86,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -85,7 +86,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud VPCs" And I should see the heading "All AWS Cloud VPCs"
Then I should not see "Add AWS Cloud VPC" Then I should not see "Add AWS Cloud VPC"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/vpc/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/vpc/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a subnet Scenario: Cannot add a subnet
...@@ -94,7 +95,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -94,7 +95,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud subnets" And I should see the heading "All AWS Cloud subnets"
Then I should not see "Add AWS Cloud subnet" Then I should not see "Add AWS Cloud subnet"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/subnet/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/subnet/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a VPC peering connections Scenario: Cannot add a VPC peering connections
...@@ -103,7 +104,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -103,7 +104,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud volumes" And I should see the heading "All AWS Cloud volumes"
Then I should not see "Add AWS Cloud volume" Then I should not see "Add AWS Cloud volume"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add an internet gateway Scenario: Cannot add an internet gateway
...@@ -112,7 +113,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -112,7 +113,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud internet gateways" And I should see the heading "All AWS Cloud internet gateways"
Then I should not see "Add AWS Cloud internet gateway" Then I should not see "Add AWS Cloud internet gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/internet_gateway/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/internet_gateway/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a carrier gateway Scenario: Cannot add a carrier gateway
...@@ -121,7 +122,7 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -121,7 +122,7 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud carrier gateways" And I should see the heading "All AWS Cloud carrier gateways"
Then I should not see "Add AWS Cloud carrier gateway" Then I should not see "Add AWS Cloud carrier gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/carrier_gateway/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/carrier_gateway/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
@api @javascript @api @javascript
Scenario: Cannot add a transit gateway Scenario: Cannot add a transit gateway
...@@ -130,4 +131,4 @@ Feature: Make sure "Authenticated user" cannot add resources ...@@ -130,4 +131,4 @@ Feature: Make sure "Authenticated user" cannot add resources
And I should see the heading "All AWS Cloud transit gateways" And I should see the heading "All AWS Cloud transit gateways"
Then I should not see "Add AWS Cloud transit gateway" Then I should not see "Add AWS Cloud transit gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/transit_gateway/add" And I go to "/clouds/aws_cloud/{{ cloud_context }}/transit_gateway/add"
Then I should get a 403 HTTP response And I should get a 403 HTTP response
Feature: Make sure "Authenticated user" cannot see resources @ci_job
Feature: Make sure "Authenticated user" cannot see resources or Refresh button
as the user by default has no access to any cloud service providers
@api @javascript @api @javascript
Scenario: Cannot see the created cloud service provider Scenario: Cannot see the created cloud service provider
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds" When I visit "/clouds"
And I should not see "{{ cloud_service_provider_name }}" Then I should not see "{{ cloud_service_provider_name }}"
And I should see neither error nor warning messages And I should see neither error nor warning messages
@api @javascript @api @javascript
Scenario: Cannot see the created instance Scenario: Cannot see the created instance
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/instance" When I visit "/clouds/aws_cloud/instance"
And I click "Refresh" Then I should not see the link "Refresh"
And I should not see "{{ instance_name }}" And I should not see "{{ instance_name }}"
And I should see neither error nor warning messages And I should see neither error nor warning messages
...@@ -19,7 +21,7 @@ Feature: Make sure "Authenticated user" cannot see resources ...@@ -19,7 +21,7 @@ Feature: Make sure "Authenticated user" cannot see resources
Scenario: cannot see the created image Scenario: cannot see the created image
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/image" When I visit "/clouds/aws_cloud/image"
And I click "Refresh" Then I should not see the link "Refresh"
And I should not see "{{ image_id }}" And I should not see "{{ image_id }}"
And I should see neither error nor warning messages And I should see neither error nor warning messages
...@@ -27,7 +29,7 @@ Feature: Make sure "Authenticated user" cannot see resources ...@@ -27,7 +29,7 @@ Feature: Make sure "Authenticated user" cannot see resources
Scenario: cannot see the created security group Scenario: cannot see the created security group
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/security_group" When I visit "/clouds/aws_cloud/security_group"
And I click "Refresh" Then I should not see the link "Refresh"
And I should not see "{{ security_group_name }}" And I should not see "{{ security_group_name }}"
And I should see neither error nor warning messages And I should see neither error nor warning messages
...@@ -35,6 +37,6 @@ Feature: Make sure "Authenticated user" cannot see resources ...@@ -35,6 +37,6 @@ Feature: Make sure "Authenticated user" cannot see resources
Scenario: cannot see the created key pair Scenario: cannot see the created key pair
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/key_pair" When I visit "/clouds/aws_cloud/key_pair"
And I click "Refresh" Then I should not see the link "Refresh"
And I should not see "{{ ssh_key_name }}" And I should not see "{{ ssh_key_name }}"
And I should see neither error nor warning messages And I should see neither error nor warning messages
...@@ -98,13 +98,14 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button ...@@ -98,13 +98,14 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/priority_class" When I visit "/clouds/k8s/priority_class"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messageses And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of ConfigMap Scenario: Cannot refresh the list of ConfigMap
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/config_map" When I visit "/clouds/k8s/config_map"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messagess And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of secrets Scenario: Cannot refresh the list of secrets
...@@ -121,18 +122,18 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button ...@@ -121,18 +122,18 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button
And I should see neither error nor warning messages And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of role binding Scenario: Cannot refresh the list of role bindings
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/role_binding" When I visit "/clouds/k8s/role_binding"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messagess And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of cluster role Scenario: Cannot refresh the list of cluster roles
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/cluster_role" When I visit "/clouds/k8s/cluster_role"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messagess And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of cluster role bindings Scenario: Cannot refresh the list of cluster role bindings
...@@ -142,11 +143,11 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button ...@@ -142,11 +143,11 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button
And I should see neither error nor warning messages And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of persistent volume Scenario: Cannot refresh the list of persistent volumes
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/persistent_volume" When I visit "/clouds/k8s/persistent_volume"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messagess And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of persistent volume claims Scenario: Cannot refresh the list of persistent volume claims
...@@ -156,11 +157,11 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button ...@@ -156,11 +157,11 @@ Feature: Confirm "Authenticated user" cannot see resources or Refresh button
And I should see neither error nor warning messages And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of storage class Scenario: Cannot refresh the list of storage classes
Given I am logged in as a user with the "Authenticated user" role Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/k8s/storage_class" When I visit "/clouds/k8s/storage_class"
Then I should not see the link "Refresh" Then I should not see the link "Refresh"
And I should see neither error nor warning messageses And I should see neither error nor warning messages
@api @api
Scenario: Cannot refresh the list of StatefulSets Scenario: Cannot refresh the list of StatefulSets
......
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