Skip to content
Snippets Groups Projects
Commit ff0c7e0a authored by Tamaki Fujino's avatar Tamaki Fujino Committed by Yas Naoi
Browse files

Issue #3276321 by TamakiFujino, kumikoono, yas: Add a BDD test suite for K8s Deployment (Delete)

parent 597891f7
Branches
Tags
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!896Issue #3276321: Add a BDD test suite for K8s Deployment (Delete)
......@@ -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."
......
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
......@@ -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 }}"
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment