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 the only 2 warnings in the functional tests.
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/396207 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=1078ebd6c1b 1ba9a5d811a426c aab7381c972369
Committed: https:/
Submitter: Jenkins
Branch: master
commit 1078ebd6c1b1ba9 a5d811a426caab7 381c972369
Author: Diana Clarke <email address hidden>
Date: Thu Nov 10 08:53:35 2016 -0500
Fix database poison warnings, part 25
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 the only 2 warnings in the functional tests.
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: I1bce7ef4222f11 88c003d84ce42cd 4755e9d8c24
Related-Bug: #1568414