Commit 979c1fd2 authored by Kumiko Ono's avatar Kumiko Ono Committed by Yas Naoi
Browse files

Issue #3273615 by kumikoono, yas, TamakiFujino: Refactor run_behat.sh to...

Issue #3273615 by kumikoono, yas, TamakiFujino: Refactor run_behat.sh to support @tags in feature files
parent 21cc79c9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@minimal @launch_instance
Feature: Create a cloud service provider for AWS as "Cloud administrator"
  In order to start BDD testing
  We need to create a cloud service provider
@@ -16,7 +17,7 @@ Feature: Create a cloud service provider for AWS as "Cloud administrator"
    And I should see "Creating cloud service provider was performed successfully"
    And I should see "{{ cloud_service_provider_name }}"

  @ignore
  @ignore @ci_job
  @api @javascript
  Scenario: Add an AWS Cloud service provider using assume role
    Given I am logged in as a user with the "Cloud administrator" role
+2 −1
Original line number Diff line number Diff line
@minimal @ci_job @launch_instance
Feature: Create a Drupal role for AWS as "Administrator"
  In order to start BDD testing
  We need to create a Drupal role
@@ -7,7 +8,7 @@ Feature: Create a Drupal role for AWS as "Administrator"
    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 }}"
    When I go to "/clouds/aws_cloud/{{ cloud_context }}/instance"
    And I go to "/clouds/aws_cloud/{{ cloud_context }}/instance"
    Then I should get a 403 HTTP response

  @api
+7 −1
Original line number Diff line number Diff line
@api
Feature: Confirm no AWS resources created by user as "Administrator"
  In order to be able to replicate BDD tests
  As an administrator
  I need to confirm no resources

  @api
  Scenario: No link to the instance
    Given I am logged in as a user with the "Administrator" role
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/instance"
    And I click "Refresh"
    Then I should not see "pending"

  @api
  Scenario: No link to the instance name on the template list
    Given I am logged in as a user with the "Administrator" role
    When I visit "/clouds/design/server_template/{{ cloud_context }}"
    And I click "Refresh"
    Then I should not see the link "{{ instance_name }}"

  @api
  Scenario: No link to the security group
    Given I am logged in as a user with the "Administrator" role
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group"
    And I click "Refresh"
    Then I should not see the link "{{ security_group_name }}"

  @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 click "Refresh"
    Then I should not see the link "{{ subnet_name }}"

  @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"
@@ -35,12 +39,14 @@ Feature: Confirm no AWS resources created by user as "Administrator"
    Then I should not see the link "{{ vpc_name }}"
    And I should see the link "default" in the table

  @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 click "Refresh"
    Then I should not see the link "{{ image_name }}"

  @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"
+1 −0
Original line number Diff line number Diff line
@minimal @ci_job @launch_instance
Feature: Create resources for AWS as "Authenticated User"
  In order to launch EC2 instance
  As a user
+1 −0
Original line number Diff line number Diff line
@minimal @ci_job @launch_instance
Feature: Launch an EC2 instance as "Authenticated User"

  @api @javascript
Loading