Loading modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-03-06-OperateKeyPairs.feature 0 → 100644 +53 −0 Original line number Diff line number Diff line @ci_job Feature: Create and view a key pair as "Authenticated User" @api @javascript Scenario: Create an SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair/add" And I should see the heading "Add AWS Cloud key pair" And I enter "{{ ssh_key_name_operate }}" for "Key pair name" And I press "Save" And I wait for AJAX to finish Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I click "Download private key" in the warning_message And I should see the link "{{ ssh_key_name_operate }}" @api @javascript Scenario: View an SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the heading "AWS Cloud key pairs" And I should see "{{ ssh_key_name_operate }}" in the table And I wait {{ wait }} milliseconds And I click "{{ ssh_key_name_operate }}" Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair/" And I should see "{{ ssh_key_name_operate }}" in the "page_header" And I should see "{{ ssh_key_name_operate }}" in the "details" And I press "Others" And I should see "{{ user_name }}" in the "Authored by" And I should see neither error nor warning messages @api @javascript Scenario: Delete the SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the link "{{ ssh_key_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ ssh_key_name_operate }}" And the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair/" And I click "Delete" in the "actions" And the url should match "/delete" And I press "Delete" And I wait for AJAX to finish Then I should be on "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I should see the success message "has been deleted" And I should see neither error nor warning messages And I click "Refresh" # No table exists. And I should not see the link "{{ ssh_key_name_operate }}" modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/params/aws_cloud_common.yml +2 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,8 @@ security_group_source: IP ssh_key_name: BDD_Key_@Random ssh_key_name_operate: BDD_Key_@Random_Operate status: Review subnet_name: Loading Loading
modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/AWS-ATDD-03-06-OperateKeyPairs.feature 0 → 100644 +53 −0 Original line number Diff line number Diff line @ci_job Feature: Create and view a key pair as "Authenticated User" @api @javascript Scenario: Create an SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair/add" And I should see the heading "Add AWS Cloud key pair" And I enter "{{ ssh_key_name_operate }}" for "Key pair name" And I press "Save" And I wait for AJAX to finish Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I should see the success message "has been created" And I should see the warning message "Download private key. Once downloaded, the key will be deleted from the server." And I should see no error message And I click "Download private key" in the warning_message And I should see the link "{{ ssh_key_name_operate }}" @api @javascript Scenario: View an SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the heading "AWS Cloud key pairs" And I should see "{{ ssh_key_name_operate }}" in the table And I wait {{ wait }} milliseconds And I click "{{ ssh_key_name_operate }}" Then the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair/" And I should see "{{ ssh_key_name_operate }}" in the "page_header" And I should see "{{ ssh_key_name_operate }}" in the "details" And I press "Others" And I should see "{{ user_name }}" in the "Authored by" And I should see neither error nor warning messages @api @javascript Scenario: Delete the SSH key pair Given I am logged in as user "{{ user_name }}" When I visit "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I click "Refresh" And I should see the link "{{ ssh_key_name_operate }}" And I wait {{ wait }} milliseconds And I click "{{ ssh_key_name_operate }}" And the url should match "/clouds/aws_cloud/{{ cloud_context }}/key_pair/" And I click "Delete" in the "actions" And the url should match "/delete" And I press "Delete" And I wait for AJAX to finish Then I should be on "/clouds/aws_cloud/{{ cloud_context }}/key_pair" And I should see the success message "has been deleted" And I should see neither error nor warning messages And I click "Refresh" # No table exists. And I should not see the link "{{ ssh_key_name_operate }}"
modules/cloud_service_providers/aws_cloud/tests/src/Behat/features/templates/params/aws_cloud_common.yml +2 −0 Original line number Diff line number Diff line Loading @@ -71,6 +71,8 @@ security_group_source: IP ssh_key_name: BDD_Key_@Random ssh_key_name_operate: BDD_Key_@Random_Operate status: Review subnet_name: Loading