cinder/cinder/tests/unit
Nate Potter 94714e761a Return volume_type extra specs based on policy
Currently extra specs are only shown to the admin user
when showing volume types. This patch grants the flexibility
to grant other users privelages to see them based on policy.

It also hides the extra_specs entry in the dictionary from
users who can't see it rather than just showing "None" as
the value.

Closes-Bug: #1504577
APIImpact

Change-Id: Ia8f71180f048ba9b253e35ee136915812ef8df0c
2015-10-29 15:35:10 +00:00
..
api Return volume_type extra specs based on policy 2015-10-29 15:35:10 +00:00
backup test_backup_nfs: Set volume id per test 2015-10-06 17:57:18 -04:00
brick Efficient image transfer for Glance cinder store 2015-08-25 10:40:25 -04:00
compute Fix usage of novaclient 2015-09-14 20:03:35 +03:00
db Make migration's volume source deletion async 2015-08-18 12:00:13 +02:00
glance Fix exception on uploading a volume to image with glance v2 API 2015-07-28 14:18:10 -04:00
image Image cache tests: use fake_notifier 2015-10-01 15:41:23 -04:00
integrated Fix order of arguments in assertEqual 2015-09-05 15:18:22 +08:00
keymgr Port test_volume to Python 3 2015-09-29 14:22:40 +02:00
monkey_patch_example Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
objects Merge "Fix backup metadata import missing fields" 2015-09-02 06:37:01 +00:00
scheduler Port scheduler host manager to Python 3 2015-10-02 10:28:36 +02:00
targets Port targets test_iet_driver to Python 3 2015-10-07 17:20:56 +02:00
var Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
volume Port EMC scaleio to Python 3 2015-10-07 23:13:45 +02:00
windows Switch to the oslo_utils.fileutils 2015-08-20 07:47:48 +00:00
wsgi Fix Python 3 issues in wsgi 2015-09-28 18:00:20 +02:00
xenapi Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
zonemanager Fix MITM vulnerability for Brocade FC SAN lookup 2015-09-18 16:13:49 +00:00
__init__.py Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
cast_as_call.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
conf_fixture.py Revert "Disable backup progress notifications for unit tests" 2015-06-19 14:27:40 -04:00
declare_conf.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_backup.py Incremental backup improvements for L 2015-08-26 14:33:14 +08:00
fake_consistencygroup.py ConsistencyGroup Object 2015-08-10 11:31:11 +02:00
fake_driver.py Attach snapshot - driver only 2015-08-08 11:44:46 -04:00
fake_hp_3par_client.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_hp_client_exceptions.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_hp_lefthand_client.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
fake_notifier.py Tests: Make fake_notifier per-instance 2015-06-19 11:27:40 +02:00
fake_service.py Service object 2015-09-01 07:09:08 +00:00
fake_snapshot.py Avoid race condition at snapshot deletion stage 2015-07-02 15:50:01 +03:00
fake_utils.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
fake_vmem_client.py Adds the Violin Memory V7000 series FC driver. 2015-06-19 13:38:32 -07:00
fake_volume.py Sync volume versionedobject to ORM 2015-09-01 07:49:10 -07:00
policy.json Merge "Allow specified backend capabilities to be retrieved" 2015-09-01 19:29:42 +00:00
runtime_conf.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_api.py Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
test_api_urlmap.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_backup.py Merge "Fix order of arguments in assertEqual" 2015-09-14 22:25:42 +00:00
test_backup_ceph.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_backup_driver_base.py Move import and export backup metadata to object 2015-08-14 10:24:53 +02:00
test_backup_swift.py Merge "Add insecure option for swift backup" 2015-10-09 01:51:43 +00:00
test_backup_tsm.py Remove oslo logging from backup unit tests 2015-06-27 21:23:34 +00:00
test_block_device.py Merge "Implement extend_volume method to Block Device driver" 2015-10-04 10:59:00 +00:00
test_blockbridge.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_cloudbyte.py Fix volume related operation in CloudByte driver 2015-09-26 15:23:41 +05:30
test_cmd.py Make rpc_client method private for VolumeCommands 2015-09-21 23:27:04 +03:00
test_conf.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_context.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_db_api.py Merge "Improve coverage for snapshot_get_by_host" 2015-10-13 03:57:17 +00:00
test_dellfc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_dellsc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_dellscapi.py Dell SC: cgsnapshot-delete doesn't actually delete 2015-09-30 09:29:19 -05:00
test_dothill.py Merge "Correct usage of assertEqual for boolean values" 2015-09-06 17:47:23 +00:00
test_drbdmanagedrv.py DRBD: new option "drbdmanage_devs_on_controller". 2015-10-01 09:58:34 +02:00
test_emc_vmax.py VMAX Target iSCSI IP Address 2015-10-04 22:13:25 -04:00
test_emc_vnxdirect.py Merge "Retype enhancement for EMC VNX cinder driver" 2015-10-09 04:36:47 +00:00
test_emc_xtremio.py Merge "Fix missing parameters in driver CG interface" 2015-08-14 16:46:05 +00:00
test_eqlx.py Dell Eqlx: Support over subscription in thin provisioning 2015-10-06 10:28:51 -05:00
test_evaluator.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_exception.py Fix Status-Line in HTTP response 2015-10-13 10:11:10 +00:00
test_glusterfs.py Merge "Add manage_existing and unmanage to BaseVD" 2015-09-29 20:19:25 +00:00
test_gpfs.py Fix Bad indentation pylint issues 2015-09-27 23:04:26 -07:00
test_hacking.py Hacking check for opt name registration 2015-10-06 08:35:48 -05:00
test_hitachi_hbsd_horcm_fc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hbsd_snm2_fc.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hbsd_snm2_iscsi.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_hitachi_hnas_backend.py Adds manage/unmanage methods for HNAS drivers. 2015-08-17 22:15:01 -03:00
test_hitachi_hnas_iscsi.py HNAS iSCSI manage does not work with spaces 2015-10-02 10:14:01 -03:00
test_hitachi_hnas_nfs.py Scheduler-based over-subscription for NFS drivers 2015-09-02 00:54:11 +00:00
test_hp3par.py 3PAR Disable generic image volume cache 2015-09-07 17:06:42 +00:00
test_hp_xp_fc.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
test_hplefthand.py LeftHand Add update_migrated_volume to drivers 2015-09-10 11:06:20 -07:00
test_huawei_drivers.py Fix capacity report error in Huawei driver 2015-10-05 17:44:17 +08:00
test_huawei_drivers_compatibility.py Refactor Huawei Volume driver 2015-07-18 16:49:05 +08:00
test_ibm_flashsystem.py Merge "Add mock cases for IBM FlashSystem" 2015-08-02 19:57:34 +00:00
test_ibm_flashsystem_iscsi.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_ibm_xiv_ds8k.py Remove duplicate keys from dictionary 2015-08-19 13:42:22 +09:00
test_ibmnas.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_image_utils.py TemporaryImages to inspect image before conversion 2015-08-25 10:40:25 -04:00
test_infortrend_cli.py Merge "Fix getting wwpn information in infortrend driver for DS4000" 2015-07-24 00:49:01 +00:00
test_infortrend_common.py Merge "Fix getting wwpn information in infortrend driver for DS4000" 2015-07-24 00:49:01 +00:00
test_migrations.py Generic image-volume cache 2015-09-02 17:54:07 +00:00
test_misc.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_netapp.py Port test_netapp to Python 3 2015-10-02 17:47:39 +02:00
test_netapp_eseries_iscsi.py Revert use of netapp_lib from NetApp Drivers 2015-09-25 10:31:19 -04:00
test_netapp_nfs.py Revert use of netapp_lib from NetApp Drivers 2015-09-25 10:31:19 -04:00
test_netapp_ssc.py Revert use of netapp_lib from NetApp Drivers 2015-09-25 10:31:19 -04:00
test_nfs.py Scheduler-based over-subscription for NFS drivers 2015-09-02 00:54:11 +00:00
test_nimble.py Add multi-initiator extra-spec for Nimble driver 2015-10-07 10:23:06 -07:00
test_prophetstor_dpl.py Use six to fix imports on Python 3 2015-06-11 17:19:19 +02:00
test_pure.py py3: Port pure driver test to Python 3 2015-09-28 17:56:37 +02:00
test_qos_specs.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_quobyte.py Port test_quobyte to Python 3 2015-10-03 02:07:46 +02:00
test_quota.py Cleanup for SnapshotObject 2015-08-31 16:53:30 +02:00
test_rbd.py Port ceph driver to Python 3 2015-10-08 22:45:53 +02:00
test_remotefs.py RemoteFS: Fix the offline snapshot delete operation 2015-07-02 22:21:42 +03:00
test_replication.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_san.py Port remote_fs driver to use new driver model 2015-06-08 13:02:03 +02:00
test_scality.py Remove driver.set_execute() 2015-08-27 16:09:30 -04:00
test_service.py Service object 2015-09-01 07:09:08 +00:00
test_sheepdog.py Sheepdog: Improve snapshot and clone operation 2015-09-02 18:30:05 +09:00
test_smbfs.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_solidfire.py Add ability to set prefix in SolidFire Volume name 2015-10-05 17:40:58 -06:00
test_srb.py Port test_srb to Python 3 2015-10-08 12:33:40 +02:00
test_storwize_svc.py Add fast format option for thick volume creation 2015-10-08 09:08:27 +00:00
test_test.py Fix tests failing in gate 2015-07-10 16:15:32 +02:00
test_test_utils.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_tintri.py Scheduler-based over-subscription for NFS drivers 2015-09-02 00:54:11 +00:00
test_utils.py Cleanup orphaned code from cinder root directory 2015-10-01 15:19:15 -05:00
test_v6000_common.py VMEM v6000: Fix export verify routines 2015-07-09 12:07:31 -07:00
test_v6000_fcp.py VMEM v6000: Fix export verify routines 2015-07-09 12:07:31 -07:00
test_v6000_iscsi.py VMEM v6000: Fix export verify routines 2015-07-09 12:07:31 -07:00
test_v7000_common.py Fix doc string definitions 2015-07-27 08:06:03 +03:00
test_v7000_fcp.py Port violin driver to Python 3 2015-10-07 23:21:05 +02:00
test_vmware_datastore.py VMware: Skip ESX hosts in maintenance mode 2015-09-04 16:56:03 +05:30
test_vmware_vmdk.py VMware: Remove VMDK driver for ESX server 2015-09-22 13:51:42 +05:30
test_vmware_volumeops.py Fix Bad indentation pylint issues 2015-09-27 23:04:26 -07:00
test_volume.py Merge "Verify volume is replication capable" 2015-10-09 04:36:58 +00:00
test_volume_configuration.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_volume_glance_metadata.py Cleanup for SnapshotObject 2015-08-31 16:53:30 +02:00
test_volume_rpcapi.py Merge "Add consistency group tests to test_volume_rpcapi" 2015-09-14 07:14:26 +00:00
test_volume_throttling.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_volume_transfer.py Fix argument order for assertEqual in tests 2015-08-11 10:09:40 -07:00
test_volume_types.py Filter out extra-specs from type get for non-admin 2015-08-25 17:57:55 -06:00
test_volume_types_extra_specs.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_volume_utils.py Merge "Cleanup for SnapshotObject" 2015-09-02 18:22:12 +00:00
test_vzstorage.py Correct usage of assertEqual for boolean values 2015-08-06 17:13:36 -05:00
test_xio.py Make X-IO volume driver wait for delete volume to complete 2015-08-14 14:46:34 -06:00
test_zfssa.py Merge "ZFSSA driver to return project 'available' space" 2015-09-10 17:51:45 +00:00
utils.py Merge "Generic image-volume cache" 2015-09-03 08:13:12 +00:00