disk-partitioning

Test disk creating partition table and partitioning, partition formatting, partition mounting and umounting.

What It Tests

  • Disk Partition Table Creating: Create partition table for disk

  • Disk Partitioning: Partitioning disk

  • Disk Partition formatting: Format disk partition

  • Disk Partition mounting: Mount disk partition

  • Disk Partition umounting: Umount disk partition

Preconditions

  • Disk must be present and functional

  • System requires root privileges

  • parted, e2fsprogs and dosfstools package should be available

Test Parameters

Parameter

Default

Description

DEVICE

""

Specify device that used for test

DISKLABEL

"gpt"

Partition table type

FILESYSTEM

"ext4"

File system type

SKIP_INSTALL

"False"

Skip package installation

Test Steps

- cd ./automated/linux/disk-partitioning
- ./disk-partitioning.sh -d "${DEVICE}" -l "${DISKLABEL}" -f "${FILESYSTEM}" -s "${SKIP_INSTALL}"

Refer to disk-partitioning.yaml for complete test definition and execution details.

Expected Results

  • The partition table is created successfully

  • The disk partitioning operation is successful

  • The disk partition is formatted successfully

  • The disk partition is mounted successfully

  • The disk partition is umounted successfully

References