]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Move unit tests into dedicated directory
authorJohn Griffith <john.griffith8@gmail.com>
Mon, 20 Apr 2015 21:38:22 +0000 (15:38 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Wed, 22 Apr 2015 00:40:40 +0000 (18:40 -0600)
This patch moves all of the existing cinder/tests into
cinder unit tests.  This is being done to make way for
the addition of cinder/tests/functional.

Yes, this is going to cause significant pain with
any changes that haven't merged behind it in terms
of rebase, but there's no real alternative.  We have
to rip the band-aid off at some point, and early in L
seems like a great time to do it.

Change-Id: I63b0f89474b3c139bdb89589abd85319d2aa61ec

289 files changed:
cinder/hacking/checks.py
cinder/test.py
cinder/tests/__init__.py
cinder/tests/unit/__init__.py [new file with mode: 0644]
cinder/tests/unit/api/__init__.py [moved from cinder/tests/api/__init__.py with 100% similarity]
cinder/tests/unit/api/common.py [moved from cinder/tests/api/common.py with 100% similarity]
cinder/tests/unit/api/contrib/__init__.py [moved from cinder/tests/api/contrib/__init__.py with 100% similarity]
cinder/tests/unit/api/contrib/test_admin_actions.py [moved from cinder/tests/api/contrib/test_admin_actions.py with 99% similarity]
cinder/tests/unit/api/contrib/test_availability_zones.py [moved from cinder/tests/api/contrib/test_availability_zones.py with 100% similarity]
cinder/tests/unit/api/contrib/test_backups.py [moved from cinder/tests/api/contrib/test_backups.py with 99% similarity]
cinder/tests/unit/api/contrib/test_cgsnapshots.py [moved from cinder/tests/api/contrib/test_cgsnapshots.py with 99% similarity]
cinder/tests/unit/api/contrib/test_consistencygroups.py [moved from cinder/tests/api/contrib/test_consistencygroups.py with 99% similarity]
cinder/tests/unit/api/contrib/test_extended_snapshot_attributes.py [moved from cinder/tests/api/contrib/test_extended_snapshot_attributes.py with 97% similarity]
cinder/tests/unit/api/contrib/test_hosts.py [moved from cinder/tests/api/contrib/test_hosts.py with 100% similarity]
cinder/tests/unit/api/contrib/test_qos_specs_manage.py [moved from cinder/tests/api/contrib/test_qos_specs_manage.py with 99% similarity]
cinder/tests/unit/api/contrib/test_quotas.py [moved from cinder/tests/api/contrib/test_quotas.py with 100% similarity]
cinder/tests/unit/api/contrib/test_quotas_classes.py [moved from cinder/tests/api/contrib/test_quotas_classes.py with 100% similarity]
cinder/tests/unit/api/contrib/test_scheduler_hints.py [moved from cinder/tests/api/contrib/test_scheduler_hints.py with 97% similarity]
cinder/tests/unit/api/contrib/test_scheduler_stats.py [moved from cinder/tests/api/contrib/test_scheduler_stats.py with 98% similarity]
cinder/tests/unit/api/contrib/test_services.py [moved from cinder/tests/api/contrib/test_services.py with 99% similarity]
cinder/tests/unit/api/contrib/test_snapshot_actions.py [moved from cinder/tests/api/contrib/test_snapshot_actions.py with 97% similarity]
cinder/tests/unit/api/contrib/test_types_extra_specs.py [moved from cinder/tests/api/contrib/test_types_extra_specs.py with 99% similarity]
cinder/tests/unit/api/contrib/test_types_manage.py [moved from cinder/tests/api/contrib/test_types_manage.py with 99% similarity]
cinder/tests/unit/api/contrib/test_used_limits.py [moved from cinder/tests/api/contrib/test_used_limits.py with 98% similarity]
cinder/tests/unit/api/contrib/test_volume_actions.py [moved from cinder/tests/api/contrib/test_volume_actions.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_encryption_metadata.py [moved from cinder/tests/api/contrib/test_volume_encryption_metadata.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_host_attribute.py [moved from cinder/tests/api/contrib/test_volume_host_attribute.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_image_metadata.py [moved from cinder/tests/api/contrib/test_volume_image_metadata.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_manage.py [moved from cinder/tests/api/contrib/test_volume_manage.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_migration_status_attribute.py [moved from cinder/tests/api/contrib/test_volume_migration_status_attribute.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_replication.py [moved from cinder/tests/api/contrib/test_volume_replication.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py [moved from cinder/tests/api/contrib/test_volume_tenant_attribute.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_transfer.py [moved from cinder/tests/api/contrib/test_volume_transfer.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_type_access.py [moved from cinder/tests/api/contrib/test_volume_type_access.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_type_encryption.py [moved from cinder/tests/api/contrib/test_volume_type_encryption.py with 99% similarity]
cinder/tests/unit/api/contrib/test_volume_unmanage.py [moved from cinder/tests/api/contrib/test_volume_unmanage.py with 99% similarity]
cinder/tests/unit/api/extensions/__init__.py [moved from cinder/tests/api/extensions/__init__.py with 100% similarity]
cinder/tests/unit/api/extensions/foxinsocks.py [moved from cinder/tests/api/extensions/foxinsocks.py with 100% similarity]
cinder/tests/unit/api/fakes.py [moved from cinder/tests/api/fakes.py with 100% similarity]
cinder/tests/unit/api/middleware/__init__.py [moved from cinder/tests/api/middleware/__init__.py with 100% similarity]
cinder/tests/unit/api/middleware/test_auth.py [moved from cinder/tests/api/middleware/test_auth.py with 100% similarity]
cinder/tests/unit/api/middleware/test_faults.py [moved from cinder/tests/api/middleware/test_faults.py with 100% similarity]
cinder/tests/unit/api/openstack/__init__.py [moved from cinder/tests/api/openstack/__init__.py with 100% similarity]
cinder/tests/unit/api/openstack/test_wsgi.py [moved from cinder/tests/api/openstack/test_wsgi.py with 99% similarity]
cinder/tests/unit/api/test_common.py [moved from cinder/tests/api/test_common.py with 100% similarity]
cinder/tests/unit/api/test_extensions.py [moved from cinder/tests/api/test_extensions.py with 99% similarity]
cinder/tests/unit/api/test_router.py [moved from cinder/tests/api/test_router.py with 99% similarity]
cinder/tests/unit/api/test_versions.py [moved from cinder/tests/api/test_versions.py with 100% similarity]
cinder/tests/unit/api/test_wsgi.py [moved from cinder/tests/api/test_wsgi.py with 100% similarity]
cinder/tests/unit/api/test_xmlutil.py [moved from cinder/tests/api/test_xmlutil.py with 100% similarity]
cinder/tests/unit/api/v1/__init__.py [moved from cinder/tests/api/v1/__init__.py with 100% similarity]
cinder/tests/unit/api/v1/stubs.py [moved from cinder/tests/api/v1/stubs.py with 100% similarity]
cinder/tests/unit/api/v1/test_limits.py [moved from cinder/tests/api/v1/test_limits.py with 100% similarity]
cinder/tests/unit/api/v1/test_snapshot_metadata.py [moved from cinder/tests/api/v1/test_snapshot_metadata.py with 99% similarity]
cinder/tests/unit/api/v1/test_snapshots.py [moved from cinder/tests/api/v1/test_snapshots.py with 99% similarity]
cinder/tests/unit/api/v1/test_types.py [moved from cinder/tests/api/v1/test_types.py with 99% similarity]
cinder/tests/unit/api/v1/test_volume_metadata.py [moved from cinder/tests/api/v1/test_volume_metadata.py with 99% similarity]
cinder/tests/unit/api/v1/test_volumes.py [moved from cinder/tests/api/v1/test_volumes.py with 99% similarity]
cinder/tests/unit/api/v2/__init__.py [moved from cinder/tests/api/v2/__init__.py with 100% similarity]
cinder/tests/unit/api/v2/stubs.py [moved from cinder/tests/api/v2/stubs.py with 100% similarity]
cinder/tests/unit/api/v2/test_limits.py [moved from cinder/tests/api/v2/test_limits.py with 100% similarity]
cinder/tests/unit/api/v2/test_snapshot_metadata.py [moved from cinder/tests/api/v2/test_snapshot_metadata.py with 99% similarity]
cinder/tests/unit/api/v2/test_snapshots.py [moved from cinder/tests/api/v2/test_snapshots.py with 99% similarity]
cinder/tests/unit/api/v2/test_types.py [moved from cinder/tests/api/v2/test_types.py with 99% similarity]
cinder/tests/unit/api/v2/test_volume_metadata.py [moved from cinder/tests/api/v2/test_volume_metadata.py with 99% similarity]
cinder/tests/unit/api/v2/test_volumes.py [moved from cinder/tests/api/v2/test_volumes.py with 99% similarity]
cinder/tests/unit/backup/__init__.py [moved from cinder/tests/backup/__init__.py with 100% similarity]
cinder/tests/unit/backup/drivers/__init__.py [moved from cinder/tests/backup/drivers/__init__.py with 100% similarity]
cinder/tests/unit/backup/drivers/test_backup_nfs.py [moved from cinder/tests/backup/drivers/test_backup_nfs.py with 100% similarity]
cinder/tests/unit/backup/fake_service.py [moved from cinder/tests/backup/fake_service.py with 100% similarity]
cinder/tests/unit/backup/fake_service_with_verify.py [moved from cinder/tests/backup/fake_service_with_verify.py with 95% similarity]
cinder/tests/unit/backup/fake_swift_client.py [moved from cinder/tests/backup/fake_swift_client.py with 100% similarity]
cinder/tests/unit/backup/fake_swift_client2.py [moved from cinder/tests/backup/fake_swift_client2.py with 100% similarity]
cinder/tests/unit/brick/__init__.py [moved from cinder/tests/brick/__init__.py with 100% similarity]
cinder/tests/unit/brick/fake_lvm.py [moved from cinder/tests/brick/fake_lvm.py with 100% similarity]
cinder/tests/unit/brick/test_brick_connector.py [moved from cinder/tests/brick/test_brick_connector.py with 100% similarity]
cinder/tests/unit/brick/test_brick_exception.py [moved from cinder/tests/brick/test_brick_exception.py with 100% similarity]
cinder/tests/unit/brick/test_brick_linuxfc.py [moved from cinder/tests/brick/test_brick_linuxfc.py with 100% similarity]
cinder/tests/unit/brick/test_brick_linuxscsi.py [moved from cinder/tests/brick/test_brick_linuxscsi.py with 100% similarity]
cinder/tests/unit/brick/test_brick_lvm.py [moved from cinder/tests/brick/test_brick_lvm.py with 100% similarity]
cinder/tests/unit/brick/test_brick_remotefs.py [moved from cinder/tests/brick/test_brick_remotefs.py with 100% similarity]
cinder/tests/unit/cast_as_call.py [moved from cinder/tests/cast_as_call.py with 100% similarity]
cinder/tests/unit/compute/__init__.py [moved from cinder/tests/compute/__init__.py with 100% similarity]
cinder/tests/unit/compute/test_nova.py [moved from cinder/tests/compute/test_nova.py with 100% similarity]
cinder/tests/unit/conf_fixture.py [moved from cinder/tests/conf_fixture.py with 84% similarity]
cinder/tests/unit/db/__init__.py [moved from cinder/tests/db/__init__.py with 100% similarity]
cinder/tests/unit/db/fakes.py [moved from cinder/tests/db/fakes.py with 100% similarity]
cinder/tests/unit/db/test_finish_migration.py [moved from cinder/tests/db/test_finish_migration.py with 97% similarity]
cinder/tests/unit/db/test_name_id.py [moved from cinder/tests/db/test_name_id.py with 97% similarity]
cinder/tests/unit/db/test_purge.py [moved from cinder/tests/db/test_purge.py with 100% similarity]
cinder/tests/unit/db/test_qos_specs.py [moved from cinder/tests/db/test_qos_specs.py with 100% similarity]
cinder/tests/unit/db/test_transfers.py [moved from cinder/tests/db/test_transfers.py with 99% similarity]
cinder/tests/unit/declare_conf.py [moved from cinder/tests/declare_conf.py with 100% similarity]
cinder/tests/unit/fake_driver.py [moved from cinder/tests/fake_driver.py with 99% similarity]
cinder/tests/unit/fake_hp_3par_client.py [moved from cinder/tests/fake_hp_3par_client.py with 92% similarity]
cinder/tests/unit/fake_hp_client_exceptions.py [moved from cinder/tests/fake_hp_client_exceptions.py with 100% similarity]
cinder/tests/unit/fake_hp_lefthand_client.py [moved from cinder/tests/fake_hp_lefthand_client.py with 92% similarity]
cinder/tests/unit/fake_notifier.py [moved from cinder/tests/fake_notifier.py with 100% similarity]
cinder/tests/unit/fake_snapshot.py [moved from cinder/tests/fake_snapshot.py with 100% similarity]
cinder/tests/unit/fake_utils.py [moved from cinder/tests/fake_utils.py with 100% similarity]
cinder/tests/unit/fake_vmem_client.py [moved from cinder/tests/fake_vmem_client.py with 100% similarity]
cinder/tests/unit/fake_volume.py [moved from cinder/tests/fake_volume.py with 100% similarity]
cinder/tests/unit/glance/__init__.py [moved from cinder/tests/glance/__init__.py with 100% similarity]
cinder/tests/unit/glance/stubs.py [moved from cinder/tests/glance/stubs.py with 100% similarity]
cinder/tests/unit/image/__init__.py [moved from cinder/tests/image/__init__.py with 100% similarity]
cinder/tests/unit/image/fake.py [moved from cinder/tests/image/fake.py with 100% similarity]
cinder/tests/unit/image/test_glance.py [moved from cinder/tests/image/test_glance.py with 99% similarity]
cinder/tests/unit/integrated/__init__.py [moved from cinder/tests/integrated/__init__.py with 100% similarity]
cinder/tests/unit/integrated/api/__init__.py [moved from cinder/tests/integrated/api/__init__.py with 100% similarity]
cinder/tests/unit/integrated/api/client.py [moved from cinder/tests/integrated/api/client.py with 100% similarity]
cinder/tests/unit/integrated/integrated_helpers.py [moved from cinder/tests/integrated/integrated_helpers.py with 98% similarity]
cinder/tests/unit/integrated/test_extensions.py [moved from cinder/tests/integrated/test_extensions.py with 91% similarity]
cinder/tests/unit/integrated/test_login.py [moved from cinder/tests/integrated/test_login.py with 94% similarity]
cinder/tests/unit/integrated/test_volumes.py [moved from cinder/tests/integrated/test_volumes.py with 96% similarity]
cinder/tests/unit/integrated/test_xml.py [moved from cinder/tests/integrated/test_xml.py with 96% similarity]
cinder/tests/unit/keymgr/__init__.py [moved from cinder/tests/keymgr/__init__.py with 100% similarity]
cinder/tests/unit/keymgr/fake.py [moved from cinder/tests/keymgr/fake.py with 93% similarity]
cinder/tests/unit/keymgr/mock_key_mgr.py [moved from cinder/tests/keymgr/mock_key_mgr.py with 100% similarity]
cinder/tests/unit/keymgr/test_barbican.py [moved from cinder/tests/keymgr/test_barbican.py with 99% similarity]
cinder/tests/unit/keymgr/test_conf_key_mgr.py [moved from cinder/tests/keymgr/test_conf_key_mgr.py with 98% similarity]
cinder/tests/unit/keymgr/test_key.py [moved from cinder/tests/keymgr/test_key.py with 100% similarity]
cinder/tests/unit/keymgr/test_key_mgr.py [moved from cinder/tests/keymgr/test_key_mgr.py with 100% similarity]
cinder/tests/unit/keymgr/test_mock_key_mgr.py [moved from cinder/tests/keymgr/test_mock_key_mgr.py with 97% similarity]
cinder/tests/unit/keymgr/test_not_implemented_key_mgr.py [moved from cinder/tests/keymgr/test_not_implemented_key_mgr.py with 97% similarity]
cinder/tests/unit/monkey_patch_example/__init__.py [moved from cinder/tests/monkey_patch_example/__init__.py with 100% similarity]
cinder/tests/unit/monkey_patch_example/example_a.py [moved from cinder/tests/monkey_patch_example/example_a.py with 100% similarity]
cinder/tests/unit/monkey_patch_example/example_b.py [moved from cinder/tests/monkey_patch_example/example_b.py with 100% similarity]
cinder/tests/unit/objects/__init__.py [moved from cinder/tests/objects/__init__.py with 100% similarity]
cinder/tests/unit/objects/test_fields.py [moved from cinder/tests/objects/test_fields.py with 100% similarity]
cinder/tests/unit/objects/test_objects.py [moved from cinder/tests/objects/test_objects.py with 99% similarity]
cinder/tests/unit/objects/test_snapshot.py [moved from cinder/tests/objects/test_snapshot.py with 98% similarity]
cinder/tests/unit/objects/test_volume.py [moved from cinder/tests/objects/test_volume.py with 97% similarity]
cinder/tests/unit/policy.json [moved from cinder/tests/policy.json with 100% similarity]
cinder/tests/unit/runtime_conf.py [moved from cinder/tests/runtime_conf.py with 100% similarity]
cinder/tests/unit/scheduler/__init__.py [moved from cinder/tests/scheduler/__init__.py with 100% similarity]
cinder/tests/unit/scheduler/fakes.py [moved from cinder/tests/scheduler/fakes.py with 100% similarity]
cinder/tests/unit/scheduler/test_allocated_capacity_weigher.py [moved from cinder/tests/scheduler/test_allocated_capacity_weigher.py with 98% similarity]
cinder/tests/unit/scheduler/test_capacity_weigher.py [moved from cinder/tests/scheduler/test_capacity_weigher.py with 99% similarity]
cinder/tests/unit/scheduler/test_chance_weigher.py [moved from cinder/tests/scheduler/test_chance_weigher.py with 100% similarity]
cinder/tests/unit/scheduler/test_filter_scheduler.py [moved from cinder/tests/scheduler/test_filter_scheduler.py with 99% similarity]
cinder/tests/unit/scheduler/test_goodness_weigher.py [moved from cinder/tests/scheduler/test_goodness_weigher.py with 99% similarity]
cinder/tests/unit/scheduler/test_host_filters.py [moved from cinder/tests/scheduler/test_host_filters.py with 99% similarity]
cinder/tests/unit/scheduler/test_host_manager.py [moved from cinder/tests/scheduler/test_host_manager.py with 100% similarity]
cinder/tests/unit/scheduler/test_rpcapi.py [moved from cinder/tests/scheduler/test_rpcapi.py with 100% similarity]
cinder/tests/unit/scheduler/test_scheduler.py [moved from cinder/tests/scheduler/test_scheduler.py with 100% similarity]
cinder/tests/unit/scheduler/test_scheduler_options.py [moved from cinder/tests/scheduler/test_scheduler_options.py with 100% similarity]
cinder/tests/unit/scheduler/test_volume_number_weigher.py [moved from cinder/tests/scheduler/test_volume_number_weigher.py with 98% similarity]
cinder/tests/unit/targets/__init__.py [moved from cinder/tests/targets/__init__.py with 100% similarity]
cinder/tests/unit/targets/test_base_iscsi_driver.py [moved from cinder/tests/targets/test_base_iscsi_driver.py with 100% similarity]
cinder/tests/unit/targets/test_cxt_driver.py [moved from cinder/tests/targets/test_cxt_driver.py with 100% similarity]
cinder/tests/unit/targets/test_iet_driver.py [moved from cinder/tests/targets/test_iet_driver.py with 100% similarity]
cinder/tests/unit/targets/test_iser_driver.py [moved from cinder/tests/targets/test_iser_driver.py with 96% similarity]
cinder/tests/unit/targets/test_lio_driver.py [moved from cinder/tests/targets/test_lio_driver.py with 100% similarity]
cinder/tests/unit/targets/test_scst_driver.py [moved from cinder/tests/targets/test_scst_driver.py with 100% similarity]
cinder/tests/unit/targets/test_tgt_driver.py [moved from cinder/tests/targets/test_tgt_driver.py with 100% similarity]
cinder/tests/unit/test_api.py [moved from cinder/tests/test_api.py with 100% similarity]
cinder/tests/unit/test_api_urlmap.py [moved from cinder/tests/test_api_urlmap.py with 100% similarity]
cinder/tests/unit/test_backup.py [moved from cinder/tests/test_backup.py with 98% similarity]
cinder/tests/unit/test_backup_ceph.py [moved from cinder/tests/test_backup_ceph.py with 100% similarity]
cinder/tests/unit/test_backup_driver_base.py [moved from cinder/tests/test_backup_driver_base.py with 99% similarity]
cinder/tests/unit/test_backup_swift.py [moved from cinder/tests/test_backup_swift.py with 99% similarity]
cinder/tests/unit/test_backup_tsm.py [moved from cinder/tests/test_backup_tsm.py with 100% similarity]
cinder/tests/unit/test_block_device.py [moved from cinder/tests/test_block_device.py with 100% similarity]
cinder/tests/unit/test_cloudbyte.py [moved from cinder/tests/test_cloudbyte.py with 100% similarity]
cinder/tests/unit/test_cmd.py [moved from cinder/tests/test_cmd.py with 100% similarity]
cinder/tests/unit/test_conf.py [moved from cinder/tests/test_conf.py with 93% similarity]
cinder/tests/unit/test_context.py [moved from cinder/tests/test_context.py with 100% similarity]
cinder/tests/unit/test_create_volume_flow.py [moved from cinder/tests/test_create_volume_flow.py with 98% similarity]
cinder/tests/unit/test_db_api.py [moved from cinder/tests/test_db_api.py with 100% similarity]
cinder/tests/unit/test_dellfc.py [moved from cinder/tests/test_dellfc.py with 100% similarity]
cinder/tests/unit/test_dellsc.py [moved from cinder/tests/test_dellsc.py with 100% similarity]
cinder/tests/unit/test_dellscapi.py [moved from cinder/tests/test_dellscapi.py with 100% similarity]
cinder/tests/unit/test_emc_vmax.py [moved from cinder/tests/test_emc_vmax.py with 100% similarity]
cinder/tests/unit/test_emc_vnxdirect.py [moved from cinder/tests/test_emc_vnxdirect.py with 99% similarity]
cinder/tests/unit/test_emc_xtremio.py [moved from cinder/tests/test_emc_xtremio.py with 100% similarity]
cinder/tests/unit/test_eqlx.py [moved from cinder/tests/test_eqlx.py with 100% similarity]
cinder/tests/unit/test_evaluator.py [moved from cinder/tests/test_evaluator.py with 100% similarity]
cinder/tests/unit/test_exception.py [moved from cinder/tests/test_exception.py with 100% similarity]
cinder/tests/unit/test_glusterfs.py [moved from cinder/tests/test_glusterfs.py with 100% similarity]
cinder/tests/unit/test_gpfs.py [moved from cinder/tests/test_gpfs.py with 100% similarity]
cinder/tests/unit/test_hacking.py [moved from cinder/tests/test_hacking.py with 93% similarity]
cinder/tests/unit/test_hds.py [moved from cinder/tests/test_hds.py with 100% similarity]
cinder/tests/unit/test_hds_hnas_backend.py [moved from cinder/tests/test_hds_hnas_backend.py with 100% similarity]
cinder/tests/unit/test_hds_iscsi.py [moved from cinder/tests/test_hds_iscsi.py with 100% similarity]
cinder/tests/unit/test_hds_nfs.py [moved from cinder/tests/test_hds_nfs.py with 100% similarity]
cinder/tests/unit/test_hitachi_hbsd_horcm_fc.py [moved from cinder/tests/test_hitachi_hbsd_horcm_fc.py with 100% similarity]
cinder/tests/unit/test_hitachi_hbsd_snm2_fc.py [moved from cinder/tests/test_hitachi_hbsd_snm2_fc.py with 100% similarity]
cinder/tests/unit/test_hitachi_hbsd_snm2_iscsi.py [moved from cinder/tests/test_hitachi_hbsd_snm2_iscsi.py with 100% similarity]
cinder/tests/unit/test_hp3par.py [moved from cinder/tests/test_hp3par.py with 99% similarity]
cinder/tests/unit/test_hplefthand.py [moved from cinder/tests/test_hplefthand.py with 99% similarity]
cinder/tests/unit/test_huawei_18000.py [moved from cinder/tests/test_huawei_18000.py with 100% similarity]
cinder/tests/unit/test_huawei_drivers_compatibility.py [moved from cinder/tests/test_huawei_drivers_compatibility.py with 100% similarity]
cinder/tests/unit/test_ibm_flashsystem.py [moved from cinder/tests/test_ibm_flashsystem.py with 100% similarity]
cinder/tests/unit/test_ibm_xiv_ds8k.py [moved from cinder/tests/test_ibm_xiv_ds8k.py with 99% similarity]
cinder/tests/unit/test_ibmnas.py [moved from cinder/tests/test_ibmnas.py with 100% similarity]
cinder/tests/unit/test_image_utils.py [moved from cinder/tests/test_image_utils.py with 100% similarity]
cinder/tests/unit/test_migrations.py [moved from cinder/tests/test_migrations.py with 100% similarity]
cinder/tests/unit/test_misc.py [moved from cinder/tests/test_misc.py with 100% similarity]
cinder/tests/unit/test_netapp.py [moved from cinder/tests/test_netapp.py with 100% similarity]
cinder/tests/unit/test_netapp_eseries_iscsi.py [moved from cinder/tests/test_netapp_eseries_iscsi.py with 100% similarity]
cinder/tests/unit/test_netapp_nfs.py [moved from cinder/tests/test_netapp_nfs.py with 100% similarity]
cinder/tests/unit/test_netapp_ssc.py [moved from cinder/tests/test_netapp_ssc.py with 100% similarity]
cinder/tests/unit/test_nfs.py [moved from cinder/tests/test_nfs.py with 100% similarity]
cinder/tests/unit/test_nimble.py [moved from cinder/tests/test_nimble.py with 100% similarity]
cinder/tests/unit/test_openvstorage.py [moved from cinder/tests/test_openvstorage.py with 100% similarity]
cinder/tests/unit/test_prophetstor_dpl.py [moved from cinder/tests/test_prophetstor_dpl.py with 100% similarity]
cinder/tests/unit/test_pure.py [moved from cinder/tests/test_pure.py with 100% similarity]
cinder/tests/unit/test_qos_specs.py [moved from cinder/tests/test_qos_specs.py with 100% similarity]
cinder/tests/unit/test_quobyte.py [moved from cinder/tests/test_quobyte.py with 100% similarity]
cinder/tests/unit/test_quota.py [moved from cinder/tests/test_quota.py with 99% similarity]
cinder/tests/unit/test_rbd.py [moved from cinder/tests/test_rbd.py with 99% similarity]
cinder/tests/unit/test_remotefs.py [moved from cinder/tests/test_remotefs.py with 100% similarity]
cinder/tests/unit/test_replication.py [moved from cinder/tests/test_replication.py with 99% similarity]
cinder/tests/unit/test_san.py [moved from cinder/tests/test_san.py with 100% similarity]
cinder/tests/unit/test_scality.py [moved from cinder/tests/test_scality.py with 100% similarity]
cinder/tests/unit/test_service.py [moved from cinder/tests/test_service.py with 94% similarity]
cinder/tests/unit/test_sheepdog.py [moved from cinder/tests/test_sheepdog.py with 100% similarity]
cinder/tests/unit/test_smbfs.py [moved from cinder/tests/test_smbfs.py with 100% similarity]
cinder/tests/unit/test_solidfire.py [moved from cinder/tests/test_solidfire.py with 100% similarity]
cinder/tests/unit/test_srb.py [moved from cinder/tests/test_srb.py with 99% similarity]
cinder/tests/unit/test_storwize_svc.py [moved from cinder/tests/test_storwize_svc.py with 99% similarity]
cinder/tests/unit/test_test.py [moved from cinder/tests/test_test.py with 100% similarity]
cinder/tests/unit/test_test_utils.py [moved from cinder/tests/test_test_utils.py with 96% similarity]
cinder/tests/unit/test_utils.py [moved from cinder/tests/test_utils.py with 98% similarity]
cinder/tests/unit/test_v6000_common.py [moved from cinder/tests/test_v6000_common.py with 99% similarity]
cinder/tests/unit/test_v6000_fcp.py [moved from cinder/tests/test_v6000_fcp.py with 99% similarity]
cinder/tests/unit/test_v6000_iscsi.py [moved from cinder/tests/test_v6000_iscsi.py with 99% similarity]
cinder/tests/unit/test_vmware_datastore.py [moved from cinder/tests/test_vmware_datastore.py with 100% similarity]
cinder/tests/unit/test_vmware_vmdk.py [moved from cinder/tests/test_vmware_vmdk.py with 100% similarity]
cinder/tests/unit/test_vmware_volumeops.py [moved from cinder/tests/test_vmware_volumeops.py with 100% similarity]
cinder/tests/unit/test_volume.py [moved from cinder/tests/test_volume.py with 99% similarity]
cinder/tests/unit/test_volume_configuration.py [moved from cinder/tests/test_volume_configuration.py with 100% similarity]
cinder/tests/unit/test_volume_glance_metadata.py [moved from cinder/tests/test_volume_glance_metadata.py with 100% similarity]
cinder/tests/unit/test_volume_rpcapi.py [moved from cinder/tests/test_volume_rpcapi.py with 99% similarity]
cinder/tests/unit/test_volume_throttling.py [moved from cinder/tests/test_volume_throttling.py with 100% similarity]
cinder/tests/unit/test_volume_transfer.py [moved from cinder/tests/test_volume_transfer.py with 99% similarity]
cinder/tests/unit/test_volume_types.py [moved from cinder/tests/test_volume_types.py with 99% similarity]
cinder/tests/unit/test_volume_types_extra_specs.py [moved from cinder/tests/test_volume_types_extra_specs.py with 100% similarity]
cinder/tests/unit/test_volume_utils.py [moved from cinder/tests/test_volume_utils.py with 100% similarity]
cinder/tests/unit/test_wsgi.py [moved from cinder/tests/test_wsgi.py with 100% similarity]
cinder/tests/unit/test_xio.py [moved from cinder/tests/test_xio.py with 100% similarity]
cinder/tests/unit/test_zfssa.py [moved from cinder/tests/test_zfssa.py with 100% similarity]
cinder/tests/unit/utils.py [moved from cinder/tests/utils.py with 100% similarity]
cinder/tests/unit/var/ca.crt [moved from cinder/tests/var/ca.crt with 100% similarity]
cinder/tests/unit/var/certificate.crt [moved from cinder/tests/var/certificate.crt with 100% similarity]
cinder/tests/unit/var/privatekey.key [moved from cinder/tests/var/privatekey.key with 100% similarity]
cinder/tests/unit/volume/__init__.py [moved from cinder/tests/volume/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/__init__.py [moved from cinder/tests/volume/drivers/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/datera.py [moved from cinder/tests/volume/drivers/datera.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/__init__.py [moved from cinder/tests/volume/drivers/netapp/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/__init__.py [moved from cinder/tests/volume/drivers/netapp/dataontap/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/__init__.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/fakes.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/fakes.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_api.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/test_api.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_7mode.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_7mode.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_base.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_base.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_cmode.py [moved from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_cmode.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/fakes.py [moved from cinder/tests/volume/drivers/netapp/dataontap/fakes.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_7mode.py [moved from cinder/tests/volume/drivers/netapp/dataontap/test_block_7mode.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_base.py [moved from cinder/tests/volume/drivers/netapp/dataontap/test_block_base.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_cmode.py [moved from cinder/tests/volume/drivers/netapp/dataontap/test_block_cmode.py with 98% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_base.py [moved from cinder/tests/volume/drivers/netapp/dataontap/test_nfs_base.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_cmode.py [moved from cinder/tests/volume/drivers/netapp/dataontap/test_nfs_cmode.py with 97% similarity]
cinder/tests/unit/volume/drivers/netapp/eseries/__init__.py [moved from cinder/tests/volume/drivers/netapp/eseries/__init__.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/eseries/test_client.py [moved from cinder/tests/volume/drivers/netapp/eseries/test_client.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/eseries/test_iscsi.py [moved from cinder/tests/volume/drivers/netapp/eseries/test_iscsi.py with 99% similarity]
cinder/tests/unit/volume/drivers/netapp/eseries/test_utils.py [moved from cinder/tests/volume/drivers/netapp/eseries/test_utils.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/fakes.py [moved from cinder/tests/volume/drivers/netapp/fakes.py with 100% similarity]
cinder/tests/unit/volume/drivers/netapp/test_common.py [moved from cinder/tests/volume/drivers/netapp/test_common.py with 98% similarity]
cinder/tests/unit/volume/drivers/netapp/test_utils.py [moved from cinder/tests/volume/drivers/netapp/test_utils.py with 99% similarity]
cinder/tests/unit/windows/__init__.py [moved from cinder/tests/windows/__init__.py with 100% similarity]
cinder/tests/unit/windows/db_fakes.py [moved from cinder/tests/windows/db_fakes.py with 100% similarity]
cinder/tests/unit/windows/test_smbfs.py [moved from cinder/tests/windows/test_smbfs.py with 100% similarity]
cinder/tests/unit/windows/test_vhdutils.py [moved from cinder/tests/windows/test_vhdutils.py with 100% similarity]
cinder/tests/unit/windows/test_windows.py [moved from cinder/tests/windows/test_windows.py with 99% similarity]
cinder/tests/unit/windows/test_windows_remotefs.py [moved from cinder/tests/windows/test_windows_remotefs.py with 100% similarity]
cinder/tests/unit/windows/test_windows_utils.py [moved from cinder/tests/windows/test_windows_utils.py with 100% similarity]
cinder/tests/unit/xenapi/__init__.py [moved from cinder/tests/xenapi/__init__.py with 100% similarity]
cinder/tests/unit/zonemanager/__init__.py [moved from cinder/tests/zonemanager/__init__.py with 100% similarity]
cinder/tests/unit/zonemanager/test_brcd_fc_san_lookup_service.py [moved from cinder/tests/zonemanager/test_brcd_fc_san_lookup_service.py with 100% similarity]
cinder/tests/unit/zonemanager/test_brcd_fc_zone_client_cli.py [moved from cinder/tests/zonemanager/test_brcd_fc_zone_client_cli.py with 100% similarity]
cinder/tests/unit/zonemanager/test_brcd_fc_zone_driver.py [moved from cinder/tests/zonemanager/test_brcd_fc_zone_driver.py with 97% similarity]
cinder/tests/unit/zonemanager/test_brcd_lookup_service.py [moved from cinder/tests/zonemanager/test_brcd_lookup_service.py with 98% similarity]
cinder/tests/unit/zonemanager/test_cisco_fc_san_lookup_service.py [moved from cinder/tests/zonemanager/test_cisco_fc_san_lookup_service.py with 100% similarity]
cinder/tests/unit/zonemanager/test_cisco_fc_zone_client_cli.py [moved from cinder/tests/zonemanager/test_cisco_fc_zone_client_cli.py with 100% similarity]
cinder/tests/unit/zonemanager/test_cisco_fc_zone_driver.py [moved from cinder/tests/zonemanager/test_cisco_fc_zone_driver.py with 97% similarity]
cinder/tests/unit/zonemanager/test_cisco_lookup_service.py [moved from cinder/tests/zonemanager/test_cisco_lookup_service.py with 97% similarity]
cinder/tests/unit/zonemanager/test_fc_zone_manager.py [moved from cinder/tests/zonemanager/test_fc_zone_manager.py with 100% similarity]
cinder/tests/unit/zonemanager/test_volume_driver.py [moved from cinder/tests/zonemanager/test_volume_driver.py with 98% similarity]

index 2312e9212167c5eeafccaf33e98871bddc3fdd0d..9b2451411fac95fa96f08f54e53d3b3b801ca766 100644 (file)
@@ -120,7 +120,7 @@ def check_assert_called_once(logical_line, filename):
            "once_with to test with explicit parameters or an assertEqual with"
            " call_count.")
 
-    if 'cinder/tests/' in filename:
+    if 'cinder.functional/tests/' or 'cinder.unit/tests' in filename:
         pos = logical_line.find('.assert_called_once(')
         if pos != -1:
             yield (pos, msg)
index e7180cc3c7518d4ad579e5fca778fc1616662930..c4c7bd46909d36eb1cd8e55d047af6a22016aa32 100644 (file)
@@ -46,8 +46,8 @@ from cinder import i18n
 from cinder import objects
 from cinder import rpc
 from cinder import service
-from cinder.tests import conf_fixture
-from cinder.tests import fake_notifier
+from cinder.tests.unit import conf_fixture
+from cinder.tests.unit import fake_notifier
 
 test_opts = [
     cfg.StrOpt('sqlite_clean_db',
@@ -165,7 +165,7 @@ class TestCase(testtools.TestCase):
                                                    format=log_format,
                                                    level=level))
 
-        rpc.add_extra_exmods("cinder.tests")
+        rpc.add_extra_exmods("cinder.tests.unit")
         self.addCleanup(rpc.clear_extra_exmods)
         self.addCleanup(rpc.cleanup)
 
@@ -225,7 +225,7 @@ class TestCase(testtools.TestCase):
                                          '..',
                                      )
                                  ),
-                                 'cinder/tests/policy.json'))
+                                 'cinder/tests/unit/policy.json'))
 
     def _common_cleanup(self):
         """Runs after each test method to tear down test environment."""
index 302a1a2dbabf6e99a3bb57262d52dde565ea32f2..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,38 +0,0 @@
-# Copyright 2010 United States Government as represented by the
-# Administrator of the National Aeronautics and Space Administration.
-# All Rights Reserved.
-#
-#    Licensed under the Apache License, Version 2.0 (the "License"); you may
-#    not use this file except in compliance with the License. You may obtain
-#    a copy of the License at
-#
-#         http://www.apache.org/licenses/LICENSE-2.0
-#
-#    Unless required by applicable law or agreed to in writing, software
-#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-#    License for the specific language governing permissions and limitations
-#    under the License.
-
-"""
-:mod:`cinder.tests` -- Cinder Unittests
-=====================================================
-
-.. automodule:: cinder.tests
-   :platform: Unix
-.. moduleauthor:: Jesse Andrews <jesse@ansolabs.com>
-.. moduleauthor:: Devin Carlen <devin.carlen@gmail.com>
-.. moduleauthor:: Vishvananda Ishaya <vishvananda@gmail.com>
-.. moduleauthor:: Joshua McKenty <joshua@cognition.ca>
-.. moduleauthor:: Manish Singh <yosh@gimp.org>
-.. moduleauthor:: Andy Smith <andy@anarkystic.com>
-"""
-
-import eventlet
-
-eventlet.monkey_patch()
-
-# See http://code.google.com/p/python-nose/issues/detail?id=373
-# The code below enables nosetests to work with i18n _() blocks
-import __builtin__
-setattr(__builtin__, '_', lambda x: x)
diff --git a/cinder/tests/unit/__init__.py b/cinder/tests/unit/__init__.py
new file mode 100644 (file)
index 0000000..125b19e
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 2010 United States Government as represented by the
+# Administrator of the National Aeronautics and Space Administration.
+# All Rights Reserved.
+#
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
+#    not use this file except in compliance with the License. You may obtain
+#    a copy of the License at
+#
+#         http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+#    License for the specific language governing permissions and limitations
+#    under the License.
+
+"""
+:mod:`cinder.tests.unit` -- Cinder Unittests
+=====================================================
+
+.. automodule:: cinder.tests.unit
+   :platform: Unix
+.. moduleauthor:: Jesse Andrews <jesse@ansolabs.com>
+.. moduleauthor:: Devin Carlen <devin.carlen@gmail.com>
+.. moduleauthor:: Vishvananda Ishaya <vishvananda@gmail.com>
+.. moduleauthor:: Joshua McKenty <joshua@cognition.ca>
+.. moduleauthor:: Manish Singh <yosh@gimp.org>
+.. moduleauthor:: Andy Smith <andy@anarkystic.com>
+"""
+
+import eventlet
+
+eventlet.monkey_patch()
+
+# See http://code.google.com/p/python-nose/issues/detail?id=373
+# The code below enables nosetests to work with i18n _() blocks
+import __builtin__
+setattr(__builtin__, '_', lambda x: x)
similarity index 99%
rename from cinder/tests/api/contrib/test_admin_actions.py
rename to cinder/tests/unit/api/contrib/test_admin_actions.py
index d4861db4d3e89852e69d93716ff17b61313ad69e..a1dff4da4fddc7fb101a40f054612da29e409c05 100644 (file)
@@ -28,10 +28,10 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
-from cinder.tests import cast_as_call
-from cinder.tests import fake_snapshot
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
+from cinder.tests.unit import cast_as_call
+from cinder.tests.unit import fake_snapshot
 from cinder.volume import api as volume_api
 from cinder.volume.targets import tgt
 
similarity index 99%
rename from cinder/tests/api/contrib/test_backups.py
rename to cinder/tests/unit/api/contrib/test_backups.py
index 1fe3752ee7ca89466d6aa811a162b2b0ebe6eca0..09077e674ca03a0a73b4a76bd6064f49428decfe 100644 (file)
@@ -32,8 +32,8 @@ from cinder import db
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import utils
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import utils
 # needed for stubs to work
 import cinder.volume
 
similarity index 99%
rename from cinder/tests/api/contrib/test_cgsnapshots.py
rename to cinder/tests/unit/api/contrib/test_cgsnapshots.py
index 4654ceef6598a296521cf62a2ef888160ba1fe6d..b1d97083382ba8d4f6597da82e915805748ba1dc 100644 (file)
@@ -29,8 +29,8 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import utils
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import utils
 import cinder.volume
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_consistencygroups.py
rename to cinder/tests/unit/api/contrib/test_consistencygroups.py
index 70d730dccf0dc6eba2a5b6e5ea0ad21e0bdb63df..77dd273c01c3b0ebde10cd71fe82e73bfabd94ef 100644 (file)
@@ -29,9 +29,9 @@ from cinder import db
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
-from cinder.tests import utils
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
+from cinder.tests.unit import utils
 from cinder.volume import api as volume_api
 
 
similarity index 97%
rename from cinder/tests/api/contrib/test_extended_snapshot_attributes.py
rename to cinder/tests/unit/api/contrib/test_extended_snapshot_attributes.py
index b0daf1989ad4c8a902578dc0db4828ba2c85cab3..6b8d2712a585ecfb6131ee290171009ee6b09075 100644 (file)
@@ -22,9 +22,9 @@ import webob
 from cinder.api.contrib import extended_snapshot_attributes
 from cinder import context
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 
 
 UUID1 = '00000000-0000-0000-0000-000000000001'
similarity index 99%
rename from cinder/tests/api/contrib/test_qos_specs_manage.py
rename to cinder/tests/unit/api/contrib/test_qos_specs_manage.py
index 1b2ce57b058d18fdf99dd3559a8a617e42f566c7..27119667aad13e35df63d6abe090e3fd7e3fe833 100644 (file)
@@ -24,8 +24,8 @@ from cinder.api.contrib import qos_specs_manage
 from cinder.api import xmlutil
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_notifier
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_notifier
 
 
 def stub_qos_specs(id):
similarity index 97%
rename from cinder/tests/api/contrib/test_scheduler_hints.py
rename to cinder/tests/unit/api/contrib/test_scheduler_hints.py
index 1098ee207d5de86cb8bd4cceb24598bd1ac5f035..2fffe1192f8f609ad380e727f239708eeef694e4 100644 (file)
@@ -20,8 +20,8 @@ from oslo_serialization import jsonutils
 import cinder
 from cinder.api.openstack import wsgi
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
 
 UUID = fakes.FAKE_UUID
 
similarity index 98%
rename from cinder/tests/api/contrib/test_scheduler_stats.py
rename to cinder/tests/unit/api/contrib/test_scheduler_stats.py
index ca0518bddd837923e771179fd31b10d6e1ab50a9..975711282c42ec78e12cec6767b0b26816b39d58 100644 (file)
@@ -19,7 +19,7 @@ import mock
 from cinder.api.contrib import scheduler_stats
 from cinder import context
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 def schedule_rpcapi_get_pools(self, context, filters=None):
similarity index 99%
rename from cinder/tests/api/contrib/test_services.py
rename to cinder/tests/unit/api/contrib/test_services.py
index d8aeb1ee2b0ec66b87977288bda5da04597169ca..8940a053c8ae758a7ed9a9bd069297a94c0c9c33 100644 (file)
@@ -26,7 +26,7 @@ from cinder import db
 from cinder import exception
 from cinder import policy
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 fake_services_list = [
similarity index 97%
rename from cinder/tests/api/contrib/test_snapshot_actions.py
rename to cinder/tests/unit/api/contrib/test_snapshot_actions.py
index f955428ac0d253440703bd749e3fbd584b4f6556..be2592fe5a75bb78c46a22b944353a260ec3ea85 100644 (file)
@@ -17,8 +17,8 @@ import webob
 
 from cinder import db
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
 
 
 class SnapshotActionsTest(test.TestCase):
similarity index 99%
rename from cinder/tests/api/contrib/test_types_extra_specs.py
rename to cinder/tests/unit/api/contrib/test_types_extra_specs.py
index d865314855011703808fcdab7d79d16073f4547c..0c1ebbe474d1f4aefb9ac0af6746d8bf253446b0 100644 (file)
@@ -22,8 +22,8 @@ import webob
 from cinder.api.contrib import types_extra_specs
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_notifier
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_notifier
 import cinder.wsgi
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_types_manage.py
rename to cinder/tests/unit/api/contrib/test_types_manage.py
index 6b8530ea5c240c4cc71412d62445a7678f50dd31..f20419d142fe43c68dab8d796a57dc983927498d 100644 (file)
@@ -19,8 +19,8 @@ import webob
 from cinder.api.contrib import types_manage
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_notifier
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_notifier
 from cinder.volume import volume_types
 
 
similarity index 98%
rename from cinder/tests/api/contrib/test_used_limits.py
rename to cinder/tests/unit/api/contrib/test_used_limits.py
index 86971bf831105ce793e0a5460a55c76ae74dce2e..0c4f1f1d8a78e71fbee3768ee9761386711231c1 100644 (file)
@@ -17,7 +17,7 @@ from cinder.api.contrib import used_limits
 from cinder.api.openstack import wsgi
 from cinder import quota
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 class FakeRequest(object):
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_actions.py
rename to cinder/tests/unit/api/contrib/test_volume_actions.py
index cee967afefcfd70a6ddd2951b2db81cdddb1193a..d59607c5d61241df7bbb610c94d356a6004aa3d8 100644 (file)
@@ -26,8 +26,8 @@ from cinder.api.contrib import volume_actions
 from cinder import exception
 from cinder.image import glance
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
 from cinder import volume
 from cinder.volume import api as volume_api
 from cinder.volume import rpcapi as volume_rpcapi
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_encryption_metadata.py
rename to cinder/tests/unit/api/contrib/test_volume_encryption_metadata.py
index 29c5dec27a71be2280295ea9df60b8a0600d0ac6..a6678cec67f1e778795222497df1282bf05cf286 100644 (file)
@@ -21,7 +21,7 @@ from cinder.api.contrib import volume_encryption_metadata
 from cinder import context
 from cinder import db
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder.volume import volume_types
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_host_attribute.py
rename to cinder/tests/unit/api/contrib/test_volume_host_attribute.py
index 2505fca9a8bca41dfe591dffbfbadd9eaba3b542..848b9b1e14f48de749438d330a3e9d52133704b2 100644 (file)
@@ -22,7 +22,7 @@ import webob
 from cinder import context
 from cinder import db
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_image_metadata.py
rename to cinder/tests/unit/api/contrib/test_volume_image_metadata.py
index 954245b9d030db59c9475f846837082c49e7972a..9f5268890705530d14b387f215960953a474f864 100644 (file)
@@ -23,7 +23,7 @@ from cinder.api import common
 from cinder.api.openstack import wsgi
 from cinder import db
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_manage.py
rename to cinder/tests/unit/api/contrib/test_volume_manage.py
index 9363e26476768783d6f379313d8a287a05e09655..f05ebac06d218af52f6c81f9d8da86aacc4ff94a 100644 (file)
@@ -19,7 +19,7 @@ import webob
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 def app():
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_migration_status_attribute.py
rename to cinder/tests/unit/api/contrib/test_volume_migration_status_attribute.py
index b99f009c2a123c600069dcd9520c55791200a7fe..241ea0beb0d5af8367b3bf5cde015daa84ce7ec0 100644 (file)
@@ -21,7 +21,7 @@ import webob
 
 from cinder import context
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_replication.py
rename to cinder/tests/unit/api/contrib/test_volume_replication.py
index 4277a205c3a3db356d7a983d491ff438711714f2..8de27087fad00d900b82a46fa22ec21bb28d07c9 100644 (file)
@@ -24,8 +24,8 @@ import webob
 
 from cinder import context
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import utils as tests_utils
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import utils as tests_utils
 
 CONF = cfg.CONF
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_tenant_attribute.py
rename to cinder/tests/unit/api/contrib/test_volume_tenant_attribute.py
index 5c671c2bee84c4fbfa4c3b8e954cdc6d572a6d7a..1c2db15793a6bd45d52b1845770cbdfdfae549a1 100644 (file)
@@ -21,7 +21,7 @@ import webob
 
 from cinder import context
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_transfer.py
rename to cinder/tests/unit/api/contrib/test_volume_transfer.py
index 0b541e166d57dca93af0f228412d8b098993125b..81eaeeefd0ff1c6e6a8c1501f395603d52b685c2 100644 (file)
@@ -28,7 +28,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder import transfer
 import cinder.volume
 
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_type_access.py
rename to cinder/tests/unit/api/contrib/test_volume_type_access.py
index 218ccd83575c688b4d52d5b4f50920652aca4003..96d06c9cf80e0b54647c65dcd13d37fd84d6c4f7 100644 (file)
@@ -21,7 +21,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 def generate_type(type_id, is_public):
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_type_encryption.py
rename to cinder/tests/unit/api/contrib/test_volume_type_encryption.py
index 9bf1f9852acadaa5d51889db0e2f208c25d82b43..8e7085c8b62ed92c075ffa99427af17f48617209 100644 (file)
@@ -20,8 +20,8 @@ import webob
 from cinder import context
 from cinder import db
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_notifier
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_notifier
 
 
 def return_volume_type_encryption(context, volume_type_id):
similarity index 99%
rename from cinder/tests/api/contrib/test_volume_unmanage.py
rename to cinder/tests/unit/api/contrib/test_volume_unmanage.py
index 2939a61b8a2a06e556372523cd6aef6e762b4b4c..fcbc856a4d1521383069ff4f754beb36d9987f72 100644 (file)
@@ -19,7 +19,7 @@ import webob
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 # This list of fake volumes is used by our tests.  Each is configured in a
similarity index 99%
rename from cinder/tests/api/openstack/test_wsgi.py
rename to cinder/tests/unit/api/openstack/test_wsgi.py
index 16ccbd718bc357c2ebdd649e8e0f9617d5fa6e8b..af5cb38d09ba49b941503750f2c2c79feecee208 100644 (file)
@@ -17,7 +17,7 @@ import webob
 from cinder.api.openstack import wsgi
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 class RequestTest(test.TestCase):
similarity index 99%
rename from cinder/tests/api/test_extensions.py
rename to cinder/tests/unit/api/test_extensions.py
index 374021ba09dab645b5630244695f282a8fd7f874..bfdc63c20865e29492ab1e995f1fef17a068c545 100644 (file)
@@ -36,7 +36,7 @@ class ExtensionTestCase(test.TestCase):
     def setUp(self):
         super(ExtensionTestCase, self).setUp()
         ext_list = CONF.osapi_volume_extension[:]
-        fox = ('cinder.tests.api.extensions.foxinsocks.Foxinsocks')
+        fox = ('cinder.tests.unit.api.extensions.foxinsocks.Foxinsocks')
         if fox not in ext_list:
             ext_list.append(fox)
             self.flags(osapi_volume_extension=ext_list)
similarity index 99%
rename from cinder/tests/api/test_router.py
rename to cinder/tests/unit/api/test_router.py
index e38a62a5ee6a0e14cf13627dc8bdf6c1460e7789..2e23cdbf46c08f7d10beec0b1a3c0169ae62433c 100644 (file)
@@ -21,7 +21,7 @@ from cinder.api.v1 import snapshots
 from cinder.api.v1 import volumes
 from cinder.api import versions
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 
 
 LOG = logging.getLogger(__name__)
similarity index 99%
rename from cinder/tests/api/v1/test_snapshot_metadata.py
rename to cinder/tests/unit/api/v1/test_snapshot_metadata.py
index 82cc5cbd32243a70b3028177862720f74e5657c0..ccd49e22c6597ef0dc33fd4ade14633b04196817 100644 (file)
@@ -27,9 +27,9 @@ from cinder import context
 import cinder.db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/api/v1/test_snapshots.py
rename to cinder/tests/unit/api/v1/test_snapshots.py
index bc6d76f824a87852f41571c01bdeb189cac4e3ed..6e2984644fabc3ba72c7d2f462f48d88fdbd1deb 100644 (file)
@@ -24,10 +24,10 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v1 import stubs
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v1 import stubs
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/v1/test_types.py
rename to cinder/tests/unit/api/v1/test_types.py
index 290f279e42ee1ac939dd0f9f22a0a40c17ec015a..60d3e19149519937ae193eb58a8cc0ff57f9d1cb 100644 (file)
@@ -23,7 +23,7 @@ from cinder.api.v1 import types
 from cinder.api.views import types as views_types
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder.volume import volume_types
 
 
similarity index 99%
rename from cinder/tests/api/v1/test_volume_metadata.py
rename to cinder/tests/unit/api/v1/test_volume_metadata.py
index af70cfcf23e60eed96f50e28e023900680968261..e8de1955bcaf01ef103baffd2e3f3c6a48baac90 100644 (file)
@@ -25,8 +25,8 @@ from cinder.api.v1 import volumes
 import cinder.db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v1 import stubs
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v1 import stubs
 
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/api/v1/test_volumes.py
rename to cinder/tests/unit/api/v1/test_volumes.py
index 6052a7efabdf31b0728ce6e54e57645af7cf7441..908034c85b384c9434afc1b399584f810cd96609 100644 (file)
@@ -27,10 +27,10 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
-from cinder.tests import fake_notifier
-from cinder.tests.image import fake as fake_image
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
+from cinder.tests.unit import fake_notifier
+from cinder.tests.unit.image import fake as fake_image
 from cinder.volume import api as volume_api
 
 
similarity index 99%
rename from cinder/tests/api/v2/test_snapshot_metadata.py
rename to cinder/tests/unit/api/v2/test_snapshot_metadata.py
index 5f608f0b5a2ca4976c5f7e2a8aa036142f1fe09b..633def0b6dc2019c00fd65464bf98467c8a11477 100644 (file)
@@ -27,9 +27,9 @@ from cinder import context
 import cinder.db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/api/v2/test_snapshots.py
rename to cinder/tests/unit/api/v2/test_snapshots.py
index dde584adc0c6f27f3d2326cd03a8d45526a63dbe..b10d1ca88300b8570a24d1d724e74ac78108b255 100644 (file)
@@ -24,10 +24,10 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 from cinder import volume
 
 
similarity index 99%
rename from cinder/tests/api/v2/test_types.py
rename to cinder/tests/unit/api/v2/test_types.py
index c2877dd2c1361437d5f5b994f64b39ab84179918..388492a10281e4558a4d17ab3b2dc41d549a6f82 100644 (file)
@@ -24,7 +24,7 @@ from cinder.api.v2 import types
 from cinder.api.views import types as views_types
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
+from cinder.tests.unit.api import fakes
 from cinder.volume import volume_types
 
 
similarity index 99%
rename from cinder/tests/api/v2/test_volume_metadata.py
rename to cinder/tests/unit/api/v2/test_volume_metadata.py
index d4eb6e1c985a21a69a3697899a95b5dab036e3af..d40f52008808b5dea30fabb90a11a0705b1b7513 100644 (file)
@@ -25,8 +25,8 @@ from cinder.api.v2 import volumes
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
 from cinder.volume import api as volume_api
 
 
similarity index 99%
rename from cinder/tests/api/v2/test_volumes.py
rename to cinder/tests/unit/api/v2/test_volumes.py
index f65a26614d681a86b7a412abfd8046fb33ba6c4c..d74154b554009fa4df9debd50a0c340ea21b8756 100644 (file)
@@ -30,10 +30,10 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.api.v2 import stubs
-from cinder.tests import fake_notifier
-from cinder.tests.image import fake as fake_image
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.api.v2 import stubs
+from cinder.tests.unit import fake_notifier
+from cinder.tests.unit.image import fake as fake_image
 from cinder.volume import api as volume_api
 
 CONF = cfg.CONF
similarity index 95%
rename from cinder/tests/backup/fake_service_with_verify.py
rename to cinder/tests/unit/backup/fake_service_with_verify.py
index 8f7821c5e5a56e8337ad70b407f8c60098d6f414..4673b26fd5f80d725621643e9ed1fe56235e32b2 100644 (file)
@@ -16,7 +16,7 @@
 from oslo_log import log as logging
 
 from cinder.backup import driver
-from cinder.tests.backup import fake_service
+from cinder.tests.unit.backup import fake_service
 
 LOG = logging.getLogger(__name__)
 
similarity index 84%
rename from cinder/tests/conf_fixture.py
rename to cinder/tests/unit/conf_fixture.py
index b1c4ccffc70318482016a955e79d824a516bd4a7..ae5ee2f195dd65b656fd26d46315df0da07ac041 100644 (file)
@@ -35,20 +35,20 @@ def_vol_type = 'fake_vol_type'
 def set_defaults(conf):
     conf.set_default('default_volume_type', def_vol_type)
     conf.set_default('volume_driver',
-                     'cinder.tests.fake_driver.FakeISCSIDriver')
+                     'cinder.tests.unit.fake_driver.FakeISCSIDriver')
     conf.set_default('iscsi_helper', 'fake')
     conf.set_default('rpc_backend', 'cinder.openstack.common.rpc.impl_fake')
     conf.set_default('connection', 'sqlite://', group='database')
     conf.set_default('sqlite_synchronous', False, group='database')
-    conf.set_default('policy_file', 'cinder/tests/policy.json')
+    conf.set_default('policy_file', 'cinder.tests.unit/policy.json')
     conf.set_default(
         'xiv_ds8k_proxy',
-        'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver')
-    conf.set_default('backup_driver', 'cinder.tests.backup.fake_service')
+        'cinder.tests.unit.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver')
+    conf.set_default('backup_driver', 'cinder.tests.unit.backup.fake_service')
     conf.set_default('fixed_key', default='0' * 64, group='keymgr')
     conf.set_default('scheduler_driver',
                      'cinder.scheduler.filter_scheduler.FilterScheduler')
     conf.set_default('state_path', os.path.abspath(
-        os.path.join(os.path.dirname(__file__), '..', '..')))
+        os.path.join(os.path.dirname(__file__), '..', '..', '..')))
     conf.set_default('policy_dirs', [])
     conf.set_default('auth_strategy', 'noauth')
similarity index 97%
rename from cinder/tests/db/test_finish_migration.py
rename to cinder/tests/unit/db/test_finish_migration.py
index bcd160a8accfe395fc87f44153d6557e6f18ec3a..38b6e9b427dbac83c55c94d3d038ca363b3ec826 100644 (file)
@@ -18,7 +18,7 @@
 from cinder import context
 from cinder import db
 from cinder import test
-from cinder.tests import utils as testutils
+from cinder.tests.unit import utils as testutils
 
 
 class FinishVolumeMigrationTestCase(test.TestCase):
similarity index 97%
rename from cinder/tests/db/test_name_id.py
rename to cinder/tests/unit/db/test_name_id.py
index faeca670e6fd6449bee92cb577d30c2a415d94cd..e1b9f79b7b50ecadfa40b5214e71e6fa18945032 100644 (file)
@@ -19,7 +19,7 @@ from oslo_config import cfg
 from cinder import context
 from cinder import db
 from cinder import test
-from cinder.tests import utils as testutils
+from cinder.tests.unit import utils as testutils
 
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/db/test_transfers.py
rename to cinder/tests/unit/db/test_transfers.py
index 6ad8b98cbef4b14b74c9c060015ad56761590b1d..5e54998ee39adc5f80ca41782ea3be5cfdacc225 100644 (file)
@@ -21,7 +21,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests import utils
+from cinder.tests.unit import utils
 
 
 LOG = logging.getLogger(__name__)
similarity index 99%
rename from cinder/tests/fake_driver.py
rename to cinder/tests/unit/fake_driver.py
index 2c1b0351cc0c020f69941ca2d638fcf978e66337..a0db8ed4dea171ce06d073a24a6586820a8cbdf2 100644 (file)
@@ -15,7 +15,7 @@
 from oslo_log import log as logging
 
 from cinder.i18n import _LE
-from cinder.tests.brick import fake_lvm
+from cinder.tests.unit.brick import fake_lvm
 from cinder.volume import driver
 from cinder.volume.drivers import lvm
 from cinder.zonemanager import utils as fczm_utils
similarity index 92%
rename from cinder/tests/fake_hp_3par_client.py
rename to cinder/tests/unit/fake_hp_3par_client.py
index b6f19d5575681fe3ec67f963b4bfd219ab5ff3c9..99741ead72fd789d56ba884779abfe08f5680d74 100644 (file)
@@ -19,7 +19,7 @@ import sys
 
 import mock
 
-from cinder.tests import fake_hp_client_exceptions as hpexceptions
+from cinder.tests.unit import fake_hp_client_exceptions as hpexceptions
 
 hp3par = mock.Mock()
 hp3par.version = "3.1.2"
similarity index 92%
rename from cinder/tests/fake_hp_lefthand_client.py
rename to cinder/tests/unit/fake_hp_lefthand_client.py
index 791304b479e9456c2b8c5fe9f91508cb685b3b3f..ca3376d143690f88eeac7d2feaa4ae2b15dd2843 100644 (file)
@@ -19,7 +19,7 @@ import sys
 
 import mock
 
-from cinder.tests import fake_hp_client_exceptions as hpexceptions
+from cinder.tests.unit import fake_hp_client_exceptions as hpexceptions
 
 hplefthand = mock.Mock()
 hplefthand.version = "1.0.4"
similarity index 99%
rename from cinder/tests/image/test_glance.py
rename to cinder/tests/unit/image/test_glance.py
index 123a5a25dacf0a7846bb0b45c9d323964fda698a..f4032c7bf6a0f6ee3bdc64ef149a8ca0e177a4ea 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder import exception
 from cinder.image import glance
 from cinder import test
-from cinder.tests.glance import stubs as glance_stubs
+from cinder.tests.unit.glance import stubs as glance_stubs
 
 
 CONF = cfg.CONF
similarity index 98%
rename from cinder/tests/integrated/integrated_helpers.py
rename to cinder/tests/unit/integrated/integrated_helpers.py
index 20d6fbff16ff6a48e713c941b6e603e820638055..17a9543a8419c0bff8222f989035c73abf2053eb 100644 (file)
@@ -27,7 +27,7 @@ from oslo_log import log as logging
 
 from cinder import service
 from cinder import test  # For the flags
-from cinder.tests.integrated.api import client
+from cinder.tests.unit.integrated.api import client
 
 
 LOG = logging.getLogger(__name__)
similarity index 91%
rename from cinder/tests/integrated/test_extensions.py
rename to cinder/tests/unit/integrated/test_extensions.py
index 1e140143cd0ea6669cabaa824a7d0b55d6e72460..9bcab2642680e59568649601d99ecc50b9f07051 100644 (file)
@@ -17,7 +17,7 @@
 from oslo_config import cfg
 from oslo_log import log as logging
 
-from cinder.tests.integrated import integrated_helpers
+from cinder.tests.unit.integrated import integrated_helpers
 
 
 CONF = cfg.CONF
@@ -30,7 +30,7 @@ class ExtensionsTest(integrated_helpers._IntegratedTestBase):
         f = super(ExtensionsTest, self)._get_flags()
         f['osapi_volume_extension'] = CONF.osapi_volume_extension[:]
         f['osapi_volume_extension'].append(
-            'cinder.tests.api.extensions.foxinsocks.Foxinsocks')
+            'cinder.tests.unit.api.extensions.foxinsocks.Foxinsocks')
         return f
 
     def test_get_foxnsocks(self):
similarity index 94%
rename from cinder/tests/integrated/test_login.py
rename to cinder/tests/unit/integrated/test_login.py
index e0bad09573e538a9911c754dfc4a170b3d3f0de0..2cb62f35868cd76f228e60af554396b6f748dcd5 100644 (file)
@@ -15,7 +15,7 @@
 
 from oslo_log import log as logging
 
-from cinder.tests.integrated import integrated_helpers
+from cinder.tests.unit.integrated import integrated_helpers
 
 
 LOG = logging.getLogger(__name__)
similarity index 96%
rename from cinder/tests/integrated/test_volumes.py
rename to cinder/tests/unit/integrated/test_volumes.py
index abccca2a7be13a11d0bd18d9cca75f55c07b39e0..caee2a7d53bdefb0f09aa2140b3de0b06b7fa899 100644 (file)
@@ -19,9 +19,9 @@ from oslo_log import log as logging
 import testtools
 
 from cinder import service
-from cinder.tests import fake_driver
-from cinder.tests.integrated.api import client
-from cinder.tests.integrated import integrated_helpers
+from cinder.tests.unit import fake_driver
+from cinder.tests.unit.integrated.api import client
+from cinder.tests.unit.integrated import integrated_helpers
 
 
 LOG = logging.getLogger(__name__)
@@ -40,7 +40,8 @@ class VolumesTest(integrated_helpers._IntegratedTestBase):
 
     def _get_flags(self):
         f = super(VolumesTest, self)._get_flags()
-        f['volume_driver'] = 'cinder.tests.fake_driver.LoggingVolumeDriver'
+        f['volume_driver'] = \
+            'cinder.tests.unit.fake_driver.LoggingVolumeDriver'
         return f
 
     def test_get_volumes_summary(self):
similarity index 96%
rename from cinder/tests/integrated/test_xml.py
rename to cinder/tests/unit/integrated/test_xml.py
index 9307d7a16c096d0a8a4367b23ddc5200980260b0..e24957dc220545cd63bf830ba02a99491189086b 100644 (file)
@@ -17,7 +17,7 @@ from lxml import etree
 from oslo_log import log as logging
 
 from cinder.api import common
-from cinder.tests.integrated import integrated_helpers
+from cinder.tests.unit.integrated import integrated_helpers
 
 
 LOG = logging.getLogger(__name__)
similarity index 93%
rename from cinder/tests/keymgr/fake.py
rename to cinder/tests/unit/keymgr/fake.py
index c169e0a4e07c0f024c3bef59214d9a039bcaef2d..7612ebafb721bfeae0aa25c331e0007f7a2d7d3d 100644 (file)
@@ -17,7 +17,7 @@
 """Implementation of a fake key manager."""
 
 
-from cinder.tests.keymgr import mock_key_mgr
+from cinder.tests.unit.keymgr import mock_key_mgr
 
 
 def fake_api():
similarity index 99%
rename from cinder/tests/keymgr/test_barbican.py
rename to cinder/tests/unit/keymgr/test_barbican.py
index f3382115e31b69de8dcc4a3e889483e8336b8015..d8a25c15b2a7358f6565ebdfb247388796093c77 100644 (file)
@@ -27,7 +27,7 @@ from oslo_config import cfg
 from cinder import exception
 from cinder.keymgr import barbican
 from cinder.keymgr import key as keymgr_key
-from cinder.tests.keymgr import test_key_mgr
+from cinder.tests.unit.keymgr import test_key_mgr
 
 CONF = cfg.CONF
 CONF.import_opt('encryption_auth_url', 'cinder.keymgr.key_mgr', group='keymgr')
similarity index 98%
rename from cinder/tests/keymgr/test_conf_key_mgr.py
rename to cinder/tests/unit/keymgr/test_conf_key_mgr.py
index 314a48f401265fd03dab11f05ea778d741976b0d..756cc4c20a04e0a2d1b872e595af806dabb925a8 100644 (file)
@@ -25,7 +25,7 @@ from cinder import context
 from cinder import exception
 from cinder.keymgr import conf_key_mgr
 from cinder.keymgr import key
-from cinder.tests.keymgr import test_key_mgr
+from cinder.tests.unit.keymgr import test_key_mgr
 
 
 CONF = cfg.CONF
similarity index 97%
rename from cinder/tests/keymgr/test_mock_key_mgr.py
rename to cinder/tests/unit/keymgr/test_mock_key_mgr.py
index d73b8ba2a3773d0f5758258abedb45a23b415bed..7f2cd9e6686bb13bab6d5895772805fe648c858d 100644 (file)
@@ -22,8 +22,8 @@ import array
 from cinder import context
 from cinder import exception
 from cinder.keymgr import key as keymgr_key
-from cinder.tests.keymgr import mock_key_mgr
-from cinder.tests.keymgr import test_key_mgr
+from cinder.tests.unit.keymgr import mock_key_mgr
+from cinder.tests.unit.keymgr import test_key_mgr
 
 
 class MockKeyManagerTestCase(test_key_mgr.KeyManagerTestCase):
similarity index 97%
rename from cinder/tests/keymgr/test_not_implemented_key_mgr.py
rename to cinder/tests/unit/keymgr/test_not_implemented_key_mgr.py
index 18493964700f6746e779b320a6c41a20daa008b9..6f2896b13e7434ce4a28d09b9da8b28532783784 100644 (file)
@@ -18,7 +18,7 @@ Test cases for the not implemented key manager.
 """
 
 from cinder.keymgr import not_implemented_key_mgr
-from cinder.tests.keymgr import test_key_mgr
+from cinder.tests.unit.keymgr import test_key_mgr
 
 
 class NotImplementedKeyManagerTestCase(test_key_mgr.KeyManagerTestCase):
similarity index 99%
rename from cinder/tests/objects/test_objects.py
rename to cinder/tests/unit/objects/test_objects.py
index 6fe798886f741bd6862d6e46ea4541ffd909273c..74f8d79777948a9ff2be4c61b5f0b078edbf08b8 100644 (file)
@@ -28,7 +28,7 @@ from cinder import objects
 from cinder.objects import base
 from cinder.objects import fields
 from cinder import test
-from cinder.tests import fake_notifier
+from cinder.tests.unit import fake_notifier
 
 
 class MyOwnedObject(base.CinderPersistentObject, base.CinderObject):
similarity index 98%
rename from cinder/tests/objects/test_snapshot.py
rename to cinder/tests/unit/objects/test_snapshot.py
index 21ffda00a6c61f5ada7b5c720c8ce1340e4cd28b..48068a8905b777ebb7eaa6158d4944b50cbdec38 100644 (file)
@@ -16,8 +16,8 @@ import mock
 
 from cinder.objects import snapshot as snapshot_obj
 from cinder.objects import volume as volume_obj
-from cinder.tests import fake_volume
-from cinder.tests.objects import test_objects
+from cinder.tests.unit import fake_volume
+from cinder.tests.unit.objects import test_objects
 
 fake_snapshot = {
     'id': '1',
similarity index 97%
rename from cinder/tests/objects/test_volume.py
rename to cinder/tests/unit/objects/test_volume.py
index 901855a40cb8a9514a79809984cbf036e6b1904a..d6f407a703f2cbea06afe6117c136b535feb4457 100644 (file)
@@ -15,8 +15,8 @@
 import mock
 
 from cinder import objects
-from cinder.tests import fake_volume
-from cinder.tests.objects import test_objects
+from cinder.tests.unit import fake_volume
+from cinder.tests.unit.objects import test_objects
 
 
 class TestVolume(test_objects._LocalTest):
similarity index 98%
rename from cinder/tests/scheduler/test_allocated_capacity_weigher.py
rename to cinder/tests/unit/scheduler/test_allocated_capacity_weigher.py
index fc5cc87c2c81f7ae7835f7891d6762a74d8fd9d0..ded0cd7145901b33f140117ae5d6c2179ff0bfc6 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder.openstack.common.scheduler import weights
 from cinder.scheduler.weights import capacity
 from cinder import test
-from cinder.tests.scheduler import fakes
+from cinder.tests.unit.scheduler import fakes
 from cinder.volume import utils
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/scheduler/test_capacity_weigher.py
rename to cinder/tests/unit/scheduler/test_capacity_weigher.py
index 6e831d0c84efab8abd13fd02ecdb10bb09792682..25d8909e5e1ae31dc33e19dfe460e230b66ec88a 100644 (file)
@@ -23,7 +23,7 @@ from cinder import context
 from cinder.openstack.common.scheduler import weights
 from cinder.scheduler.weights import capacity
 from cinder import test
-from cinder.tests.scheduler import fakes
+from cinder.tests.unit.scheduler import fakes
 from cinder.volume import utils
 
 CONF = cfg.CONF
similarity index 99%
rename from cinder/tests/scheduler/test_filter_scheduler.py
rename to cinder/tests/unit/scheduler/test_filter_scheduler.py
index cb72faa354e2c825e0070c51d7f3f3933d474867..d047e8f46785eca22eda0da6b4a4b8e4256e8e0e 100644 (file)
@@ -22,8 +22,8 @@ from cinder import context
 from cinder import exception
 from cinder.scheduler import filter_scheduler
 from cinder.scheduler import host_manager
-from cinder.tests.scheduler import fakes
-from cinder.tests.scheduler import test_scheduler
+from cinder.tests.unit.scheduler import fakes
+from cinder.tests.unit.scheduler import test_scheduler
 from cinder.volume import utils
 
 
similarity index 99%
rename from cinder/tests/scheduler/test_goodness_weigher.py
rename to cinder/tests/unit/scheduler/test_goodness_weigher.py
index 29cfa7fcd2d8689eecbf3b985589200f218fc1a4..c042d1f718b1debc9635cba8fdbe370f591e4df5 100644 (file)
@@ -17,7 +17,7 @@ Tests For Goodness Weigher.
 
 from cinder.scheduler.weights import goodness
 from cinder import test
-from cinder.tests.scheduler import fakes
+from cinder.tests.unit.scheduler import fakes
 
 
 class GoodnessWeigherTestCase(test.TestCase):
similarity index 99%
rename from cinder/tests/scheduler/test_host_filters.py
rename to cinder/tests/unit/scheduler/test_host_filters.py
index b5b82c1900fd818882043852fbc41371a70ce472..592f2be564bf180c4a840913ac3091bbf88f9ee0 100644 (file)
@@ -25,8 +25,8 @@ from cinder import db
 from cinder import exception
 from cinder.openstack.common.scheduler import filters
 from cinder import test
-from cinder.tests.scheduler import fakes
-from cinder.tests import utils
+from cinder.tests.unit.scheduler import fakes
+from cinder.tests.unit import utils
 
 
 class HostFiltersTestCase(test.TestCase):
similarity index 98%
rename from cinder/tests/scheduler/test_volume_number_weigher.py
rename to cinder/tests/unit/scheduler/test_volume_number_weigher.py
index 7588bb631a0dac34c79ba90d8bc4c808339b2192..3cccffe54c2ae95bbaa7fa0e87521795b43ea256 100644 (file)
@@ -24,7 +24,7 @@ from cinder.db.sqlalchemy import api
 from cinder.openstack.common.scheduler import weights
 from cinder.scheduler.weights import volume_number
 from cinder import test
-from cinder.tests.scheduler import fakes
+from cinder.tests.unit.scheduler import fakes
 from cinder.volume import utils
 
 CONF = cfg.CONF
similarity index 96%
rename from cinder/tests/targets/test_iser_driver.py
rename to cinder/tests/unit/targets/test_iser_driver.py
index bfdb5a92b51ab1cd8ec859dfc3aac581c2114dea..291f0c0fc22c0c2adb51f4864e3d08951b45a786 100644 (file)
@@ -12,8 +12,8 @@
 
 import mock
 
-from cinder.tests.targets import test_lio_driver as test_lio
-from cinder.tests.targets import test_tgt_driver as test_tgt
+from cinder.tests.unit.targets import test_lio_driver as test_lio
+from cinder.tests.unit.targets import test_tgt_driver as test_tgt
 from cinder import utils
 from cinder.volume.targets import iser
 from cinder.volume.targets import lio
similarity index 98%
rename from cinder/tests/test_backup.py
rename to cinder/tests/unit/test_backup.py
index 48bd24e42a4adb25cf946e2bfe0c736607f39d9c..66bccac214210db469a3461b3bbec2c96ce8fedd 100644 (file)
@@ -30,7 +30,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.backup import fake_service_with_verify as fake_service
+from cinder.tests.unit.backup import fake_service_with_verify as fake_service
 
 
 CONF = cfg.CONF
@@ -297,7 +297,7 @@ class BackupTestCase(BaseBackupTest):
         backup_id = self._create_backup_db_entry(status='restoring',
                                                  volume_id=vol_id)
 
-        service = 'cinder.tests.backup.bad_service'
+        service = 'cinder.tests.unit.backup.bad_service'
         db.backup_update(self.ctxt, backup_id, {'service': service})
         self.assertRaises(exception.InvalidBackup,
                           self.backup_mgr.restore_backup,
@@ -372,7 +372,7 @@ class BackupTestCase(BaseBackupTest):
         vol_id = self._create_volume_db_entry(size=1)
         backup_id = self._create_backup_db_entry(status='deleting',
                                                  volume_id=vol_id)
-        service = 'cinder.tests.backup.bad_service'
+        service = 'cinder.tests.unit.backup.bad_service'
         db.backup_update(self.ctxt, backup_id, {'service': service})
         self.assertRaises(exception.InvalidBackup,
                           self.backup_mgr.delete_backup,
@@ -480,7 +480,7 @@ class BackupTestCase(BaseBackupTest):
         vol_id = self._create_volume_db_entry(size=1)
         backup_id = self._create_backup_db_entry(status='available',
                                                  volume_id=vol_id)
-        service = 'cinder.tests.backup.bad_service'
+        service = 'cinder.tests.unit.backup.bad_service'
         db.backup_update(self.ctxt, backup_id, {'service': service})
         self.assertRaises(exception.InvalidBackup,
                           self.backup_mgr.export_record,
@@ -536,7 +536,7 @@ class BackupTestCase(BaseBackupTest):
         record with a different service to that used to create the backup.
         """
         export = self._create_exported_record_entry()
-        export['backup_service'] = 'cinder.tests.backup.bad_service'
+        export['backup_service'] = 'cinder.tests.unit.backup.bad_service'
         imported_record = self._create_export_record_db_entry()
 
         # Test the case where the additional hosts list is empty
@@ -591,8 +591,9 @@ class BackupTestCaseWithVerify(BaseBackupTest):
     """Test Case for backups."""
 
     def setUp(self):
-        self.override_config("backup_driver",
-                             "cinder.tests.backup.fake_service_with_verify")
+        self.override_config(
+            "backup_driver",
+            "cinder.tests.unit.backup.fake_service_with_verify")
         super(BackupTestCaseWithVerify, self).setUp()
 
     def test_import_record_with_verify(self):
similarity index 99%
rename from cinder/tests/test_backup_driver_base.py
rename to cinder/tests/unit/test_backup_driver_base.py
index ce23c32a7519621e02d5b1064ae0ac7838312de3..7e96a85e64a711878b3a324134f1f19867714023 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests.backup import fake_service
+from cinder.tests.unit.backup import fake_service
 
 _backup_db_fields = ['id', 'user_id', 'project_id',
                      'volume_id', 'host', 'availability_zone',
similarity index 99%
rename from cinder/tests/test_backup_swift.py
rename to cinder/tests/unit/test_backup_swift.py
index ea402266ac50b33b22a08ff651ad3cb0bc754acc..70a72afa9a8a056140bd81ff56adca064c196783 100644 (file)
@@ -36,8 +36,8 @@ from cinder import db
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests.backup import fake_swift_client
-from cinder.tests.backup import fake_swift_client2
+from cinder.tests.unit.backup import fake_swift_client
+from cinder.tests.unit.backup import fake_swift_client2
 
 
 LOG = logging.getLogger(__name__)
similarity index 93%
rename from cinder/tests/test_conf.py
rename to cinder/tests/unit/test_conf.py
index 1dd285ad652550fdc016de0b2aec39537bb4f3d7..c81b2f49cb31c4b9dd9409bc488ac74c30abf43c 100644 (file)
@@ -35,19 +35,19 @@ class ConfigTestCase(test.TestCase):
 
     def test_declare(self):
         self.assertNotIn('answer', CONF)
-        CONF.import_opt('answer', 'cinder.tests.declare_conf')
+        CONF.import_opt('answer', 'cinder.tests.unit.declare_conf')
         self.assertIn('answer', CONF)
         self.assertEqual(CONF.answer, 42)
 
         # Make sure we don't overwrite anything
         CONF.set_override('answer', 256)
         self.assertEqual(CONF.answer, 256)
-        CONF.import_opt('answer', 'cinder.tests.declare_conf')
+        CONF.import_opt('answer', 'cinder.tests.unit.declare_conf')
         self.assertEqual(CONF.answer, 256)
 
     def test_runtime_and_unknown_conf(self):
         self.assertNotIn('runtime_answer', CONF)
-        import cinder.tests.runtime_conf    # noqa
+        import cinder.tests.unit.runtime_conf    # noqa
         self.assertIn('runtime_answer', CONF)
         self.assertEqual(CONF.runtime_answer, 54)
 
similarity index 98%
rename from cinder/tests/test_create_volume_flow.py
rename to cinder/tests/unit/test_create_volume_flow.py
index b863191e9891c6413351a3b34fa7aa50167fee86..2847be3125247fcec11235a9e7410b26c368c211 100644 (file)
@@ -21,8 +21,8 @@ import mock
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_snapshot
-from cinder.tests import fake_volume
+from cinder.tests.unit import fake_snapshot
+from cinder.tests.unit import fake_volume
 from cinder.volume.flows.api import create_volume
 from cinder.volume.flows.manager import create_volume as create_volume_manager
 
similarity index 99%
rename from cinder/tests/test_emc_vnxdirect.py
rename to cinder/tests/unit/test_emc_vnxdirect.py
index efc64d7595098253ad32bd4827e8bddb613228e4..ab4a71879414bd13bd96427d96cef3dd3fabc2b3 100644 (file)
@@ -20,7 +20,7 @@ from oslo_concurrency import processutils
 
 from cinder import exception
 from cinder import test
-from cinder.tests import utils
+from cinder.tests.unit import utils
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.emc import emc_cli_fc
 from cinder.volume.drivers.emc import emc_cli_iscsi
similarity index 93%
rename from cinder/tests/test_hacking.py
rename to cinder/tests/unit/test_hacking.py
index c41455a230846c2324545ea757f3f3d83066657a..400506d6ba0dbf824bf34ad57faf4f8216d2572b 100644 (file)
@@ -84,35 +84,35 @@ class HackingTestCase(test.TestCase):
     def test_check_explicit_underscore_import(self):
         self.assertEqual(1, len(list(checks.check_explicit_underscore_import(
             "LOG.info(_('My info message'))",
-            "cinder/tests/other_files.py"))))
+            "cinder.tests.unit/other_files.py"))))
         self.assertEqual(1, len(list(checks.check_explicit_underscore_import(
             "msg = _('My message')",
-            "cinder/tests/other_files.py"))))
+            "cinder.tests.unit/other_files.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "from cinder.i18n import _",
-            "cinder/tests/other_files.py"))))
+            "cinder.tests.unit/other_files.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "LOG.info(_('My info message'))",
-            "cinder/tests/other_files.py"))))
+            "cinder.tests.unit/other_files.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "msg = _('My message')",
-            "cinder/tests/other_files.py"))))
+            "cinder.tests.unit/other_files.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "from cinder.i18n import _, _LW",
-            "cinder/tests/other_files2.py"))))
+            "cinder.tests.unit/other_files2.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "msg = _('My message')",
-            "cinder/tests/other_files2.py"))))
+            "cinder.tests.unit/other_files2.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "_ = translations.ugettext",
-            "cinder/tests/other_files3.py"))))
+            "cinder.tests.unit/other_files3.py"))))
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "msg = _('My message')",
-            "cinder/tests/other_files3.py"))))
+            "cinder.tests.unit/other_files3.py"))))
         # Complete code coverage by falling through all checks
         self.assertEqual(0, len(list(checks.check_explicit_underscore_import(
             "LOG.info('My info message')",
-            "cinder/tests/other_files4.py"))))
+            "cinder.tests.unit/other_files4.py"))))
 
     def test_check_no_log_audit(self):
         self.assertEqual(1, len(list(checks.check_no_log_audit(
@@ -130,13 +130,13 @@ class HackingTestCase(test.TestCase):
 
     def test_check_assert_called_once(self):
         self.assertEqual(0, len(list(checks.check_assert_called_once(
-            ".assert_called_with(", "cinder/tests/test1.py"))))
+            ".assert_called_with(", "cinder.tests.unit/test1.py"))))
         self.assertEqual(0, len(list(checks.check_assert_called_once(
             ".assert_called_with(", "cinder/blah.py"))))
         self.assertEqual(1, len(list(checks.check_assert_called_once(
-            ".assert_called_once(", "cinder/tests/test1.py"))))
+            ".assert_called_once(", "cinder.tests.unit/test1.py"))))
         self.assertEqual(0, len(list(checks.check_assert_called_once(
-            ".assertEqual(", "cinder/tests/test1.py"))))
+            ".assertEqual(", "cinder.tests.unit/test1.py"))))
 
     def test_oslo_namespace_imports_check(self):
         self.assertEqual(1, len(list(checks.check_oslo_namespace_imports(
@@ -222,7 +222,7 @@ class HackingTestCase(test.TestCase):
             "cinder/cmd/file.py", False))))
         self.assertEqual(0, len(list(checks.check_no_print_statements(
             "print('My print statement that I just must have.')",
-            "cinder/tests/file.py", True))))
+            "cinder.tests.unit/file.py", True))))
         self.assertEqual(1, len(list(checks.check_no_print_statements(
             "print ('My print with space')",
             "cinder/volume/anotherFile.py", False))))
similarity index 99%
rename from cinder/tests/test_hp3par.py
rename to cinder/tests/unit/test_hp3par.py
index cc3fb00978db299743d51b28c1a0ecbbdc129453..1d331c58432c8c9b1e4666344065232f8cfa8e31 100644 (file)
@@ -26,7 +26,7 @@ from oslo_utils import units
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_hp_3par_client as hp3parclient
+from cinder.tests.unit import fake_hp_3par_client as hp3parclient
 from cinder.volume.drivers.san.hp import hp_3par_common as hpcommon
 from cinder.volume.drivers.san.hp import hp_3par_fc as hpfcdriver
 from cinder.volume.drivers.san.hp import hp_3par_iscsi as hpdriver
similarity index 99%
rename from cinder/tests/test_hplefthand.py
rename to cinder/tests/unit/test_hplefthand.py
index 1888be72c93c9ffed98d8c9be037358a9b12e7bf..f5ca8ca10d10475cbf98d2730e6da8f7235dfd48 100644 (file)
@@ -23,7 +23,7 @@ import six
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_hp_lefthand_client as hplefthandclient
+from cinder.tests.unit import fake_hp_lefthand_client as hplefthandclient
 from cinder.volume.drivers.san.hp import hp_lefthand_iscsi
 from cinder.volume.drivers.san.hp import hp_lefthand_rest_proxy
 from cinder.volume import volume_types
similarity index 99%
rename from cinder/tests/test_ibm_xiv_ds8k.py
rename to cinder/tests/unit/test_ibm_xiv_ds8k.py
index 88db060ae83e4e8630a1de2a1ad0e5b5e2612dc3..b169505fbf00b4dcd3bd346c6513516fdfec88ff 100644 (file)
@@ -271,7 +271,7 @@ class XIVDS8KVolumeDriverTest(test.TestCase):
         configuration = mox.MockObject(conf.Configuration)
         configuration.san_is_local = False
         configuration.xiv_ds8k_proxy = \
-            'cinder.tests.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver'
+            'cinder.tests.unit.test_ibm_xiv_ds8k.XIVDS8KFakeProxyDriver'
         configuration.xiv_ds8k_connection_type = 'iscsi'
         configuration.xiv_chap = 'disabled'
         configuration.san_ip = FAKE
similarity index 99%
rename from cinder/tests/test_quota.py
rename to cinder/tests/unit/test_quota.py
index b326ff0e24ff83a34d2d78fdcdecde527b5a128a..90c098135a943a1d433ec4f81f2e9d500d73aadb 100644 (file)
@@ -30,7 +30,7 @@ from cinder.db.sqlalchemy import models as sqa_models
 from cinder import exception
 from cinder import quota
 from cinder import test
-import cinder.tests.image.fake
+import cinder.tests.unit.image.fake
 from cinder import volume
 
 
@@ -64,7 +64,7 @@ class QuotaIntegrationTestCase(test.TestCase):
         # conflicts with the test cases here that are setting up their own
         # defaults.
         db.quota_class_destroy_all_by_name(self.context, 'default')
-        self.addCleanup(cinder.tests.image.fake.FakeImageService_reset)
+        self.addCleanup(cinder.tests.unit.image.fake.FakeImageService_reset)
 
     def _create_volume(self, size=1):
         """Create a test volume."""
@@ -463,7 +463,7 @@ class QuotaEngineTestCase(test.TestCase):
 
     def test_init_override_string(self):
         quota_obj = quota.QuotaEngine(
-            quota_driver_class='cinder.tests.test_quota.FakeDriver')
+            quota_driver_class='cinder.tests.unit.test_quota.FakeDriver')
 
         self.assertEqual(quota_obj.resources, {})
         self.assertIsInstance(quota_obj._driver, FakeDriver)
similarity index 99%
rename from cinder/tests/test_rbd.py
rename to cinder/tests/unit/test_rbd.py
index 2cf0138c9a0a524e3d19c54615e83e190ec48750..6c52cd4c7f4ac87f39746b483ec8cd3c3a81a45c 100644 (file)
@@ -30,8 +30,8 @@ from cinder import exception
 from cinder.i18n import _
 from cinder.image import image_utils
 from cinder import test
-from cinder.tests.image import fake as fake_image
-from cinder.tests import test_volume
+from cinder.tests.unit.image import fake as fake_image
+from cinder.tests.unit import test_volume
 from cinder.volume import configuration as conf
 import cinder.volume.drivers.rbd as driver
 from cinder.volume.flows.manager import create_volume
similarity index 99%
rename from cinder/tests/test_replication.py
rename to cinder/tests/unit/test_replication.py
index 71e33173556bde1a34e5e877ae4e8c3aa9d5b19f..19f620e3403d056b464800522efa750ee43ea4c9 100644 (file)
@@ -23,7 +23,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests import utils as test_utils
+from cinder.tests.unit import utils as test_utils
 from cinder.volume import driver
 
 
similarity index 94%
rename from cinder/tests/test_service.py
rename to cinder/tests/unit/test_service.py
index c2de595e1e361d25ae8f64a944f8412338f35ed9..81dac4f7c97bbda26e721d58529b5323cc166292 100644 (file)
@@ -37,7 +37,7 @@ from cinder import wsgi
 
 test_service_opts = [
     cfg.StrOpt("fake_manager",
-               default="cinder.tests.test_service.FakeManager",
+               default="cinder.tests.unit.test_service.FakeManager",
                help="Manager for testing"),
     cfg.StrOpt("test_service_listen",
                default=None,
@@ -73,7 +73,7 @@ class ServiceManagerTestCase(test.TestCase):
         serv = service.Service('test',
                                'test',
                                'test',
-                               'cinder.tests.test_service.FakeManager')
+                               'cinder.tests.unit.test_service.FakeManager')
         serv.start()
         self.assertEqual('manager', serv.test_method())
 
@@ -81,7 +81,7 @@ class ServiceManagerTestCase(test.TestCase):
         serv = ExtendedService('test',
                                'test',
                                'test',
-                               'cinder.tests.test_service.FakeManager')
+                               'cinder.tests.unit.test_service.FakeManager')
         serv.start()
         self.assertEqual('service', serv.test_method())
 
@@ -157,7 +157,7 @@ class ServiceTestCase(test.TestCase):
         serv = service.Service(host,
                                binary,
                                topic,
-                               'cinder.tests.test_service.FakeManager')
+                               'cinder.tests.unit.test_service.FakeManager')
         serv.start()
         serv.report_state()
         self.assertTrue(serv.model_disconnected)
@@ -192,7 +192,7 @@ class ServiceTestCase(test.TestCase):
         serv = service.Service(host,
                                binary,
                                topic,
-                               'cinder.tests.test_service.FakeManager')
+                               'cinder.tests.unit.test_service.FakeManager')
         serv.start()
         serv.model_disconnected = True
         serv.report_state()
@@ -202,8 +202,9 @@ class ServiceTestCase(test.TestCase):
     def test_service_with_long_report_interval(self):
         self.override_config('service_down_time', 10)
         self.override_config('report_interval', 10)
-        service.Service.create(binary="test_service",
-                               manager="cinder.tests.test_service.FakeManager")
+        service.Service.create(
+            binary="test_service",
+            manager="cinder.tests.unit.test_service.FakeManager")
         self.assertEqual(25, CONF.service_down_time)
 
 
similarity index 99%
rename from cinder/tests/test_srb.py
rename to cinder/tests/unit/test_srb.py
index a328176ddd055765d13bb22169574081894cf01f..594a1e1813e8100109ccde1cea8a879d04a5dd7b 100644 (file)
@@ -24,7 +24,7 @@ from oslo_utils import units
 from cinder import context
 from cinder import exception
 from cinder import test
