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

Issue #3291766 by TamakiFujino, yas, kumikoono: Fix the interface texts of K8s...

Issue #3291766 by TamakiFujino, yas, kumikoono: Fix the interface texts of K8s resource names against Drupal User Interface Standards
parent c822f5ba
No related branches found
No related tags found
No related merge requests found
Showing
with 79 additions and 79 deletions
......@@ -8,21 +8,21 @@ Feature: Create a cloud service provider for K8s as "Cloud administrator"
Scenario: Add a K8s Cloud service provider
Given I am logged in as a user with the "Cloud administrator" role
When I visit "/admin/structure/cloud_config/add/k8s"
And I enter "{{ k8s_cloud_service_provider_name_entered }}" for "Name"
And I enter "{{ cloud_service_provider_name_entered }}" for "Name"
And I enter "{{ api_server }}" for "API server"
And I enter "{{ api_server_token }}" for "Token"
And I press "Save"
Then I should be on "/admin/structure/cloud_config"
And I should see the success message "has been created"
And I should see no error message
And I should see K8s in the "{{ k8s_cloud_service_provider_name }}" row
And I should see K8s in the "{{ cloud_service_provider_name }}" row
@ignore @ci_job
@api
Scenario: Add a K8s Cloud service provider
Given I am logged in as a user with the "Cloud administrator" role
When I visit "/admin/structure/cloud_config/add/k8s"
And I enter "{{ k8s_cloud_service_provider_name_entered }}" for "Name"
And I enter "{{ cloud_service_provider_name_entered }}" for "Name"
And I enter "{{ api_server }}" for "API server"
And I enter "{{ api_server_token }}" for "Token"
And I press "Save"
......@@ -30,4 +30,4 @@ Feature: Create a cloud service provider for K8s as "Cloud administrator"
And I should see the success message "has been created"
And I should see no error message
And I should see the warning message "The region {{ aws_region }} is not available"
And I should see K8s in the "{{ k8s_cloud_service_provider_name }}" row
And I should see K8s in the "{{ cloud_service_provider_name }}" row
......@@ -18,7 +18,7 @@ Feature: Create a Drupal role for K8s and a user as "Administrator"
And I check the box "View any K8s entities belonging to a namespace: kube-system"
And I check the box "View any K8s entities belonging to a namespace: kubernetes-dashboard"
# Allow to see the cloud service provider
And I check the box "Access {{ k8s_cloud_service_provider_name }}"
And I check the box "Access {{ cloud_service_provider_name }}"
# Allow to launch an instance.
And I check the box "Launch approved cloud launch template"
And I press "Save permissions"
......
@minimal @ci_job
Feature: Create and delete a Pod for K8s as "Authenticated User"
Feature: Create and delete a pod for K8s as "Authenticated User"
@api @javascript
Scenario: Create a Pod
Scenario: Create a pod
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/pod/add"
And I should see the heading "Add Pod"
......@@ -28,7 +28,7 @@ Feature: Create and delete a Pod for K8s as "Authenticated User"
And I should see "{{ pod_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Delete the Pod
Scenario: Delete the pod
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/pod"
And I click "Refresh"
......
@minimal @ci_job
Feature: Create, read, update and delete a Deployment for K8s as "Authenticated User"
Feature: Create, read, update and delete a deployment for K8s as "Authenticated User"
@api @javascript
Scenario: Create a Deployment
Scenario: Create a deployment
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/deployment/add"
And I select "{{ namespace }}" from "Namespace"
......@@ -38,7 +38,7 @@ Feature: Create, read, update and delete a Deployment for K8s as "Authenticated
And I should see "{{ namespace }}" in the "{{ deployment_name }}" row
@api @javascript
Scenario: Read the Deployment
Scenario: Read the deployment
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/deployment"
And I click "Refresh"
......@@ -51,7 +51,7 @@ Feature: Create, read, update and delete a Deployment for K8s as "Authenticated
And I should see neither error nor warning messages
@api @javascript
Scenario: Update the Deployment
Scenario: Update the deployment
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/deployment"
And I click "Refresh"
......@@ -93,7 +93,7 @@ Feature: Create, read, update and delete a Deployment for K8s as "Authenticated
And I should see "{{ replica_count_edit }}"
@api @javascript
Scenario: Delete the Deployment
Scenario: Delete the deployment
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/deployment"
And I click "Refresh"
......
......@@ -35,7 +35,7 @@ Feature: Create and delete a ReplicaSet for K8s as "Authenticated User"
And I should see "{{ replicaset_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Read a replicaset
Scenario: Read the ReplicaSet
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/replica_set"
And I click "Refresh"
......@@ -48,7 +48,7 @@ Feature: Create and delete a ReplicaSet for K8s as "Authenticated User"
And I should see neither error nor warning messages
@api @javascript
Scenario: Update a replicaset
Scenario: Update the ReplicaSet
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/replica_set"
And I click "Refresh"
......
@minimal @ci_job
Feature: Create and delete a Service for K8s as "Authenticated User"
Feature: Create and delete a service for K8s as "Authenticated User"
@api @javascript
Scenario: Create a Service
Scenario: Create a service
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/service/add"
And I should see the heading "Add Service"
......
@minimal @ci_job
Feature: Create delete a Job for K8s as "Authenticated User"
Feature: Create delete a job for K8s as "Authenticated User"
@api @javascript
Scenario: Create a Job
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"
......@@ -31,7 +31,7 @@ Feature: Create delete a Job for K8s as "Authenticated User"
And I should see "{{ job_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Delete the Job
Scenario: Delete the job
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/job"
And I click "Refresh"
......
@minimal @ci_job
Feature: Create, read, update and delete a Persistent Volume for K8s as "Authenticated User"
Feature: Create, read, update and delete a persistent volume for K8s as "Authenticated User"
@api @javascript
Scenario: Create a Persistent Volume
Scenario: Create a persistent volume
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume/add"
And I should see the heading "Add Persistent volume"
......@@ -30,7 +30,7 @@ Feature: Create, read, update and delete a Persistent Volume for K8s as "Authent
And I should see "{{ persistent_volume_name }}" in the table
@api @javascript
Scenario: Read the Persistent Volume
Scenario: Read the persistent volume
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume"
And I click "Refresh"
......@@ -43,7 +43,7 @@ Feature: Create, read, update and delete a Persistent Volume for K8s as "Authent
And I should see neither error nor warning messages
@api @javascript
Scenario: Update the Persistent Volume
Scenario: Update the persistent volume
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume"
And I click "Refresh"
......@@ -77,7 +77,7 @@ Feature: Create, read, update and delete a Persistent Volume for K8s as "Authent
And I should see "{{ volume_capacity_edit }}"
@api @javascript
Scenario: Delete the Persistent Volume
Scenario: Delete the persistent volume
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume"
And I click "Refresh"
......
......@@ -32,7 +32,7 @@ Feature: Create and delete a LimitRange for K8s as "Authenticated User"
And I should see "{{ limitrange_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Read a limitrange
Scenario: Read the LimitRange
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/limit_range"
And I click "Refresh"
......@@ -45,7 +45,7 @@ Feature: Create and delete a LimitRange for K8s as "Authenticated User"
And I should see neither error nor warning messages
@api @javascript
Scenario: Update a limitrange
Scenario: Update the LimitRange
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/limit_range"
And I click "Refresh"
......
......@@ -145,7 +145,7 @@ Feature: Create, read, update, and delete a StatefulSet for K8s as "Authenticate
And I should not see the link "{{ statefulset_name }}"
@api @javascript
Scenario: Fail to clean up the remaining Persistent Volumes Claim
Scenario: Fail to clean up the remaining persistent volumes claim
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume_claim"
And I click "Refresh"
......@@ -160,12 +160,12 @@ Feature: Create, read, update, and delete a StatefulSet for K8s as "Authenticate
And I should not see "Delete"
@api @javascript
Scenario: Clean up the remaining Persistent Volumes Claim
Scenario: Clean up the remaining persistent volumes claim
Given I am logged in as a user with the "Administrator" role
When I visit "/clouds/k8s/{{ cloud_context }}/persistent_volume_claim"
And I click "Refresh"
And I wait {{ wait }} milliseconds
# Delete all Persistent Volumes Claims belonging to {{ namespace }}
# Delete all persistent volumes claims belonging to {{ namespace }}
And I select "{{ namespace }}" from "Namespace"
And I press "Apply"
And I wait {{ wait }} milliseconds
......@@ -179,5 +179,5 @@ Feature: Create, read, update, and delete a StatefulSet for K8s as "Authenticate
And I should see the success message "has been deleted"
And I should see neither error nor warning messages
And I click "Refresh"
# Confirm that there are no Persistent Volumes Claims in {{ namespace }}.
# Confirm that there are no persistent volumes claims in {{ namespace }}.
And I should not see the link "{{ namespace }}"
......@@ -16,7 +16,7 @@ Feature: Create, read, update and delete an ingress for K8s as "Authenticated Us
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: {{ ingressclass_name }}
ingressClassName: {{ ingress_class_name }}
rules:
- http:
paths:
......@@ -69,7 +69,7 @@ Feature: Create, read, update and delete an ingress for K8s as "Authenticated Us
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: {{ ingressclass_name }}
ingressClassName: {{ ingress_class_name }}
rules:
- http:
paths:
......
@minimal @ci_job
Feature: Create, read, update and delete an Endpoint for K8s as "Authenticated User"
Feature: Create, read, update and delete an endpoint for K8s as "Authenticated User"
@api @javascript
Scenario: Create an Endpoint
Scenario: Create an endpoint
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/endpoint/add"
And I should see the heading "Add Endpoint"
......@@ -27,7 +27,7 @@ Feature: Create, read, update and delete an Endpoint for K8s as "Authenticated U
And I should see "{{ endpoint_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Read the Endpoint
Scenario: Read the endpoint
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/endpoint"
And I wait {{ wait }} milliseconds
......@@ -39,7 +39,7 @@ Feature: Create, read, update and delete an Endpoint for K8s as "Authenticated U
And I should see neither error nor warning messages
@api @javascript
Scenario: Update the Endpoint
Scenario: Update the endpoint
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/endpoint"
And I click "Refresh"
......@@ -70,7 +70,7 @@ Feature: Create, read, update and delete an Endpoint for K8s as "Authenticated U
And I should see "{{ endpoint_ip_edit }}"
@api @javascript
Scenario: Delete the Endpoint
Scenario: Delete the endpoint
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/endpoint"
And I click "Refresh"
......
@minimal @ci_job
Feature: Create, read, update and delete a service account for K8s as "Authenticated User"
Feature: Create, read, update and delete a ServiceAccount for K8s as "Authenticated User"
@api @javascript
Scenario: Create a service account
Scenario: Create a ServiceAccount
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/service_account/add"
And I should see the heading "Add ServiceAccount"
......@@ -22,7 +22,7 @@ Feature: Create, read, update and delete a service account for K8s as "Authentic
And I should see "{{ serviceaccount_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Read the service account
Scenario: Read the ServiceAccount
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/service_account"
And I click "Refresh"
......@@ -35,7 +35,7 @@ Feature: Create, read, update and delete a service account for K8s as "Authentic
And I should see neither error nor warning messages
@api @javascript
Scenario: Update the service account
Scenario: Update the ServiceAccount
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/service_account"
And I click "Refresh"
......@@ -62,7 +62,7 @@ Feature: Create, read, update and delete a service account for K8s as "Authentic
And I should see "{{ app_name }}"
@api @javascript
Scenario: Delete the service account
Scenario: Delete the ServiceAccount
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/service_account"
And I click "Refresh"
......
......@@ -30,7 +30,7 @@ Feature: Create and delete a role binding for K8s as "Authenticated User"
And I should see "{{ role_binding_name }}" in the "{{ namespace }}" row
@api @javascript
Scenario: Read a role binding
Scenario: Read the role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/role_binding"
And I click "Refresh"
......@@ -43,7 +43,7 @@ Feature: Create and delete a role binding for K8s as "Authenticated User"
And I should see neither error nor warning messages
@api @javascript
Scenario: Update a role binding
Scenario: Update the role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/role_binding"
And I click "Refresh"
......@@ -77,7 +77,7 @@ Feature: Create and delete a role binding for K8s as "Authenticated User"
And I should see "{{ role_binding_sub_user_edit }}"
@api @javascript
Scenario: Delete a role binding
Scenario: Delete the role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/role_binding"
And I click "Refresh"
......
......@@ -29,7 +29,7 @@ Feature: Create, read, update and delete cluster role binding for K8s as "Authen
And I should see "{{ cluster_role_binding_name }}"
@api @javascript
Scenario: Read a cluster role binding
Scenario: Read the cluster role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/cluster_role_binding"
And I click "Refresh"
......@@ -42,7 +42,7 @@ Feature: Create, read, update and delete cluster role binding for K8s as "Authen
And I should see neither error nor warning messages
@api @javascript
Scenario: Update cluster role binding
Scenario: Update the cluster role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/cluster_role_binding"
And I click "Refresh"
......@@ -76,7 +76,7 @@ Feature: Create, read, update and delete cluster role binding for K8s as "Authen
And I should see "{{ role_binding_sub_user_edit }}"
@api @javascript
Scenario: Delete a cluster role binding
Scenario: Delete the cluster role binding
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/cluster_role_binding"
And I click "Refresh"
......
@minimal @ci_job @wip # Remove @wip tag once k8s API library supports v2.
Feature: Create, read, update and delete a HorizontalPodAutoscaler for K8s as "Authenticated User"
Feature: Create, read, update and delete a horizontal pod autoscaler for K8s as "Authenticated User"
@api @javascript
Scenario: Create a HorizontalPodAutoscaler
Scenario: Create a horizontal pod autoscaler
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler/add"
And I select "{{ namespace }}" from "Namespace"
......@@ -11,77 +11,77 @@ Feature: Create, read, update and delete a HorizontalPodAutoscaler for K8s as "A
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ horizontalpodautoscaler_name }}
name: {{ horizontal_pod_autoscaler_name }}
spec:
maxReplicas: {{ horizontalpodautoscaler_replica_max }}
minReplicas: {{ horizontalpodautoscaler_replica_min }}
maxReplicas: {{ horizontal_pod_autoscaler_replica_max }}
minReplicas: {{ horizontal_pod_autoscaler_replica_min }}
scaleTargetRef:
apiVersion: {{ horizontalpodautoscaler_api }}
kind: {{ horizontalpodautoscaler_kind }}
name: {{ horizontalpodautoscaler_scale_name }}
targetCPUUtilizationPercentage: {{ horizontalpodautoscaler_cpu }}
apiVersion: {{ horizontal_pod_autoscaler_api }}
kind: {{ horizontal_pod_autoscaler_kind }}
name: {{ horizontal_pod_autoscaler_scale_name }}
targetCPUUtilizationPercentage: {{ horizontal_pod_autoscaler_cpu }}
"""
And I press "Save"
And I wait for AJAX to finish
Then I should be on "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler"
And I should see the success message "has been created"
And I should see neither error nor warning messages
And I should see "{{ namespace }}" in the "{{ horizontalpodautoscaler_name }}" row
And I should see "{{ namespace }}" in the "{{ horizontal_pod_autoscaler_name }}" row
@api @javascript
Scenario: Read the HorizontalPodAutoscaler
Scenario: Read the horizontal pod autoscaler
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler"
And I click "Refresh"
And I should see the link "{{ horizontalpodautoscaler_name }}"
And I should see the link "{{ horizontal_pod_autoscaler_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ horizontalpodautoscaler_name }}"
And I click "{{ horizontal_pod_autoscaler_name }}"
Then the url should match "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler/"
And I should see "{{ horizontalpodautoscaler_name }}"
And I should see "{{ horizontal_pod_autoscaler_name }}"
And I should see "{{ namespace }}"
And I should see neither error nor warning messages
@api @javascript
Scenario: Update the HorizontalPodAutoscaler
Scenario: Update the horizontal pod autoscaler
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler"
And I click "Refresh"
And I should see the link "{{ horizontalpodautoscaler_name }}"
And I should see the link "{{ horizontal_pod_autoscaler_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ horizontalpodautoscaler_name }}"
And I click "{{ horizontal_pod_autoscaler_name }}"
Then the url should match "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler/"
And I click "Edit"
"""
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ horizontalpodautoscaler_name }}
name: {{ horizontal_pod_autoscaler_name }}
spec:
maxReplicas: {{ horizontalpodautoscaler_replica_max_edit }}
minReplicas: {{ horizontalpodautoscaler_replica_min }}
maxReplicas: {{ horizontal_pod_autoscaler_replica_max_edit }}
minReplicas: {{ horizontal_pod_autoscaler_replica_min }}
scaleTargetRef:
apiVersion: {{ horizontalpodautoscaler_api }}
kind: {{ horizontalpodautoscaler_kind }}
name: {{ horizontalpodautoscaler_scale_name }}
targetCPUUtilizationPercentage: {{ horizontalpodautoscaler_cpu }}
apiVersion: {{ horizontal_pod_autoscaler_api }}
kind: {{ horizontal_pod_autoscaler_kind }}
name: {{ horizontal_pod_autoscaler_scale_name }}
targetCPUUtilizationPercentage: {{ horizontal_pod_autoscaler_cpu }}
"""
And I press "Save"
And I wait for AJAX to finish
Then the url should match "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler"
And I should see the success message "has been updated"
And I should see neither error nor warning messages
And I click "{{ horizontalpodautoscaler_name }}"
And I click "{{ horizontal_pod_autoscaler_name }}"
Then the url should match "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler/"
And I should see "{{ horizontalpodautoscaler_replica_max_edit }}"
And I should see "{{ horizontal_pod_autoscaler_replica_max_edit }}"
@api @javascript
Scenario: Delete the HorizontalPodAutoscaler
Scenario: Delete the horizontal pod autoscaler
Given I am logged in as user "{{ user_name }}"
When I visit "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler"
And I click "Refresh"
And I should see the link "{{ horizontalpodautoscaler_name }}"
And I should see the link "{{ horizontal_pod_autoscaler_name }}"
And I wait {{ wait }} milliseconds
And I click "{{ horizontalpodautoscaler_name }}"
And I click "{{ horizontal_pod_autoscaler_name }}"
Then the url should match "/clouds/k8s/{{ cloud_context }}/horizontal_pod_autoscaler/"
And I click "Delete"
And the url should match "/delete"
......@@ -91,4 +91,4 @@ Feature: Create, read, update and delete a HorizontalPodAutoscaler for K8s as "A
And I should see the success message "has been deleted"
And I should see neither error nor warning messages
And I click "Refresh"
And I should not see the link "{{ horizontalpodautoscaler_name }}"
And I should not see the link "{{ horizontal_pod_autoscaler_name }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment