]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix invalid uuid warnings in backup unit tests
authorTom Barron <tpb@dyncloud.net>
Mon, 29 Feb 2016 14:48:44 +0000 (09:48 -0500)
committerTom Barron <tpb@dyncloud.net>
Fri, 4 Mar 2016 00:04:00 +0000 (19:04 -0500)
commit9bbe9c440fce3f20d755ac8aa21808924ecfd065
tree5eb3ccc6116e51bc11b8e84dba1394061233d2aa
parent11edef81a5fab5ccebd2b24d985eddaa04dad3e0
Fix invalid uuid warnings in backup unit tests

Currently, 'tox -epy27 -- --regex cinder.tests.unit.backup' and
'tox -epy27 -- --regex cinder.tests.unit.test_backup' emit
188 FutureWarnings from oslo.versionedobjects aout invalid uuids
as documented here[1].

This commit changes these tests to use valid uuids so that when they
are run these warnings are no longer emitted.

[1] http://docs.openstack.org/developer/oslo.versionedobjects/api/fields.html#oslo_versionedobjects.fields.UUIDField

Change-Id: I356a38791de06164ec634c463713df9000268194
cinder/tests/unit/backup/drivers/test_backup_nfs.py
cinder/tests/unit/backup/drivers/test_backup_posix.py
cinder/tests/unit/backup/test_rpcapi.py
cinder/tests/unit/fake_backup.py
cinder/tests/unit/fake_constants.py
cinder/tests/unit/test_backup.py
cinder/tests/unit/test_backup_ceph.py
cinder/tests/unit/test_backup_driver_base.py
cinder/tests/unit/test_backup_google.py
cinder/tests/unit/test_backup_swift.py
cinder/tests/unit/test_backup_tsm.py