This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Nova 2011.2 docs or all OpenStack docs too.

The nova.tests.test_volume_types Module

Unit Tests for volume types code

class nova.tests.test_volume_types.VolumeTypeTestCase(methodName='runTest')

Bases: nova.test.TestCase

Test cases for volume type code

setUp()
test_get_all_volume_types()

Ensures that all volume types can be retrieved

test_invalid_volume_types_params()

Ensures that volume type creation fails with invalid args

test_non_existant_inst_type_shouldnt_delete()

Ensures that volume type creation fails with invalid args

test_repeated_vol_types_should_raise_api_error()

Ensures that volume duplicates raises ApiError

test_volume_type_create_then_destroy()

Ensure volume types can be created and deleted

test_volume_type_create_then_purge()

Ensure volume types can be created and deleted

test_volume_type_get_by_id_and_name()

Ensure volume types get returns same entry

test_volume_type_search_by_extra_spec()

Ensure volume types get by extra spec returns correct type

test_volume_type_search_by_extra_spec_multiple()

Ensure volume types get by extra spec returns correct type