cinder/cinder/tests
Adrien Vergé 04003d7c51 Add a privileged user for OpenStack services
Currently Cinder makes all requests to other services (Nova, Swift,
etc.) with current user context. Sometimes Cinder needs privileged
rights for external queries (e.g. asking Nova where an instance is
hosted); there is no way to do it yet.

This patch adds to ability to configure an account with special rights
in the configuration ('os_privileged_user_name',
'os_privileged_user_password' and 'os_privileged_user_tenant' options).
Then, requests that need special permissions can be achieved by creating
a client(privileged_user=True).

Note: This user does not necessarily need to have an admin role
associated with it. For instance, policies can be changed to allow a
specific user (without any roles) to perform special actions.

DocImpact: New configuration options to set a privileged user account
Change-Id: I61d8a6de1c5db5ee2ecce124997f9b6447b04e47
2014-12-27 15:23:20 +01:00
..
api Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
backup Use abstract class for the backup driver interface 2014-08-15 08:30:05 +02:00
brick Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
compute Add a privileged user for OpenStack services 2014-12-27 15:23:20 +01:00
db Fixes docstring typos (Cinder) 2014-10-09 12:20:01 -04:00
glance Remove vim header 2013-12-30 18:53:02 -06:00
image Amend unused variables to assist pylint testing 2014-10-30 16:23:57 +00:00
integrated Implementing the use of _L’x’/i18n markers 2014-12-09 10:03:29 +00:00
keymgr Fix calls to assert_called_once in unit tests 2014-11-24 16:56:10 +00:00
monkey_patch_example Remove vim header 2013-12-30 18:53:02 -06:00
scheduler Uncouple scheduler stats from volume creation 2014-12-17 07:45:32 -08:00
targets Add iSCSI Target objects as independent objects 2014-11-25 09:09:00 -07:00
var Support for SSL in wsgi.Server 2013-01-14 15:55:16 -05:00
volume Replace the NetApp driver proxy layer with a proper factory. 2014-12-23 16:52:47 +00:00
windows Improve use of temporary_file and temporary_dir 2014-12-09 16:57:45 +00:00
xenapi Add XenAPINFSDriver 2012-11-21 15:03:35 +00:00
zonemanager Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
__init__.py Remove vim header 2013-12-30 18:53:02 -06:00
cast_as_call.py Port to oslo.messaging 2014-03-10 17:03:03 +01:00
conf_fixture.py Bring cinder up-to-date with new oslo libraries 2014-12-03 14:37:22 -06:00
declare_conf.py Remove vim header 2013-12-30 18:53:02 -06:00
fake_driver.py Implementing the use of _L’x’/i18n markers 2014-12-09 10:03:29 +00:00
fake_hp_3par_client.py Fix 3PAR driver hang on SSH calls 2014-12-16 10:07:54 -08:00
fake_hp_client_exceptions.py HP 3PAR configurable ssh-host-key-policy 2014-09-10 11:22:56 -07:00
fake_hp_lefthand_client.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
fake_notifier.py Integrate OSprofiler and Cinder 2014-08-21 02:19:36 +04:00
fake_utils.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
fake_vmem_xgtools_client.py Fibrechannel and iSCSI for Violin Memory 6000 Series Arrays 2014-12-17 04:55:06 -08:00
policy.json Volume type access extension 2014-12-01 18:46:31 -05:00
runtime_conf.py Remove vim header 2013-12-30 18:53:02 -06:00
test_api.py Use six.StringIO instead of StringIO.StringIO 2014-02-25 17:07:29 +08:00
test_api_urlmap.py Add tests for cinder/api/urlmap.py 2013-07-11 11:30:00 +04:00
test_backup.py Send the notifications to the Ceilometer for backup service 2014-12-16 06:11:43 +00:00
test_backup_ceph.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_backup_driver_base.py Add support for backup encryption metadata 2014-12-09 11:14:40 -08:00
test_backup_swift.py Send the notifications to the Ceilometer for backup service 2014-12-16 06:11:43 +00:00
test_backup_tsm.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_block_device.py Fix host option isn't set when using multiple backend 2014-07-02 10:28:29 +00:00
test_cmd.py Fix files in Cinder with execute bit set 2014-12-19 09:37:19 -06:00
test_conf.py Remove vim header 2013-12-30 18:53:02 -06:00
test_context.py Add a privileged user for OpenStack services 2014-12-27 15:23:20 +01:00
test_coraid.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_create_volume_flow.py Consistency Groups 2014-08-27 01:47:31 -04:00
test_db_api.py Added UUID as primary key for Encryption model 2014-12-16 21:21:33 +00:00
test_dellfc.py Add Support for Dell Storage Center 2014-12-15 12:00:47 -06:00
test_dellsc.py Add Support for Dell Storage Center 2014-12-15 12:00:47 -06:00
test_emc_vmax.py Merge "Handle the volume not found case in the VMAX driver" 2014-12-25 20:04:28 +00:00
test_emc_vnxdirect.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_emc_xtremio.py XtremIO cinder iSCSI & FC volume drivers for Juno 2014-08-27 15:53:37 +03:00
test_eqlx.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_exception.py Fix exception message formatting 2014-11-24 12:39:00 -02:00
test_fujitsu.py Implementing the use of _L’x’/i18n markers 2014-12-09 10:03:29 +00:00
test_fusionio_ioControl.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_glusterfs.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_gpfs.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_hacking.py Add hacking check for use of LOG.audit 2014-08-09 10:22:03 -05:00
test_hds.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
test_hds_iscsi.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
test_hds_nfs.py Fix duplicate teardown to allow tox upgrade 2014-08-22 11:54:28 -06:00
test_hitachi_hbsd_horcm_fc.py Introduce Hitachi storage volume driver 2014-08-29 12:00:01 +09:00
test_hitachi_hbsd_snm2_fc.py Introduce Hitachi storage volume driver 2014-08-29 12:00:01 +09:00
test_hitachi_hbsd_snm2_iscsi.py Introduce Hitachi storage volume driver 2014-08-29 12:00:01 +09:00
test_hp3par.py Fix 3PAR driver hang on SSH calls 2014-12-16 10:07:54 -08:00
test_hp_msa.py Fix calls to assert_called_once in unit tests 2014-11-24 16:56:10 +00:00
test_hplefthand.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_huawei_18000.py Update volume driver for Huawei storage system 2014-12-17 04:07:14 -08:00
test_huawei_drivers_compatibility.py Update volume driver for Huawei storage system 2014-12-17 04:07:14 -08:00
test_huawei_t_dorado.py Enable import group hacking rule 2014-08-14 13:10:58 +08:00
test_huaweistorac.py Mock leaked _execute() calls in driver tests 2014-12-19 15:47:40 -08:00
test_ibm_flashsystem.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_ibm_xiv_ds8k.py Add retype method to xiv/ds8k driver interface. 2014-08-27 05:52:51 +03:00
test_ibmnas.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_image_utils.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_iscsi.py Merge "Set iet_conf to nonexistent file in unit test" 2014-12-22 16:25:10 +00:00
test_migrations.py Add a provider_id column to Volumes and Snapshots 2014-12-19 17:06:01 -07:00
test_misc.py Use oslo.i18n 2014-08-08 17:26:41 -05:00
test_netapp.py Replace the NetApp driver proxy layer with a proper factory. 2014-12-23 16:52:47 +00:00
test_netapp_eseries_iscsi.py Replace the NetApp driver proxy layer with a proper factory. 2014-12-23 16:52:47 +00:00
test_netapp_nfs.py Merge "Mock calls to rpm and dpkg from NetApp unit tests" 2014-12-23 14:42:43 +00:00
test_netapp_ssc.py Refactoring to allow addition of NetApp FibreChannel drivers 2014-11-24 10:48:08 -05:00
test_nexenta.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_nfs.py Fixes intermittent NFS driver mount failure 2014-12-08 17:16:29 +00:00
test_nimble.py Match mock.patch decorator with appropriate param 2014-11-25 14:31:21 +00:00
test_prophetstor_dpl.py Merge "ProphetStor with pool aware cinder scheduler" 2014-11-24 04:58:54 +00:00
test_pure.py Merge "Add error handling to _connect function in PureISCSIDriver" 2014-12-23 08:08:03 +00:00
test_qos_specs.py Switch to use oslo.db 2014-07-21 16:10:41 +03:00
test_quobyte.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_quota.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_rbd.py Remove redundant args for clone_image method 2014-12-18 09:47:06 -07:00
test_remotefs.py NFS Security Enhancements: allows secure NFS environment setup 2014-10-23 16:35:51 -04:00
test_replication.py Use oslo.utils 2014-11-20 22:17:47 +08:00
test_scality.py Delete default volume size 100M in drivers 2014-12-16 13:08:03 +02:00
test_service.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_sheepdog.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_smbfs.py Fix calls to assert_called_once in unit tests 2014-11-24 16:56:10 +00:00
test_solidfire.py Remove iscsi_helper calls from base iscsi driver 2014-12-15 13:18:17 -07:00
test_srb.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_storpool.py Add the StorPool block storage driver. 2014-12-16 01:19:22 +02:00
test_storwize_svc.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_symantec_cnfs.py Symantec NFS cinder driver 2014-12-15 14:37:25 +00:00
test_test.py Port to oslo.messaging 2014-03-10 17:03:03 +01:00
test_test_utils.py Verify the full interface of the context object 2014-10-24 19:25:54 +03:00
test_utils.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_v6000_common.py Fibrechannel and iSCSI for Violin Memory 6000 Series Arrays 2014-12-17 04:55:06 -08:00
test_v6000_fcp.py Fibrechannel and iSCSI for Violin Memory 6000 Series Arrays 2014-12-17 04:55:06 -08:00
test_v6000_iscsi.py Fibrechannel and iSCSI for Violin Memory 6000 Series Arrays 2014-12-17 04:55:06 -08:00
test_vmware_api.py vmware: Fix problems with VIM API retry logic 2014-04-16 15:00:52 +05:30
test_vmware_datastore.py VMware: Fix datastore selection with single host 2014-12-10 18:09:20 +05:30
test_vmware_io_util.py VMware: Handle exceptions raised by image update 2014-08-18 19:41:49 +05:30
test_vmware_vmdk.py VMware: Add missing storage profile requirement 2014-12-03 12:51:10 +05:30
test_vmware_volumeops.py VMware: Set target ESX host for backing VM clone 2014-11-24 20:06:40 +05:30
test_volume.py Merge "LVM: Volume is deleted unexpectedly during volume migration" 2014-12-20 07:04:55 +00:00
test_volume_configuration.py Replace tearDown with addCleanup - Part 4 2014-04-15 17:46:08 +04:00
test_volume_glance_metadata.py Enable flake8 F841 checking 2014-04-01 11:38:35 +04:00
test_volume_rpcapi.py Switch to oslo.serialization 2014-11-19 15:49:03 +08:00
test_volume_transfer.py Fix possible race condition for accept transfer 2014-09-08 08:54:52 -07:00
test_volume_types.py Added volume type description for volume type API 2014-12-16 18:13:24 -08:00
test_volume_types_extra_specs.py Replace tearDown with addCleanup - Part 2 2014-04-23 06:22:02 -05:00
test_volume_utils.py Rename oslo.concurrency to oslo_concurrency 2014-12-19 18:39:11 -08:00
test_wsgi.py Cinder api service doesn't handle SIGHUP properly 2014-10-22 09:33:51 +08:00
test_xio.py Fix files in Cinder with execute bit set 2014-12-19 09:37:19 -06:00
test_zadara.py Amend unused variables to assist pylint testing 2014-10-30 16:23:57 +00:00
test_zfssa.py Mock leaked _execute() calls in driver tests 2014-12-19 15:47:40 -08:00
utils.py Consistency Groups 2014-08-27 01:47:31 -04:00