Skip to content
Snippets Groups Projects
Commit b89a3ae7 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 ab1125cb
No related branches found
No related tags found
4 merge requests!1759Issue #3356778: Release 5.1.1,!1679Issue #3349074: Fix the OpenStack Project create and edit form in SPA that "Member" cannot be saved due to a validation error,!1607Issue #3343582: Add the function to preview OpenStack stack in the SPA,!1032Issue #3284576: Release 5.0.0-alpha2
......@@ -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