Skip to content
Snippets Groups Projects
Commit 9a023554 authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3291001 by TamakiFujino, kumikoono, yas: Add a BDD test scenario to...

Issue #3291001 by TamakiFujino, kumikoono, yas: Add a BDD test scenario to check "Add resource" button is not available for Authenticated user
parent af418f53
Branches
Tags
Loading
......@@ -33,6 +33,15 @@ Feature: Make sure "Authenticated user" cannot add resources
And I go to "/clouds/aws_cloud/{{ cloud_context }}/security_group/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add an Elastic IP
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/elastic_ip"
And I should see the heading "All AWS Cloud Elastic IPs"
Then I should not see "Add AWS Cloud Elastic IP"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/elastic_ip/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a key pair
Given I am logged in as a user with the "Authenticated user" role
......@@ -41,3 +50,84 @@ Feature: Make sure "Authenticated user" cannot add resources
Then I should not see "Add AWS Cloud key pair"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/key_pair/add"
And I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a volume
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/volume"
And I should see the heading "All AWS Cloud volumes"
Then I should not see "Add AWS Cloud volume"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a snapshot
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/snapshot"
And I should see the heading "All AWS Cloud snapshots"
Then I should not see "Add AWS Cloud snapshot"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/snapshot/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a network iinterface
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/network_interface"
And I should see the heading "All AWS Cloud network interfaces"
Then I should not see "Add AWS Cloud network interface"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/network_interface/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a VPC
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/vpc"
And I should see the heading "All AWS Cloud VPCs"
Then I should not see "Add AWS Cloud VPC"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/vpc/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a subnet
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/subnet"
And I should see the heading "All AWS Cloud subnets"
Then I should not see "Add AWS Cloud subnet"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/subnet/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a VPC peering connections
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/volume"
And I should see the heading "All AWS Cloud volumes"
Then I should not see "Add AWS Cloud volume"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/volume/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add an internet gateway
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/internet_gateway"
And I should see the heading "All AWS Cloud internet gateways"
Then I should not see "Add AWS Cloud internet gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/internet_gateway/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a carrier gateway
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/carrier_gateway"
And I should see the heading "All AWS Cloud carrier gateways"
Then I should not see "Add AWS Cloud carrier gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/carrier_gateway/add"
Then I should get a 403 HTTP response
@api @javascript
Scenario: Cannot add a transit gateway
Given I am logged in as a user with the "Authenticated user" role
When I visit "/clouds/aws_cloud/transit_gateway"
And I should see the heading "All AWS Cloud transit gateways"
Then I should not see "Add AWS Cloud transit gateway"
And I go to "/clouds/aws_cloud/{{ cloud_context }}/transit_gateway/add"
Then I should get a 403 HTTP response
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment