Unit Tests for instance types code
Bases: nova.test.TestCase
Test cases for the filter option available for instance_type_get_all
Exclude everything but large and xlarge which have >= 80 GB
Exclude tiny instance which is 512 MB
Exclude everything but large and xlarge which have >= 80 GB
Bases: nova.test.TestCase
Test cases for instance type code
Ensure deleted instance types can be read when querying flavor_id
Ensures that flavorid duplicates raise InstanceTypeCreateFailed
Ensures that name duplicates raise InstanceTypeCreateFailed
Ensures that all instance types can be retrieved
Ensure instance types can be created
Ensure instance types raises InvalidInput for invalid characters
Ensure get by name returns default flavor with no name
Ensures that instance type creation fails with invalid args
Ensures that instance type creation fails with invalid args
Ensure deleted instance types are not returned when not needed (for example when creating a server and attempting to translate from flavorid to instance_type_id.
Ensure deleted instance types with active instances can be read
Ensure destroy said path of no name raises error
ensures error raised on bad default instance type
Ensure get by flavor raises error with wrong flavorid
Ensure get by name returns default flavor with no name
Ensure get by name returns default flavor with bad name
Ensure get by name returns default flavor with bad name