Previous topic

The cinder.tests.test_volume Module

Next topic

The cinder.tests.test_volume_types_extra_specs Module

This Page

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

The cinder.tests.test_volume_types Module

Unit Tests for volume types code

class VolumeTypeTestCase(methodName='runTest')

Bases: cinder.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_existent_vol_type_shouldnt_delete()

Ensures that volume type creation fails with invalid args

test_repeated_vol_types_shouldnt_raise()

Ensures that volume duplicates don’t raise

test_volume_type_create_then_destroy()

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