nova/nova/tests/unit/api/openstack/compute
jichenjc 6abb88befe Check flavor type before add tenant access
Currently we allow tenant access for public flavor, however,
we can't query it after that because flavor is public.
This patch adds check for add access function to raise exception
if the flavor is public.

Also, a nit change is use methods introduced in
793bcc07b9 to get flavor.

APIImpact: Adds new 2.7 API microversion due to new error condition
           in flavor access API
Implements blueprint check-flavor-type-before-add-tenant
Closes-Bug: #1361476

Change-Id: I461175e9969a0dd5b2b7ef75ea7d9f36f3a306d0
2015-07-24 15:36:29 +03:00
..
contrib Check flavor type before add tenant access 2015-07-24 15:36:29 +03:00
extensions move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
plugins Merge "Fix the wrong comment in the test_servers.py file" 2015-07-13 05:56:38 +00:00
test_plugins Add api microvesion unit test case for wsgi.action 2015-03-17 14:49:34 +08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
admin_only_action_common.py Use controller method in all admin actions tests 2015-03-09 09:39:27 +09:00
test_api.py Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
test_auth.py Fix infinite recursion caused by unnecessary stub 2015-03-11 23:16:07 -05:00
test_consoles.py Add policy check for consoles 2015-03-20 03:45:45 +08:00
test_extensions.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
test_flavors.py Replace unicode with six.text_type 2015-05-12 12:31:20 +02:00
test_image_metadata.py Removed twice declared variables 2015-04-29 15:26:50 +03:00
test_images.py V2.1 cleanup: Use concrete NotFound exception instead of generic 2015-02-13 19:21:05 +08:00
test_limits.py Use six.moves.range for Python 3 2015-05-20 15:19:51 -07:00
test_microversions.py Add api microvesion unit test case for wsgi.action 2015-03-17 14:49:34 +08:00
test_plugin_framework.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_server_actions.py snapshot: Add device_name to the snapshot bdms 2015-07-02 13:45:36 +01:00
test_server_metadata.py Rename and move the v2.1 api policy into separated files 2015-03-19 14:24:47 -04:00
test_servers.py Merge "Fix the wrong comment in the test_servers.py file" 2015-07-13 05:56:38 +00:00
test_urlmap.py Convert v2.1 extension_info to show V2 API extension list 2015-02-09 09:52:32 +10:30
test_v3_auth.py Fix infinite recursion caused by unnecessary stub 2015-03-11 23:16:07 -05:00
test_v3_extensions.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_v21_extensions.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_versions.py Check flavor type before add tenant access 2015-07-24 15:36:29 +03:00