-from cinder.tests.brick import test_brick_lvm
+from cinder.tests.unit.brick import test_brick_lvm
 from cinder.volume import configuration as conf
 from cinder.volume.drivers import srb
 
similarity index 99%
rename from cinder/tests/test_storwize_svc.py
rename to cinder/tests/unit/test_storwize_svc.py
index 9392d65891a2d3448db3173c4f71cd106ddb378d..cd23c887a594be915484b94997e541ea377ccdfd 100644 (file)
@@ -33,7 +33,7 @@ from cinder import context
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests import utils as testutils
+from cinder.tests.unit import utils as testutils
 from cinder import utils
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.ibm import storwize_svc
similarity index 96%
rename from cinder/tests/test_test_utils.py
rename to cinder/tests/unit/test_test_utils.py
index 8a9dbcd6660fc7c98074355c500061d025e5316d..0eeba4614c3f8e46c3f42435adc57fd8da15484b 100644 (file)
@@ -14,7 +14,7 @@
 #    under the License.
 
 from cinder import test
-from cinder.tests import utils as test_utils
+from cinder.tests.unit import utils as test_utils
 
 
 class TestUtilsTestCase(test.TestCase):
similarity index 98%
rename from cinder/tests/test_utils.py
rename to cinder/tests/unit/test_utils.py
index ef71eed11b279f5c837b1822d3f09eef9b983d76..91dd50953ae719c0aa91682ba8b15adae1467c15 100644 (file)
@@ -752,7 +752,7 @@ class MonkeyPatchTestCase(test.TestCase):
     """Unit test for utils.monkey_patch()."""
     def setUp(self):
         super(MonkeyPatchTestCase, self).setUp()
