Reviewed: https://review.openstack.org/302658 Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=b1d9c3edd87fb9e547c5e374d836b673989747a7 Submitter: Jenkins Branch: master
commit b1d9c3edd87fb9e547c5e374d836b673989747a7 Author: srushti <srushti.gadad...@nttdata.com> Date: Tue Apr 5 13:27:43 2016 +0000 Fix invalid uuid warnings Currently, unit testcases emit 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 Closes-Bug: #1557378 Change-Id: I21a60e916e183f7c0fc6193d4b7caa88ae3b6d56 ** Changed in: nova Status: In Progress => Fix Released -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova). https://bugs.launchpad.net/bugs/1557378 Title: tox gives invalid uuid warnings in unit test Status in OpenStack Compute (nova): Fix Released Bug description: Currently 'tox -epy27' emits 318 FutureWarnings from oslo.versionedobjects about invalid uuids. When invalid uuids are used in the test cases, tox gives FutureWarnings. Steps to reproduce: Run tox -epy27 command. Sample Output: {3}nova.tests.unit.api.openstack.compute.legacy_v2.test_servers.ServersControllerCreateTest.test_create_instance_with_disk_config_disabled [0.266687s] ... ok {1}nova.tests.unit.api.openstack.compute.test_server_groups.ServerGroupTestV2.test_create_server_group_with_duplicate_policies [0.059925s] ... ok {0} nova.tests.unit.api.openstack.compute.test_server_group_quotas.ServerGroupQuotasTestV2.test_delete_server_group_by_id [0.128866s] ... ok Captured stderr: ~~~~~~~~~~~~~~~~ /opt/stack/nova/.tox/py27/local/lib/python2.7/site-packages/oslo_versionedobjects/fields.py:325: FutureWarning: fake-uuid is an invalid UUID. Using UUIDFields with invalid UUIDs is no longer supported, and will be removed in a future release. Please update your code to input valid UUIDs or accept ValueErrors for invalid UUIDs. See http://docs.openstack.org/developer/oslo.versionedobjects/api/fields.html#oslo_versionedobjects.fields.UUIDField for further details "for further details" % value, FutureWarning) To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/1557378/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp