cinder/cinder/tests/unit
PranaliDeore a1bb185a1f Validate name and description string
If you pass name or description parameters with more than 255
characters to create and update apis of volume and snapshot
and create api of backup, then it returns 500 error code.

Added new method validate_name_and_description() in
cinder.api.openstack.wsgi.Controllera to validate string limit and
returned 400 if limit exceeds and also removing leading or trailing
whitespaces and string containing only whitespaces.

APIImpact
1. For all above APIs 400 response will be returned.
2. Earlier it was possible to pass only whitespaces or leading-trailing
   spaces to 'name' parameter.
   Now it will raise 400 error if only whitespaces are passed and will
   remove leading-trailing spaces if present in other cases.

Closes-Bug: 1454244
Change-Id: Iaf7159e816f69fd776a09828c3bc1d27fc9fdcdb
2015-08-10 01:31:02 -07:00
..
api Validate name and description string 2015-08-10 01:31:02 -07:00
backup Posix backup driver 2015-07-28 16:55:02 +05:30
brick Add deactivate step to extend_lv 2015-07-28 11:46:25 -07:00
compute Add ability to override OpenStack privileged user auth url 2015-07-09 18:10:13 -04:00
db Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
glance Fix exception on uploading a volume to image with glance v2 API 2015-07-28 14:18:10 -04:00
image Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00:00
integrated Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00:00
keymgr Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
monkey_patch_example Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
objects Non-disruptive backup 2015-07-22 16:59:19 -04:00
scheduler Sync scheduler module from oslo-incubator 2015-08-06 04:29:11 +00:00
targets Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
var Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
volume Merge "Add connector object to create_export" 2015-08-08 21:02:01 +00:00
windows Add connector object to create_export 2015-08-06 15:24:38 -07:00
xenapi Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
zonemanager Remove useless logging from unit tests 2015-07-13 17:39:44 +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 Fix backups.rpcapi to pass objects over RPC 2015-06-23 15:42:00 +02:00
fake_driver.py Non-disruptive backup 2015-07-22 16:59:19 -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_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 Non-disruptive backup 2015-07-22 16:59:19 -04:00
policy.json Merge "Add support for force-delete backups" 2015-07-14 18:21:07 +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 Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_backup.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
test_backup_ceph.py Fix doc string definitions 2015-07-27 08:06:03 +03:00
test_backup_driver_base.py Fix list comparison for empty list 2015-08-07 04:41:24 -07:00
test_backup_swift.py Remove oslo logging from backup unit tests 2015-06-27 21:23:34 +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 Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_blockbridge.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_cloudbyte.py Add connector object to create_export 2015-08-06 15:24:38 -07:00
test_cmd.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_conf.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_context.py Add Cinder internal tenant support 2015-07-23 14:46:53 +00:00
test_db_api.py Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00:00
test_dellfc.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_dellsc.py Dell SC: Add check of current value on retype 2015-08-04 18:10:35 -05:00
test_dellscapi.py Fix doc string definitions 2015-07-27 08:06:03 +03:00
test_dothill.py Port dothill to Python 3 2015-07-01 10:50:58 +02:00
test_drbdmanagedrv.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_emc_vmax.py Add multiple pools support to VMAX driver 2015-08-03 16:17:48 -04:00
test_emc_vnxdirect.py Merge "VNX driver needs to return snapshot objects" 2015-08-10 00:59:17 +00:00
test_emc_xtremio.py XtremIO support for iscsi discovery auth 2015-07-26 17:44:25 +03:00
test_eqlx.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_evaluator.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_exception.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_glusterfs.py Merge "GlusterFS: Using 'fallocate' instead of 'dd'" 2015-08-07 19:25:01 +00:00
test_gpfs.py Add connector object to create_export 2015-08-06 15:24:38 -07:00
test_hacking.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_hitachi_hbsd_horcm_fc.py Remove resource lock operation for HBSD 2015-07-22 10:17:49 +09:00
test_hitachi_hbsd_snm2_fc.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_hitachi_hbsd_snm2_iscsi.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_hitachi_hnas_backend.py Merge "Fix Python 3 issues in Hitachi HNAS tests" 2015-08-10 01:04:00 +00:00
test_hitachi_hnas_iscsi.py Merge "Fix Python 3 issues in Hitachi HNAS tests" 2015-08-10 01:04:00 +00:00
test_hitachi_hnas_nfs.py Fix Python 3 issues in Hitachi HNAS tests 2015-07-25 03:10:31 +02:00
test_hp3par.py Fix 3PAR driver handling of existing VLUNs 2015-07-16 17:33:19 -07: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 Over subscription for HP LeftHand iSCSI driver 2015-07-31 15:47:03 +00:00
test_huawei_drivers.py Add SmartX support for Huawei driver 2015-08-04 15:17:33 +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 Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
test_ibmnas.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_image_utils.py Disallow backing files when uploading volumes to image 2015-06-15 11:33:27 -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 Clone CG 2015-07-28 17:45:19 -04:00
test_misc.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_netapp.py Add connector object to create_export 2015-08-06 15:24:38 -07:00
test_netapp_eseries_iscsi.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
test_netapp_nfs.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_netapp_ssc.py Merge "Replace dict.iteritems() with dict.items()" 2015-06-15 22:10:18 +00:00
test_nfs.py Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00:00
test_nimble.py Set VERSION on the Nimble driver. 2015-07-28 10:13:01 -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 Implement retype for Pure drivers 2015-07-23 16:02:43 -07:00
test_qos_specs.py Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_quota.py Fix volume limit exceeded exception 2015-08-05 11:24:36 +05:30
test_rbd.py Merge "Fix multi-line docstrings to meet hacking rules" 2015-07-31 22:24:40 +00:00
test_remotefs.py RemoteFS: Fix the offline snapshot delete operation 2015-07-02 22:21:42 +03:00
test_replication.py Move unit tests into dedicated directory 2015-04-21 18:40:40 -06:00
test_san.py Port remote_fs driver to use new driver model 2015-06-08 13:02:03 +02:00
test_scality.py scality: add export and name keys to os-initialize_connection info 2015-07-16 14:13:29 -07:00
test_service.py Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00:00
test_sheepdog.py Set driver version in Sheepdog driver 2015-07-13 02:44:13 +09:00
test_smbfs.py smbfs: fix invalid check for smbfs_used_ratio correctness 2015-06-30 19:06:08 +03:00
test_solidfire.py Modify template account creation in SolidFire drvr 2015-06-23 16:36:41 -07:00
test_srb.py Merge "Fix multi-line docstrings to meet hacking rules" 2015-07-31 22:24:40 +00:00
test_storpool.py Add connector object to create_export 2015-08-06 15:24:38 -07:00
test_storwize_svc.py Add connector object to create_export 2015-08-06 15:24:38 -07: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 Remove useless logging from unit tests 2015-07-13 17:39:44 +00:00
test_utils.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -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 Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
test_vmware_datastore.py VMware: Create volume backing in specific clusters 2015-06-29 16:46:54 +05:30
test_vmware_vmdk.py Add connector object to create_export 2015-08-06 15:24:38 -07:00
test_vmware_volumeops.py VMware:Replace vCenter calls with oslo.vmware calls 2015-07-23 18:37:09 +05:30
test_volume.py Merge "Fix lvm manage existing volume" 2015-08-07 12:26:40 +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 Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_volume_rpcapi.py Merge "Clone CG" 2015-08-04 15:25:21 +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 order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_volume_types.py Merge "Fix order of arguments in assertEqual" 2015-08-04 15:24:22 +00: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 "Fix lvm manage existing volume" 2015-08-07 12:26:40 +00:00
test_vzstorage.py Add Virtuozzo Storage Volume Driver 2015-06-18 20:14:34 +03:00
test_wsgi.py Fix order of arguments in assertEqual 2015-08-03 19:26:08 -07:00
test_xio.py Revert "Remove X-IO volume driver" 2015-07-20 14:41:12 +00:00
test_zfssa.py Fix multi-line docstrings to meet hacking rules 2015-07-30 11:34:16 -05:00
utils.py Clone CG 2015-07-28 17:45:19 -04:00