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

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

parent ff0c7e0a
No related branches found
No related tags found
3 merge requests!1316Issue #3310263: Release 4.5.0,!1260Issue #3307397: Release 4.4.0,!878Issue #3276323: Add a BDD test suite for K8s Pod (Delete)
Feature: Create resources for K8s as "Authenticated User"
As a user
I need to create a pod
I need to create and delete a pod
@api @javascript
Scenario: Create a pod
......@@ -25,4 +25,22 @@ Feature: Create resources for K8s as "Authenticated User"
And I wait for AJAX to finish
Then the url should match "/clouds/k8s/{{ cloud_context }}/pod"
And I should see "has been created"
And I should see "nginx" in the "{{ namespace }}" row
And I should see "{{ pod_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Delete a pod
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/pod"
And I click "Refresh"
And I wait {{ wait }} milliseconds
And I should see the link "{{ pod_name }}"
And I click "{{ pod_name }}"
And the url should match "/k8s/{{ cloud_context }}/pod/"
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 }}/pod"
And I should see "has been deleted"
And I click "Refresh"
And I should not see the link "{{ pod_name }}"
......@@ -20,7 +20,7 @@ k8s_cloud_service_provider_name:
namespace:
bdd-namespace-@random
pod_name:
nginx-@random
bdd-pod-@random
port:
80
replica_count:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment