summaryrefslogtreecommitdiff
path: root/nova/tests/compute/test_flavors.py
Commit message (Collapse)AuthorAgeFilesLines
* move all tests to nova/tests/unitSean Dague2014-11-121-61/+0
| | | | | | | | | | As part of the split of functional and unit tests we need to isolate the unit tests into a separate directory for having multiple test targets in a sane way. Part of bp:functional-tests-for-nova Change-Id: Id42ba373c1bda6a312b673ab2b489ca56da8c628
* Remove all redundant `setUp` methods.Mikhail Durnosvistov2014-09-151-6/+0
| | | | | | | It would be better if we remove all redundant `setUp` methods and should be added as needed. Change-Id: If6072894f1ced83c8bcf7fd44f8b67ea17a847f1
* Update RESP message when failed to create flavorwangbo2014-08-251-0/+29
| | | | | | | | | | | | | | | The response message is unexpected(not easy to understand),if requested resource exceeded limitation when to create flavor. Because the error message used DB model fields but not that used by API body. Such as following response message: "Invalid input received: memory_mb must be <= 2147483647" 'memory_mb' is DB model field but 'ram' used in REST API Change "memory_mb" to "ram", "root_gb" to "disk" and "ephemeral_gb" to "ephemeral". Change-Id: I43e2f307d21325a6b54815edf157f3d5fa1135e5 Fixes: bug #1350751
* Add test cases for validate_extra_spec_keysjichenjc2014-03-271-0/+38
There is no unit test cases for function flavors.validate_extra_spec_keys, this patch adds for it Change-Id: I689aad1ce7428687c723ecd2eba243fccb3342bf Closes-Bug: #1292316