Loading modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-09-OperatePersistentVolumes.feature +51 −5 Original line number Diff line number Diff line @minimal @ci_job Feature: Create 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" Loading @@ -15,7 +15,6 @@ Feature: Create and delete a persistent volume for K8s as "Authenticated User" spec: capacity: storage: {{ volume_capacity }} storageClassName: '' volumeMode: Filesystem accessModes: - ReadWriteOnce Loading @@ -31,14 +30,61 @@ Feature: Create and delete a persistent volume for K8s as "Authenticated User" And I should see "{{ persistent_volume_name }}" in the table @api @javascript Scenario: Delete 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" And the url should match "/k8s/{{ cloud_context }}/persistent_volume/" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I should see "{{ persistent_volume_name }}" And I should see "{{ volume_capacity }}" And I should see neither error nor warning messages @api @javascript 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I click "Edit" And I fill in "Detail" with: """ kind: PersistentVolume apiVersion: v1 metadata: name: {{ persistent_volume_name }} spec: capacity: storage: {{ volume_capacity_edit }} volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Delete hostPath: path: {{ volume_local_path }} """ And I press "Save" And I wait for AJAX to finish Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume" And I should see the success message "has been updated" And I should see neither error nor warning messages And I should see "{{ persistent_volume_name }}" And I should see "{{ volume_capacity_edit }}" @api @javascript 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I click "Delete" in the "actions" And the url should match "/delete" And I press "Delete" Loading modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/params/k8s_params.yml +2 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,8 @@ user_password: BDD_pwd_@Random volume_capacity: 100Mi volume_capacity_edit: 200Mi volume_local_path: /tmp/bdd_volume_@random volume_mount_path: Loading Loading
modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/K8s-ATDD-02-09-OperatePersistentVolumes.feature +51 −5 Original line number Diff line number Diff line @minimal @ci_job Feature: Create 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" Loading @@ -15,7 +15,6 @@ Feature: Create and delete a persistent volume for K8s as "Authenticated User" spec: capacity: storage: {{ volume_capacity }} storageClassName: '' volumeMode: Filesystem accessModes: - ReadWriteOnce Loading @@ -31,14 +30,61 @@ Feature: Create and delete a persistent volume for K8s as "Authenticated User" And I should see "{{ persistent_volume_name }}" in the table @api @javascript Scenario: Delete 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" And the url should match "/k8s/{{ cloud_context }}/persistent_volume/" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I should see "{{ persistent_volume_name }}" And I should see "{{ volume_capacity }}" And I should see neither error nor warning messages @api @javascript 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I click "Edit" And I fill in "Detail" with: """ kind: PersistentVolume apiVersion: v1 metadata: name: {{ persistent_volume_name }} spec: capacity: storage: {{ volume_capacity_edit }} volumeMode: Filesystem accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Delete hostPath: path: {{ volume_local_path }} """ And I press "Save" And I wait for AJAX to finish Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume" And I should see the success message "has been updated" And I should see neither error nor warning messages And I should see "{{ persistent_volume_name }}" And I should see "{{ volume_capacity_edit }}" @api @javascript 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" And I wait {{ wait }} milliseconds And I should see the link "{{ persistent_volume_name }}" And I click "{{ persistent_volume_name }}" Then the url should match "/clouds/k8s/{{ cloud_context }}/persistent_volume/" And I click "Delete" in the "actions" And the url should match "/delete" And I press "Delete" Loading
modules/cloud_service_providers/k8s/tests/src/Behat/features/templates/params/k8s_params.yml +2 −0 Original line number Diff line number Diff line Loading @@ -149,6 +149,8 @@ user_password: BDD_pwd_@Random volume_capacity: 100Mi volume_capacity_edit: 200Mi volume_local_path: /tmp/bdd_volume_@random volume_mount_path: Loading