The ironic_lib.tests.test_disk_utils Module

class ironic_lib.tests.test_disk_utils.DestroyMetaDataTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_destroy_disk_metadata(*args, **keywargs)[source]
test_destroy_disk_metadata_wipefs_fail(*args, **keywargs)[source]
test_destroy_disk_metadata_wipefs_not_support_force(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.GetConfigdriveTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_get_configdrive(*args, **keywargs)[source]
test_get_configdrive_bad_url(*args, **keywargs)[source]
test_get_configdrive_base64_error(*args, **keywargs)[source]
test_get_configdrive_base64_string(*args, **keywargs)[source]
test_get_configdrive_gzip_error(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.GetDeviceBlockSizeTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_get_dev_block_size(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.ListPartitionsTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_correct(*args, **keywargs)[source]
test_incorrect(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.MakePartitionsTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_make_partitions(*args, **keywargs)[source]
test_make_partitions_disk_label_gpt(*args, **keywargs)[source]
test_make_partitions_local_boot(*args, **keywargs)[source]
test_make_partitions_local_boot_gpt_bios(*args, **keywargs)[source]
test_make_partitions_local_boot_uefi(*args, **keywargs)[source]
test_make_partitions_with_ephemeral(*args, **keywargs)[source]
test_make_partitions_with_iscsi_device(*args, **keywargs)[source]
test_make_partitions_with_local_device(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.OtherFunctionTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

test_convert_image(*args, **keywargs)[source]
test_get_image_mb(*args, **keywargs)[source]
test_is_block_device_raises(*args, **keywargs)[source]
test_is_block_device_works(*args, **keywargs)[source]
test_qemu_img_info_path_doesnt_exist(*args, **keywargs)[source]
test_qemu_img_info_path_exists(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.PopulateImageTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_populate_qcow2_image(*args, **keywargs)[source]
test_populate_raw_image(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.RealFilePartitioningTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

This test applies some real-world partitioning scenario to a file.

This test covers the whole partitioning, mocking everything not possible on a file. That helps us assure, that we do all partitioning math properly and also conducts integration testing of DiskPartitioner.

setUp()[source]
test_different_sizes(*args, **keywargs)[source]
test_whole_disk(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.WholeDiskConfigDriveTestCases(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test__create_partition_mbr_disk_exceeds_2TB()[source]
test__create_partition_mbr_disk_under_2TB()[source]
test_create_partition_conf_drive_sz_exceed(*args, **keywargs)[source]
test_create_partition_exists(*args, **keywargs)[source]
test_create_partition_gpt(*args, **keywargs)[source]
test_create_partition_num_parts_exceed(*args, **keywargs)[source]
test_create_partition_part_create_exc(*args, **keywargs)[source]
test_create_partition_part_create_fail(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.WholeDiskPartitionTestCases(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test__is_disk_gpt_partitioned_true(*args, **keywargs)[source]
test_fix_gpt_structs_exc(*args, **keywargs)[source]
test_fix_gpt_structs_fix_not_required(*args, **keywargs)[source]
test_fix_gpt_structs_fix_required(*args, **keywargs)[source]
test_get_partition_DeployFail_exc(*args, **keywargs)[source]
test_get_partition_absent(*args, **keywargs)[source]
test_get_partition_exc(*args, **keywargs)[source]
test_get_partition_present(*args, **keywargs)[source]
test_is_disk_gpt_partitioned_exc(*args, **keywargs)[source]
test_is_disk_gpt_partitioned_false(*args, **keywargs)[source]
test_is_disk_larger_than_max_size_exc(*args, **keywargs)[source]
test_is_disk_larger_than_max_size_false(*args, **keywargs)[source]
test_is_disk_larger_than_max_size_true(*args, **keywargs)[source]
class ironic_lib.tests.test_disk_utils.WorkOnDiskTestCase(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_gpt_disk_label(*args, **keywargs)[source]
test_no_configdrive_partition(*args, **keywargs)[source]
test_no_ephemeral_partition(*args, **keywargs)[source]
test_no_root_partition(*args, **keywargs)[source]
test_no_swap_partition(*args, **keywargs)[source]

Previous topic

The ironic_lib.tests.test_disk_partitioner Module

Next topic

The ironic_lib.tests.test_metrics Module

Project Source

This Page