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

Issue #3278819 by TamakiFujino, yas, kumikoono: Add a BDD test suite for K8s Jobs (Create)

parent 8d64e4d6
Branches
Tags
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
Feature: Create resources for K8s as "Authenticated User"
As a user
I need to create and delete a job
@api @javascript
Scenario: Create a job
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/job/add"
And I should see the heading "Add Job"
And I select "{{ namespace }}" from "Namespace"
And I fill in "Detail" with:
"""
apiVersion: batch/v1
kind: Job
metadata:
name: {{ job_name }}
spec:
template:
spec:
containers:
- name: {{ container_name }}
image: {{ image_name }}
command: ["perl", "-Mbignum=bpi", "-wle", "print bpi(2000)"]
restartPolicy: Never
backoffLimit: 4
"""
And I press "Save"
And I wait for AJAX to finish
Then the url should match "/clouds/k8s/{{ cloud_context }}/job"
And I should see "has been created"
And I should see "{{ job_name }}" in the "{{ namespace }}" row
......@@ -15,6 +15,10 @@ deployment_name:
bdd-deployment-@random
image_version:
nginx:1.14.2
image_name:
bdd-image-@random
job_name:
bdd-job-@random
k8s_cloud_service_provider_name_entered:
BDD_K8s_@Random
k8s_cloud_service_provider_name:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment