unit-tests sometime fails for guestagent.test_dbaas.CouchDBAppTest.test_restart
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
Fix Released
|
High
|
Doug Shelley |
Bug Description
Unit tests fail some times for guestagent.
=======
FAIL: guestagent.
tags: worker-1
-------
Traceback (most recent call last):
File "/mnt/coding/
self.
File "/mnt/coding/
raise self.failureExc
AssertionError: False is not true
Ran 881 tests in 9.283s (+0.370s)
FAILED (id=9, failures=1 (+1), skips=1)
error: testr failed (1)
ERROR: InvocationError: '/mnt/coding/
Also found on one of gate logs
http://
Changed in trove: | |
assignee: | nobody → Doug Shelley (0-doug) |
milestone: | none → kilo-rc1 |
status: | New → Confirmed |
Changed in trove: | |
status: | Confirmed → In Progress |
Changed in trove: | |
importance: | Undecided → High |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | kilo-rc1 → 2015.1.0 |
Reviewed: https:/ /review. openstack. org/167368 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=087229b4fbd e7002cc05606e18 411b5088582377
Committed: https:/
Submitter: Jenkins
Branch: master
commit 087229b4fbde700 2cc05606e18411b 5088582377
Author: Doug Shelley <email address hidden>
Date: Tue Mar 24 18:49:31 2015 +0000
Fix CouchDB unit test to properly mock restart
In test_couchdb_ manager. py, GuestAgentCouch DBManagerTest. test_restart
isn't properly mocking CouchDBApp.restart. As coded, subsequent
tests calling restart will not necessarily behave correctly.
This change uses the with patch.object construct to correct this.
Change-Id: I5fb4895eae81a7 ef89bd7fadfeee7 ef5595b7fc5
Closes-Bug: 1434527