Loading modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-00-02-CreateDrupalResources.feature +0 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,6 @@ Feature: Create a Drupal role for K8s and a user as "Administrator" And I check the box "Access {{ k8s_cloud_service_provider_name }}" # Allow to launch an instance. And I check the box "Launch approved cloud launch template" # Allow to view, edit, and delete resources And I check the box "View any K8s pod" And I check the box "View any K8s deployment" And I press "Save permissions" And I should see "The changes have been saved." Loading modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-03-CreateDeployments.feature→modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-03-OperateDeployments.feature +19 −1 Original line number Diff line number Diff line Feature: Create resources for K8s as "Authenticated User" As a user I need to create a deployment I need to create and delete a deployment @api @javascript Scenario: Create a deployment Loading Loading @@ -36,3 +36,21 @@ Feature: Create resources for K8s as "Authenticated User" Then I should be on "/clouds/k8s/{{ cloud_context }}/deployment" And I should see "has been created" And I should see "{{ namespace }}" in the "{{ deployment_name }}" row @api @javascript Scenario: Delete a deployment Given I am logged in as user "{{ user_name }}" When I visit "/clouds/k8s/{{ cloud_context }}/deployment" And I click "Refresh" And I should see the link "{{ deployment_name }}" And I wait {{ wait }} milliseconds And I click "{{ deployment_name }}" And the url should match "/{{ cloud_context }}/deployment/" 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/k8s/{{ cloud_context }}/deployment" And I should see "has been deleted" And I click "Refresh" And I should not see the link "{{ deployment_name }}" modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/params/k8s_params.yml +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ cloud_context: container_name: nginx deployment_name: nginx-deployment-@random bdd-deployment-@random image_version: nginx:1.14.2 k8s_cloud_service_provider_name_entered: Loading Loading
modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-00-02-CreateDrupalResources.feature +0 −3 Original line number Diff line number Diff line Loading @@ -20,9 +20,6 @@ Feature: Create a Drupal role for K8s and a user as "Administrator" And I check the box "Access {{ k8s_cloud_service_provider_name }}" # Allow to launch an instance. And I check the box "Launch approved cloud launch template" # Allow to view, edit, and delete resources And I check the box "View any K8s pod" And I check the box "View any K8s deployment" And I press "Save permissions" And I should see "The changes have been saved." Loading
modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-03-CreateDeployments.feature→modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-03-OperateDeployments.feature +19 −1 Original line number Diff line number Diff line Feature: Create resources for K8s as "Authenticated User" As a user I need to create a deployment I need to create and delete a deployment @api @javascript Scenario: Create a deployment Loading Loading @@ -36,3 +36,21 @@ Feature: Create resources for K8s as "Authenticated User" Then I should be on "/clouds/k8s/{{ cloud_context }}/deployment" And I should see "has been created" And I should see "{{ namespace }}" in the "{{ deployment_name }}" row @api @javascript Scenario: Delete a deployment Given I am logged in as user "{{ user_name }}" When I visit "/clouds/k8s/{{ cloud_context }}/deployment" And I click "Refresh" And I should see the link "{{ deployment_name }}" And I wait {{ wait }} milliseconds And I click "{{ deployment_name }}" And the url should match "/{{ cloud_context }}/deployment/" 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/k8s/{{ cloud_context }}/deployment" And I should see "has been deleted" And I click "Refresh" And I should not see the link "{{ deployment_name }}"
modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/params/k8s_params.yml +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ cloud_context: container_name: nginx deployment_name: nginx-deployment-@random bdd-deployment-@random image_version: nginx:1.14.2 k8s_cloud_service_provider_name_entered: Loading