Loading modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-00-21-NonAuthorizedUserAccess.feature 0 → 100644 +39 −0 Original line number Diff line number Diff line Feature: Make sure "Authenticated user" cannot add resources @javascript @api Scenario: Cannot add an instance Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/instance" And I should not see "Add | Launch AWS Cloud instance" @javascript @api Scenario: Cannot add a launch template Given I am logged in as a user with the "Authenticated user" role When I go to "/clouds/design/server_template/{{ cloud_context }}" Then I should get a 403 HTTP response When I go to "clouds/design/server_template/{{ cloud_context }}/aws_cloud/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add an image Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/image" And I should not see "Add AWS Cloud image" When I go to "/clouds/aws_cloud/{{ cloud_context }}/image/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add a security group Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/security_group" And I should not see "Add AWS Cloud security group" When I go to "/clouds/aws_cloud/{{ cloud_context }}/security_group/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add a key pair Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/key_pair" And I should not see "Add AWS Cloud key pair" When I go to "/clouds/aws_cloud/{{ cloud_context }}/key_pair/add" Then I should get a 403 HTTP response modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-00-22-NonAuthorizedUserCheckResources.feature 0 → 100644 +35 −0 Original line number Diff line number Diff line Feature: Make sure "Authenticated user" cannot see resources @javascript @api Scenario: Cannot see the created cloud service provider Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds" And I should not see "{{ cloud_service_provider_name }}" @javascript @api Scenario: Cannot see the created instance Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/instance" And I click "Refresh" And I should not see "{{ instance_name }}" @javascript @api Scenario: cannot see the created image Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/image" And I click "Refresh" And I should not see "{{ image_id }}" @javascript @api Scenario: cannot see the created security group Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/security_group" And I click "Refresh" And I should not see "{{ security_group_name }}" @javascript @api Scenario: cannot see the created key pair Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/key_pair" And I click "Refresh" And I should not see "{{ ssh_key_name }}" Loading
modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-00-21-NonAuthorizedUserAccess.feature 0 → 100644 +39 −0 Original line number Diff line number Diff line Feature: Make sure "Authenticated user" cannot add resources @javascript @api Scenario: Cannot add an instance Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/instance" And I should not see "Add | Launch AWS Cloud instance" @javascript @api Scenario: Cannot add a launch template Given I am logged in as a user with the "Authenticated user" role When I go to "/clouds/design/server_template/{{ cloud_context }}" Then I should get a 403 HTTP response When I go to "clouds/design/server_template/{{ cloud_context }}/aws_cloud/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add an image Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/image" And I should not see "Add AWS Cloud image" When I go to "/clouds/aws_cloud/{{ cloud_context }}/image/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add a security group Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/security_group" And I should not see "Add AWS Cloud security group" When I go to "/clouds/aws_cloud/{{ cloud_context }}/security_group/add" Then I should get a 403 HTTP response @javascript @api Scenario: cannot add a key pair Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/key_pair" And I should not see "Add AWS Cloud key pair" When I go to "/clouds/aws_cloud/{{ cloud_context }}/key_pair/add" Then I should get a 403 HTTP response
modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-00-22-NonAuthorizedUserCheckResources.feature 0 → 100644 +35 −0 Original line number Diff line number Diff line Feature: Make sure "Authenticated user" cannot see resources @javascript @api Scenario: Cannot see the created cloud service provider Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds" And I should not see "{{ cloud_service_provider_name }}" @javascript @api Scenario: Cannot see the created instance Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/instance" And I click "Refresh" And I should not see "{{ instance_name }}" @javascript @api Scenario: cannot see the created image Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/image" And I click "Refresh" And I should not see "{{ image_id }}" @javascript @api Scenario: cannot see the created security group Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/security_group" And I click "Refresh" And I should not see "{{ security_group_name }}" @javascript @api Scenario: cannot see the created key pair Given I am logged in as a user with the "Authenticated user" role When I visit "/clouds/aws_cloud/key_pair" And I click "Refresh" And I should not see "{{ ssh_key_name }}"