The ironic.tests.unit.drivers.modules.test_image_cache Module

Tests for ImageCache class and helper functions.

class ironic.tests.unit.drivers.modules.test_image_cache.CleanupImageCacheTestCase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_both_clean_up(*args, **keywargs)[source]
test_clean_up_another_fs(*args, **keywargs)[source]
test_clean_up_fail(*args, **keywargs)[source]
test_no_clean_up(*args, **keywargs)[source]
test_one_clean_up(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_image_cache.TestFetchCleanup(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

test__fetch(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_image_cache.TestImageCacheCleanUp(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test_clean_up_amount_not_satisfied(*args, **keywargs)[source]
test_clean_up_cache_still_large(*args, **keywargs)[source]
test_clean_up_ensure_cache_size(*args, **keywargs)[source]
test_clean_up_ensure_cache_size_with_amount(*args, **keywargs)[source]
test_clean_up_old_deleted(*args, **keywargs)[source]
test_clean_up_old_with_amount(*args, **keywargs)[source]
test_cleanup_ordering()[source]
test_temp_dir_exception(*args, **keywargs)[source]
test_temp_images_not_cleaned(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_image_cache.TestImageCacheFetch(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__download_image(*args, **keywargs)[source]
test_fetch_image_both_master_and_dest_out_of_date(*args, **keywargs)[source]
test_fetch_image_dest_and_master_uptodate(*args, **keywargs)[source]
test_fetch_image_dest_out_of_date(*args, **keywargs)[source]
test_fetch_image_master_out_of_date(*args, **keywargs)[source]
test_fetch_image_no_master_dir(*args, **keywargs)[source]
test_fetch_image_not_uuid(*args, **keywargs)[source]
class ironic.tests.unit.drivers.modules.test_image_cache.TestUpdateImages(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

setUp()[source]
test__delete_dest_path_if_stale_no_dest(*args, **keywargs)[source]
test__delete_dest_path_if_stale_no_master(*args, **keywargs)[source]
test__delete_dest_path_if_stale_out_of_date(*args, **keywargs)[source]
test__delete_dest_path_if_stale_up_to_date(*args, **keywargs)[source]
test__delete_master_path_if_stale_glance_img(*args, **keywargs)[source]
test__delete_master_path_if_stale_glance_img_not_cached(*args, **keywargs)[source]
test__delete_master_path_if_stale_master_same_time(*args, **keywargs)[source]
test__delete_master_path_if_stale_master_up_to_date(*args, **keywargs)[source]
test__delete_master_path_if_stale_no_master(*args, **keywargs)[source]
test__delete_master_path_if_stale_no_updated_at(*args, **keywargs)[source]
test__delete_master_path_if_stale_out_of_date(*args, **keywargs)[source]

Project Source

This Page