]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Mock processutils.execute properly in test_ibmnas
authorJay S. Bryant <jsbryant@us.ibm.com>
Mon, 25 Aug 2014 18:09:14 +0000 (13:09 -0500)
committerJay S. Bryant <jsbryant@us.ibm.com>
Mon, 25 Aug 2014 18:14:43 +0000 (13:14 -0500)
commit997ed18ee1e69f619818eb92144a2dc0e706e618
tree3c5fd2c621a21e127917c9ac38794b8400357d22
parent44fc450a8b30041d287fba5c9174d705288b59c9
Mock processutils.execute properly in test_ibmnas

test_delete_snapfiles and test_delete_snapfiles_nas_gpfs were
not properly mocking out cinder.openstack.common.processutils.execute .
This was causing the unittests to prompt for a sudo password during
unit test on some systems.

This change mocks out processutils.execute to return what is expected
for this test case.

Change-Id: I67f26cfd3157813758de7785157a21ebe5230833
Closes-bug: 1361287
cinder/tests/test_ibmnas.py