Commit 6a161229 authored by Kumiko Ono's avatar Kumiko Ono Committed by Yas Naoi
Browse files

Issue #3312766 by kumikoono, yas: Refactor the AWS test scenario to assert a...

Issue #3312766 by kumikoono, yas: Refactor the AWS test scenario to assert a VPC name of the internet gateway
parent cc70e0cd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ default:
        # Security group view form
        Inbound rules: '.field--name-ip-permission'
        Outbound rules: '.field--name-outbound-permission'
        VPC ID: '.field--name-vpc-id'
        # Elastic IP view form
        Domain: '.field--name-domain'
        Network border group: '.field--name-network-border-group'
+4 −2
Original line number Diff line number Diff line
@@ -31,7 +31,10 @@ Feature: Allocate and release an Elastic IP as "Authenticated User"
    Then I should be on "/clouds/aws_cloud/{{ cloud_context }}/internet_gateway"
    And I should see the success message "is attached to VPC"
    And I should see neither error nor warning messages
    # List view.
    And I should see "Detach" in the "{{ internet_gateway_name }}" row
    And I should see "VPC" in the "Name" row
    And I should not see "VPC ID" in the "Name" row

  @api
  Scenario: View the internet gateway
@@ -45,8 +48,7 @@ Feature: Allocate and release an Elastic IP as "Authenticated User"
    Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/internet_gateway/"
    And I should see "{{ internet_gateway_name }}" in the "page_header"
    And I should see "{{ internet_gateway_name }}" in the "Internet gateway name"
    # Temporarily commented out until the view includes the VPC name along with the VPC ID.
    # And I should see "{{ vpc_name }}" in the "VPC ID"
    And I should see "{{ vpc_name }}" in the "VPC ID"
    And I should see "{{ user_name }}" in the "Authored by"
    And I should see neither error nor warning messages

+4 −0
Original line number Diff line number Diff line
@@ -30,7 +30,10 @@ Feature: Copying/editing a security group as "Authenticated User"
    And I should see "All Traffic" in the "Outbound rules"
    And I should see "0.0.0.0/0" in the "Outbound rules"
    And I visit "/clouds/aws_cloud/{{ cloud_context }}/security_group"
    # List view.
    And I should see "{{ security_group_name_to_copy }}" in the "{{ vpc_name_1 }}" row
    And I should see "VPC" in the "Name" row
    And I should not see "VPC ID" in the "Name" row

  @api
  Scenario: Copy the security group
@@ -68,6 +71,7 @@ Feature: Copying/editing a security group as "Authenticated User"
    And I should see neither error nor warning messages
    And I should see "{{ security_group_name_copied }}"
    And I should see "{{ description }}"
    And I should see "{{ vpc_name }}" in the "VPC ID"
    And I should not see "01/01/1970 - 00:00"
    And I should not see "12/31/1969 - 23:59"
    And I should not see "Inbound Rules"
+4 −1
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@ Feature: Create and view a VPC peering connection as "Authenticated User"
    And I should see the link "{{ vpc_requester_name }}" in the table

  @api
  Scenario: Add an accepter VPC
  Scenario: Add an acceptor VPC
    Given I am logged in as user "{{ user_name }}"
    When I visit "/clouds/aws_cloud/{{ cloud_context }}/vpc/add"
    And I should see the heading "Add AWS Cloud VPC"
@@ -40,7 +40,10 @@ Feature: Create and view a VPC peering connection as "Authenticated User"
    Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/vpc_peering_connection"
    And I should see the success message "has been created"
    And I should see neither error nor warning messages
    # List view.
    And I should see "pending-acceptance" in the "{{ vpc_peering_connection_name }}" row
    And I should see "VPC" in the "Name" row
    And I should not see "VPC ID" in the "Name" row

  @api
  Scenario: Accept the VPC peering connection