Given I am on the "cephfs" page
And I click on "Create" button
And enter "name" "test_cephfs"
- And I click on "Create Volume" button
+ And I click on "Create File System" button
Then I should see a row with "test_cephfs"
Scenario: Edit CephFS Volume
And I select a row "test_cephfs"
And I click on "Edit" button
And enter "name" "test_cephfs_edit" in the modal
- And I click on "Edit Volume" button
+ And I click on "Edit File System" button
Then I should see a row with "test_cephfs_edit"
Scenario: Remove CephFS Volume
And I click on "Remove" button from the table actions
Then I should see the modal
And I check the tick box in modal
- And I click on "Remove Volume" button
+ And I click on "Remove File System" button
Then I should not see a row with "test_cephfs_edit"
--- /dev/null
+Feature: CephFS Subvolume Group management
+
+ Goal: To test out the CephFS subvolume group management features
+
+ Background: Login
+ Given I am logged in
+
+ Scenario: Create a CephFS Volume
+ Given I am on the "cephfs" page
+ And I click on "Create" button
+ And enter "name" "test_cephfs"
+ And I click on "Create File System" button
+ Then I should see a row with "test_cephfs"
+
+ Scenario: Create a CephFS Subvolume Group
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolume groups" tab
+ And I click on "Create" button from the expanded row
+ And enter "subvolumegroupName" "test_subvolume_group" in the modal
+ And I click on "Create Subvolume group" button
+ Then I should see a row with "test_subvolume_group" in the expanded row
+
+ Scenario: Edit a CephFS Subvolume
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolume groups" tab
+ When I select a row "test_subvolume_group" in the expanded row
+ And I click on "Edit" button from the table actions in the expanded row
+ And enter "size" "1" in the modal
+ And I click on "Edit Subvolume group" button
+ Then I should see row "test_subvolume_group" of the expanded row to have a usage bar
+
+ Scenario: Remove a CephFS Subvolume
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolume groups" tab
+ When I select a row "test_subvolume_group" in the expanded row
+ And I click on "Remove" button from the table actions in the expanded row
+ And I check the tick box in modal
+ And I click on "Remove subvolume group" button
+ Then I should not see a row with "test_subvolume_group" in the expanded row
+
+ Scenario: Remove CephFS Volume
+ Given I am on the "cephfs" page
+ And I select a row "test_cephfs"
+ And I click on "Remove" button from the table actions
+ Then I should see the modal
+ And I check the tick box in modal
+ And I click on "Remove File System" button
+ Then I should not see a row with "test_cephfs_edit"
--- /dev/null
+Feature: CephFS Subvolume management
+
+ Goal: To test out the CephFS subvolume management features
+
+ Background: Login
+ Given I am logged in
+
+ Scenario: Create a CephFS Volume
+ Given I am on the "cephfs" page
+ And I click on "Create" button
+ And enter "name" "test_cephfs"
+ And I click on "Create File System" button
+ Then I should see a row with "test_cephfs"
+
+ Scenario: Create a CephFS Subvolume
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolumes" tab
+ And I click on "Create" button from the expanded row
+ And enter "subvolumeName" "test_subvolume" in the modal
+ And I click on "Create Subvolume" button
+ Then I should see a row with "test_subvolume" in the expanded row
+
+ Scenario: Edit a CephFS Subvolume
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolumes" tab
+ When I select a row "test_subvolume" in the expanded row
+ And I click on "Edit" button from the table actions in the expanded row
+ And enter "size" "1" in the modal
+ And I click on "Edit Subvolume" button
+ Then I should see row "test_subvolume" of the expanded row to have a usage bar
+
+ Scenario: Remove a CephFS Subvolume
+ Given I am on the "cephfs" page
+ When I expand the row "test_cephfs"
+ And I go to the "Subvolumes" tab
+ When I select a row "test_subvolume" in the expanded row
+ And I click on "Remove" button from the table actions in the expanded row
+ And I check the tick box in modal
+ And I click on "Remove subvolume" button
+ Then I should not see a row with "test_subvolume" in the expanded row
+
+ Scenario: Remove CephFS Volume
+ Given I am on the "cephfs" page
+ And I select a row "test_cephfs"
+ And I click on "Remove" button from the table actions
+ Then I should see the modal
+ And I check the tick box in modal
+ And I click on "Remove File System" button
+ Then I should not see a row with "test_cephfs_edit"
removeVolumeModal() {
const volName = this.selection.first().mdsmap['fs_name'];
this.modalService.show(CriticalConfirmationModalComponent, {
- itemDescription: 'Volume',
+ itemDescription: 'File System',
itemNames: [volName],
actionDescription: 'remove',
submitActionObservable: () =>
getDisableDesc(): boolean | string {
if (this.selection?.hasSelection) {
if (!this.monAllowPoolDelete) {
- return $localize`Volume deletion is disabled by the mon_allow_pool_delete configuration setting.`;
+ return $localize`File System deletion is disabled by the mon_allow_pool_delete configuration setting.`;
}
return false;
const selectedVolume = this.selection.first().mdsmap['fs_name'];
this.modalService.show(FormModalComponent, {
- titleText: $localize`Edit Volume: ${selectedVolume}`,
+ titleText: $localize`Edit File System: ${selectedVolume}`,
fields: [
{
type: 'text',
required: true
}
],
- submitButtonText: $localize`Edit Volume`,
+ submitButtonText: $localize`Edit File System`,
onSubmit: (values: any) => {
this.cephfsService.rename(selectedVolume, values.name).subscribe(() => {
this.notificationService.show(
NotificationType.success,
- $localize`Updated Volume '${selectedVolume}'`
+ $localize`Updated File System '${selectedVolume}'`
);
});
}