]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Clean up started volume services in tests.
authorAvishay Traeger <avishay@il.ibm.com>
Thu, 21 Mar 2013 13:08:04 +0000 (15:08 +0200)
committerAvishay Traeger <avishay@il.ibm.com>
Thu, 21 Mar 2013 13:08:04 +0000 (15:08 +0200)
commitd1b37a8471ba5c5d5da315ea39335890b00a52f1
tree566c8209aa7409556fb9fbdc43ccbf696a0270c4
parent65e291054681e45d3160d995c5648b8311bc1a69
Clean up started volume services in tests.

The test_preattach_status_volume test was failing due to state left by
another test. The interim solution was to skip the aforementioned test.
I tracked down the problem to 4 tests in test_admin_actions.py that
call self.start_service('volume', host='test'), and don't stop the
service. Stopping it in all 4 tests solves the problem.

HOWEVER, I don't know why these started services caused this particular
test to fail. I am still working to figure that out, but maybe someone
has an idea.

Change-Id: I2a5caaae9f61e7c7617c934917a10cf1cf3c0db6
Fixes: bug 1153108
cinder/tests/api/contrib/test_admin_actions.py
cinder/tests/test_volume.py