The following warning appears in the unit test logs a number of times.
"UserWarning: This test uses methods that set internal oslo_db
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings from:
nova.tests.unit.compute.test_compute_api.py
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Reviewed: https:/ /review. openstack. org/377051 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=57672202e93 6f42eeb1d7466e5 896d047e6fa6b5
Committed: https:/
Submitter: Jenkins
Branch: master
commit 57672202e936f42 eeb1d7466e5896d 047e6fa6b5
Author: Diana Clarke <email address hidden>
Date: Mon Sep 26 15:20:28 2016 -0400
Fix database poison warnings, part 21
The following warning appears in the unit test logs a number of times.
state, but it does not claim to use the database. This will conflict
with the setup of tests that do use the database and cause failures
later."
This patch fixes all the warnings from:
Note that this warning is only emitted once per unit test worker, so new
offenders will show up in the logs each time you fix a test until they
are all gone.
Change-Id: I7bdf8422b05003 9df02c40a069964 262dfe4a9eb
Related-Bug: #1568414