tuskar-ui/openstack_dashboard
Alexey Izbyshev 155e3ae7c3 Fix handling of UUID-typed flavor ids
Change the type of flavor_id hidden field in EditFlavor form
from IntegerField to CharField since flavor id is a string
representation of UUID now. Additionally change the type of
similar hidden fields in CreateExtraSpec and EditExtraSpec forms.

Remove flavor id generation from form handling code. Id generation
should be done only in corresponding OpenStack components (nova, etc.).
Since nova supports flavor id autogeneration and 'flavorid' parameter
of FlavorManager.create() in novaclient is optional, remove 'flavorid'
parameter from api.nova.flavor_create().

Change flavor ids in test data from strings containing integers
to UUID-like strings to make them correspond to real data.

Update flavor tests to make them compatible with new
api.nova.flavor_create() signature.

Remove conversions of flavor id to int from all tests. In particular,
update test_index_flavor_get_exception() to make it generate unique
UUID flavor ids instead of integers.

Fixes bug #1076761

Change-Id: Iaa308578981f0379ff61a9dd42620eaf0ab1d605
2012-11-30 01:28:57 +04:00
..
api Fix handling of UUID-typed flavor ids 2012-11-30 01:28:57 +04:00
dashboards Fix handling of UUID-typed flavor ids 2012-11-30 01:28:57 +04:00
local Unifies Horizon conf. 2012-11-20 14:29:05 -08:00
locale Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
openstack Update common. 2012-10-18 14:54:56 -07:00
static For long tenant name, display an ellipsis using CSS3. 2012-11-27 13:12:13 -08:00
templates Don't inherit from base.html in 500 error page 2012-11-21 12:13:17 +11:00
test Fix handling of UUID-typed flavor ids 2012-11-30 01:28:57 +04:00
usage Added a check for volume service in quota functions 2012-11-09 15:00:30 +02:00
wsgi Updated the django.wsgi file for devstack. 2012-02-29 01:37:37 -08:00
__init__.py Unifies the project packaging into one set of modules. 2012-02-29 00:20:13 -08:00
context_processors.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00
exceptions.py Switch to using cinderclient. 2012-08-14 14:50:15 -07:00
settings.py Adds transitional deprecation code for old dashboard names. 2012-11-20 20:33:09 -08:00
urls.py Don't inherit from base.html in 500 error page 2012-11-21 12:13:17 +11:00
views.py Splits OpenStack Dashboard bits from framework app code. 2012-10-11 11:47:50 -07:00