-        self.example_package = 'cinder.tests.monkey_patch_example.'
+        self.example_package = 'cinder.tests.unit.monkey_patch_example.'
         self.flags(
             monkey_patch=True,
             monkey_patch_modules=[self.example_package + 'example_a' + ':'
@@ -761,9 +761,9 @@ class MonkeyPatchTestCase(test.TestCase):
 
     def test_monkey_patch(self):
         utils.monkey_patch()
-        cinder.tests.monkey_patch_example.CALLED_FUNCTION = []
-        from cinder.tests.monkey_patch_example import example_a
-        from cinder.tests.monkey_patch_example import example_b
+        cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION = []
+        from cinder.tests.unit.monkey_patch_example import example_a
+        from cinder.tests.unit.monkey_patch_example import example_b
 
         self.assertEqual('Example function', example_a.example_function_a())
         exampleA = example_a.ExampleClassA()
@@ -778,20 +778,26 @@ class MonkeyPatchTestCase(test.TestCase):
 
         self.assertEqual(ret_b, 8)
         package_a = self.example_package + 'example_a.'
-        self.assertTrue(package_a + 'example_function_a'
-                        in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
-
-        self.assertTrue(package_a + 'ExampleClassA.example_method'
-                        in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
-        self.assertTrue(package_a + 'ExampleClassA.example_method_add'
-                        in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
+        self.assertTrue(
+            package_a + 'example_function_a'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
+
+        self.assertTrue(
+            package_a + 'ExampleClassA.example_method'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
+        self.assertTrue(
+            package_a + 'ExampleClassA.example_method_add'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
         package_b = self.example_package + 'example_b.'
-        self.assertFalse(package_b + 'example_function_b'
-                         in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
-        self.assertFalse(package_b + 'ExampleClassB.example_method'
-                         in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
-        self.assertFalse(package_b + 'ExampleClassB.example_method_add'
-                         in cinder.tests.monkey_patch_example.CALLED_FUNCTION)
+        self.assertFalse(
+            package_b + 'example_function_b'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
+        self.assertFalse(
+            package_b + 'ExampleClassB.example_method'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
+        self.assertFalse(
+            package_b + 'ExampleClassB.example_method_add'
+            in cinder.tests.unit.monkey_patch_example.CALLED_FUNCTION)
 
 
 class AuditPeriodTest(test.TestCase):
similarity index 99%
rename from cinder/tests/test_v6000_common.py
rename to cinder/tests/unit/test_v6000_common.py
index 2dbe3e511021f4ac87138e008ad9b6c3212ecd6c..e622dd9be1ae9f700382eee4e0540d2613dc79c7 100644 (file)
@@ -21,7 +21,7 @@ import mock
 
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_vmem_client as vmemclient
+from cinder.tests.unit import fake_vmem_client as vmemclient
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.violin import v6000_common
 
similarity index 99%
rename from cinder/tests/test_v6000_fcp.py
rename to cinder/tests/unit/test_v6000_fcp.py
index 02fe11bb9a3c431ed6f7a8df63d51300c6da0ad7..9b11320d90dc32dd2cbda79fae46c48e55952c79 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder.db.sqlalchemy import models
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_vmem_client as vmemclient
+from cinder.tests.unit import fake_vmem_client as vmemclient
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.violin import v6000_common
 from cinder.volume.drivers.violin import v6000_fcp
similarity index 99%
rename from cinder/tests/test_v6000_iscsi.py
rename to cinder/tests/unit/test_v6000_iscsi.py
index 458a938d89f42e4385df76026ef2cd4d7c06086e..b884ba3ff9319b43eb40f9676eceae4fbc9c33b7 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder.db.sqlalchemy import models
 from cinder import exception
 from cinder import test
-from cinder.tests import fake_vmem_client as vmemclient
+from cinder.tests.unit import fake_vmem_client as vmemclient
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.violin import v6000_common
 from cinder.volume.drivers.violin import v6000_iscsi
similarity index 99%
rename from cinder/tests/test_volume.py
rename to cinder/tests/unit/test_volume.py
index eb9ca327df4abd822704e6b0fe7e490e843b8bc2..ae8cb4b2b9262a7539195ea6028f946a263bb148 100644 (file)
@@ -50,14 +50,14 @@ from cinder.openstack.common import fileutils
 import cinder.policy
 from cinder import quota
 from cinder import test
-from cinder.tests.api import fakes
-from cinder.tests.brick import fake_lvm
-from cinder.tests import conf_fixture
-from cinder.tests import fake_driver
-from cinder.tests import fake_notifier
-from cinder.tests.image import fake as fake_image
-from cinder.tests.keymgr import fake as fake_keymgr
-from cinder.tests import utils as tests_utils
+from cinder.tests.unit.api import fakes
+from cinder.tests.unit.brick import fake_lvm
+from cinder.tests.unit import conf_fixture
+from cinder.tests.unit import fake_driver
+from cinder.tests.unit import fake_notifier
+from cinder.tests.unit.image import fake as fake_image
+from cinder.tests.unit.keymgr import fake as fake_keymgr
+from cinder.tests.unit import utils as tests_utils
 from cinder import utils
 import cinder.volume
 from cinder.volume import configuration as conf
@@ -1723,7 +1723,7 @@ class VolumeTestCase(BaseVolumeTestCase):
 
         with mock.patch.object(cinder.volume.volume_types,
                                'get_volume_type_qos_specs') as type_qos, \
-            mock.patch.object(cinder.tests.fake_driver.FakeISCSIDriver,
+            mock.patch.object(cinder.tests.unit.fake_driver.FakeISCSIDriver,
                               'initialize_connection') as driver_init:
             type_qos.return_value = dict(qos_specs=qos_values)
             driver_init.return_value = {'data': {}}
@@ -5102,7 +5102,7 @@ class DriverTestCase(test.TestCase):
 
 class GenericVolumeDriverTestCase(DriverTestCase):
     """Test case for VolumeDriver."""
-    driver_name = "cinder.tests.fake_driver.LoggingVolumeDriver"
+    driver_name = "cinder.tests.unit.fake_driver.LoggingVolumeDriver"
 
     def test_backup_volume(self):
         vol = tests_utils.create_volume(self.context)
similarity index 99%
rename from cinder/tests/test_volume_rpcapi.py
rename to cinder/tests/unit/test_volume_rpcapi.py
index f1da5b53469a44fea8762045cdb2d7bcceb827e1..6cf41376ec3a2a97832ecb83f1f4e9e55bd43a20 100644 (file)
@@ -24,7 +24,7 @@ from cinder import context
 from cinder import db
 from cinder import objects
 from cinder import test
-from cinder.tests import fake_snapshot
+from cinder.tests.unit import fake_snapshot
 from cinder.volume import rpcapi as volume_rpcapi
 
 
similarity index 99%
rename from cinder/tests/test_volume_transfer.py
rename to cinder/tests/unit/test_volume_transfer.py
index 2b6162f1a5fd39dfd2349f98001022bd9a13ea54..524cb6ab0f4c1ed5c4bfc78f54152ee11f99676d 100644 (file)
@@ -21,7 +21,7 @@ from cinder import context
 from cinder import db
 from cinder import exception
 from cinder import test
-from cinder.tests import utils
+from cinder.tests.unit import utils
 from cinder.transfer import api as transfer_api
 
 
similarity index 99%
rename from cinder/tests/test_volume_types.py
rename to cinder/tests/unit/test_volume_types.py
index a3ed37aeb126d4dba4b6f18c30de54e959f3add3..e5a024e781162a624cdeb4f3fa5b4c2ab83f1285 100644 (file)
@@ -29,7 +29,7 @@ from cinder.db.sqlalchemy import models
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests import conf_fixture
+from cinder.tests.unit import conf_fixture
 from cinder.volume import qos_specs
 from cinder.volume import volume_types
 
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_7mode.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_7mode.py
index 59113be2524e51f624b6d807923f1ed8ca498a59..ca2a9e8e4eaac9703a88b9b531e1ede2c053509c 100644 (file)
@@ -20,7 +20,7 @@ import mock
 import six
 
 from cinder import test
-from cinder.tests.volume.drivers.netapp.dataontap import fakes as fake
+from cinder.tests.unit.volume.drivers.netapp.dataontap import fakes as fake
 from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
 from cinder.volume.drivers.netapp.dataontap.client import client_7mode
 from cinder.volume.drivers.netapp import utils as netapp_utils
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_base.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_base.py
index e0f73a5378e9b42d1c46d2f3b855147ef4e2cf72..ef89c888fd33966036592e58c42e83e03320ac80 100644 (file)
@@ -19,7 +19,7 @@ import mock
 import six
 
 from cinder import test
-import cinder.tests.volume.drivers.netapp.dataontap.fakes as fake
+import cinder.tests.unit.volume.drivers.netapp.dataontap.fakes as fake
 from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
 from cinder.volume.drivers.netapp.dataontap.client import client_base
 
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/dataontap/client/test_client_cmode.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/client/test_client_cmode.py
index 25a23ae670afb9014fdc101c673248365dbbe8c0..655eb838ed2c2c241da1c06737824c0b66f40b8d 100644 (file)
@@ -21,8 +21,10 @@ import six
 
 from cinder import exception
 from cinder import test
-from cinder.tests.volume.drivers.netapp.dataontap.client import fakes as fake
-from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
+from cinder.tests.unit.volume.drivers.netapp.dataontap.client import (
+    fakes as fake)
+from cinder.volume.drivers.netapp.dataontap.client import (
+    api as netapp_api)
 from cinder.volume.drivers.netapp.dataontap.client import client_cmode
 from cinder.volume.drivers.netapp import utils as netapp_utils
 
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/dataontap/test_block_7mode.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_7mode.py
index 874875e9c5ef658f22fe407dc31e40da3da9f163..6bcfc9fac250c47859ab933716a42b3cdeb98770 100644 (file)
@@ -22,8 +22,8 @@ import mock
 
 from cinder import exception
 from cinder import test
-import cinder.tests.volume.drivers.netapp.dataontap.fakes as fake
-import cinder.tests.volume.drivers.netapp.fakes as na_fakes
+import cinder.tests.unit.volume.drivers.netapp.dataontap.fakes as fake
+import cinder.tests.unit.volume.drivers.netapp.fakes as na_fakes
 from cinder.volume.drivers.netapp.dataontap import block_7mode
 from cinder.volume.drivers.netapp.dataontap import block_base
 from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/dataontap/test_block_base.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_base.py
index 91779f9c032d33fdd79fd0c067ab0e9a6f5fc819..57d60e595f0370e5d5cd8e56b7cc78b21a543247 100644 (file)
@@ -27,7 +27,7 @@ import mock
 from cinder import exception
 from cinder.i18n import _
 from cinder import test
-from cinder.tests.volume.drivers.netapp.dataontap import fakes as fake
+from cinder.tests.unit.volume.drivers.netapp.dataontap import fakes as fake
 from cinder.volume.drivers.netapp.dataontap import block_base
 from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
 from cinder.volume.drivers.netapp import utils as na_utils
similarity index 98%
rename from cinder/tests/volume/drivers/netapp/dataontap/test_block_cmode.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/test_block_cmode.py
index b47c469758d0088ca254b9423df09761b8679474..7a893b014b35cf43805c9404bd0280a71138ea7f 100644 (file)
@@ -21,8 +21,8 @@ import mock
 
 from cinder import exception
 from cinder import test
-import cinder.tests.volume.drivers.netapp.dataontap.fakes as fake
-import cinder.tests.volume.drivers.netapp.fakes as na_fakes
+import cinder.tests.unit.volume.drivers.netapp.dataontap.fakes as fake
+import cinder.tests.unit.volume.drivers.netapp.fakes as na_fakes
 from cinder.volume.drivers.netapp.dataontap import block_base
 from cinder.volume.drivers.netapp.dataontap import block_cmode
 from cinder.volume.drivers.netapp.dataontap.client import api as netapp_api
similarity index 97%
rename from cinder/tests/volume/drivers/netapp/dataontap/test_nfs_cmode.py
rename to cinder/tests/unit/volume/drivers/netapp/dataontap/test_nfs_cmode.py
index 2f90277f351ae09a03a11a3e5037ef41111fe73c..cb6e5b47019af2ec00f942e0bd9d12d4e6bb1738 100644 (file)
@@ -20,7 +20,7 @@ import mock
 
 from cinder.brick.remotefs import remotefs as remotefs_brick
 from cinder import test
-from cinder.tests.volume.drivers.netapp import fakes as na_fakes
+from cinder.tests.unit.volume.drivers.netapp import fakes as na_fakes
 from cinder import utils
 from cinder.volume.drivers.netapp.dataontap.client import client_cmode
 from cinder.volume.drivers.netapp.dataontap import nfs_cmode
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/eseries/test_iscsi.py
rename to cinder/tests/unit/volume/drivers/netapp/eseries/test_iscsi.py
index 193deade42eb292a4c83e8e0523998ce5ed32aa6..25e3875554990198f21eefac4687004e1d40dae2 100644 (file)
@@ -21,7 +21,7 @@ Mock unit tests for the NetApp E-series iscsi driver
 import mock
 
 from cinder import test
-from cinder.tests.volume.drivers.netapp import fakes as na_fakes
+from cinder.tests.unit.volume.drivers.netapp import fakes as na_fakes
 from cinder.volume.drivers.netapp.eseries import client as es_client
 from cinder.volume.drivers.netapp.eseries import iscsi as es_iscsi
 from cinder.volume.drivers.netapp import utils as na_utils
similarity index 98%
rename from cinder/tests/volume/drivers/netapp/test_common.py
rename to cinder/tests/unit/volume/drivers/netapp/test_common.py
index 3f8d0c7ce86fa0b9955bc7d8448bf22e4e0e3b9b..d846b3c6a0c44c949a4f99825e6fe35d80bf346e 100644 (file)
@@ -17,7 +17,7 @@ import six
 
 from cinder import exception
 from cinder import test
-import cinder.tests.volume.drivers.netapp.fakes as na_fakes
+import cinder.tests.unit.volume.drivers.netapp.fakes as na_fakes
 import cinder.volume.drivers.netapp.common as na_common
 import cinder.volume.drivers.netapp.dataontap.fc_cmode as fc_cmode
 import cinder.volume.drivers.netapp.utils as na_utils
similarity index 99%
rename from cinder/tests/volume/drivers/netapp/test_utils.py
rename to cinder/tests/unit/volume/drivers/netapp/test_utils.py
index ac97bc731da360d76536184f7b754730f8e7fe17..f636e5a4d6311b5f34d324da64af0bd923b53b0b 100644 (file)
@@ -24,7 +24,7 @@ from oslo_concurrency import processutils as putils
 
 from cinder import exception
 from cinder import test
-import cinder.tests.volume.drivers.netapp.fakes as fake
+import cinder.tests.unit.volume.drivers.netapp.fakes as fake
 from cinder import version
 import cinder.volume.drivers.netapp.utils as na_utils
 
similarity index 99%
rename from cinder/tests/windows/test_windows.py
rename to cinder/tests/unit/windows/test_windows.py
index 759cb747b93561c6e4a8bcebecb89e5b58898144..0b8eb15b573c3e486c76e0092dda42741b7fc9b8 100644 (file)
@@ -28,7 +28,7 @@ from oslo_config import cfg
 from cinder.image import image_utils
 from cinder.openstack.common import fileutils
 from cinder import test
-from cinder.tests.windows import db_fakes
+from cinder.tests.unit.windows import db_fakes
 from cinder.volume import configuration as conf
 from cinder.volume.drivers.windows import constants
 from cinder.volume.drivers.windows import vhdutils
similarity index 97%
rename from cinder/tests/zonemanager/test_brcd_fc_zone_driver.py
rename to cinder/tests/unit/zonemanager/test_brcd_fc_zone_driver.py
index 24c5f49c7e44bff84933411f13c68e95117da619..fa6c8da380c377b8fa4409e7f883db1f0bf439d8 100644 (file)
@@ -65,16 +65,16 @@ class BrcdFcZoneDriverBaseTest(object):
         configuration = conf.Configuration(fc_test_opts)
         # fill up config
         configuration.zoning_mode = 'fabric'
-        configuration.zone_driver = ('cinder.tests.zonemanager.'
+        configuration.zone_driver = ('cinder.tests.unit.zonemanager.'
                                      'test_brcd_fc_zone_driver.'
                                      'FakeBrcdFCZoneDriver')
-        configuration.brcd_sb_connector = ('cinder.tests.zonemanager.'
+        configuration.brcd_sb_connector = ('cinder.tests.unit.zonemanager.'
                                            'test_brcd_fc_zone_driver'
                                            '.FakeBrcdFCZoneClientCLI')
         configuration.zoning_policy = 'initiator-target'
         configuration.zone_activate = True
         configuration.zone_name_prefix = 'openstack'
-        configuration.fc_san_lookup_service = ('cinder.tests.zonemanager.'
+        configuration.fc_san_lookup_service = ('cinder.tests.unit.zonemanager.'
                                                'test_brcd_fc_zone_driver.'
                                                'FakeBrcdFCSanLookupService')
 
similarity index 98%
rename from cinder/tests/zonemanager/test_brcd_lookup_service.py
rename to cinder/tests/unit/zonemanager/test_brcd_lookup_service.py
index 5010bb0b452af52cb538a50c6148a4883c4c6996..34d080c014d5e1513def0e00540bd414072e93e8 100644 (file)
@@ -51,7 +51,7 @@ class TestFCSanLookupService(san_service.FCSanLookupService, test.TestCase):
         configuration = conf.Configuration(None)
         # fill up config
         configuration.fc_san_lookup_service = (
-            'cinder.tests.zonemanager.test_brcd_lookup_service.'
+            'cinder.tests.unit.zonemanager.test_brcd_lookup_service.'
             'FakeBrcdFCSanLookupService')
         return configuration
 
similarity index 97%
rename from cinder/tests/zonemanager/test_cisco_fc_zone_driver.py
rename to cinder/tests/unit/zonemanager/test_cisco_fc_zone_driver.py
index a9aa3c4a454709f4b6b5252a782a3b33f09e0afb..42e5c555cfd1a411b329dbd8d4fd6cbb53fed087 100644 (file)
@@ -58,16 +58,16 @@ class CiscoFcZoneDriverBaseTest(object):
         configuration = conf.Configuration(fc_test_opts)
         # fill up config
         configuration.zoning_mode = 'fabric'
-        configuration.zone_driver = ('cinder.tests.zonemanager.'
+        configuration.zone_driver = ('cinder.tests.unit.zonemanager.'
                                      'test_cisco_fc_zone_driver.'
                                      'FakeCiscoFCZoneDriver')
-        configuration.cisco_sb_connector = ('cinder.tests.zonemanager.'
+        configuration.cisco_sb_connector = ('cinder.tests.unit.zonemanager.'
                                             'test_cisco_fc_zone_driver'
                                             '.FakeCiscoFCZoneClientCLI')
         configuration.zoning_policy = 'initiator-target'
         configuration.zone_activate = True
         configuration.zone_name_prefix = 'openstack'
-        configuration.fc_san_lookup_service = ('cinder.tests.zonemanager.'
+        configuration.fc_san_lookup_service = ('cinder.tests.unit.zonemanager.'
                                                'test_cisco_fc_zone_driver.'
                                                'FakeCiscoFCSanLookupService')
 
similarity index 97%
rename from cinder/tests/zonemanager/test_cisco_lookup_service.py
rename to cinder/tests/unit/zonemanager/test_cisco_lookup_service.py
index aaf0f1b6e8d4d217b54ec80091710408c7fd7f92..b2b4c171cde479efde335e6a349274b80d2d028f 100644 (file)
@@ -44,7 +44,7 @@ class TestFCSanLookupService(san_service.FCSanLookupService, test.TestCase):
     def setup_config(self):
         configuration = conf.Configuration(None)
         # fill up config
-        configuration.fc_san_lookup_service = ('cinder.tests.zonemanager'
+        configuration.fc_san_lookup_service = ('cinder.tests.unit.zonemanager'
                                                '.test_cisco_lookup_service'
                                                '.FakeCiscoFCSanLookupService')
         return configuration
similarity index 98%
rename from cinder/tests/zonemanager/test_volume_driver.py
rename to cinder/tests/unit/zonemanager/test_volume_driver.py
index fe4c919d6274e029c17c3a0db2760aae5a442952..f68f39defc363de2e90d9e838423eaab3b398b06 100644 (file)
@@ -22,7 +22,7 @@
 import mock
 
 from cinder import test
-from cinder.tests import fake_driver
+from cinder.tests.unit import fake_driver
 from cinder import utils
 from cinder.volume import configuration as conf
 from cinder.zonemanager.drivers.brocade import brcd_fc_zone_driver