]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix invalid uuid warnings in object unit tests
authorTom Barron <tpb@dyncloud.net>
Tue, 23 Feb 2016 02:17:25 +0000 (21:17 -0500)
committerTom Barron <tpb@dyncloud.net>
Tue, 23 Feb 2016 13:46:01 +0000 (08:46 -0500)
commit1b0ac9fe4ce584170f8cd1006b4214b02a3f7513
tree13b6ed56860770706618278b8bdd1537b9b35b32
parent4d66ea1eecf32c6487c888db3b5e059181290ca4
Fix invalid uuid warnings in object unit tests

Currently 'tox -epy27 -- --regex cinder.tests.unit.objects' emits
74 FutureWarnings from oslo.versionedobjects about 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: I8c8ac25f695adec61b5e506ddf99780448ee224e
13 files changed:
cinder/tests/unit/api/contrib/test_volume_actions.py
cinder/tests/unit/fake_constants.py [new file with mode: 0644]
cinder/tests/unit/fake_snapshot.py
cinder/tests/unit/fake_volume.py
cinder/tests/unit/objects/test_backup.py
cinder/tests/unit/objects/test_base.py
cinder/tests/unit/objects/test_cgsnapshot.py
cinder/tests/unit/objects/test_consistencygroup.py
cinder/tests/unit/objects/test_snapshot.py
cinder/tests/unit/objects/test_volume.py
cinder/tests/unit/objects/test_volume_attachment.py
cinder/tests/unit/objects/test_volume_type.py
cinder/tests/unit/volume/drivers/emc/scaleio/test_misc.py