]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Mock calls to rpm and dpkg from NetApp unit tests
authorTom Barron <tpb@dyncloud.net>
Tue, 9 Dec 2014 09:46:29 +0000 (04:46 -0500)
committerTom Barron <tpb@dyncloud.net>
Fri, 19 Dec 2014 16:17:49 +0000 (16:17 +0000)
commitd555ca100aeb176bc021b8179d2a5cdfe10e168e
tree1eae82e03a889d16e67b687ddec696312ea1f932
parent6037adfb4ac6f1af7675666de818937e0e58e763
Mock calls to rpm and dpkg from NetApp unit tests

This patch fixes an issue wherein several NetApp unit tests ran
OS rpm or dpkg commands because the callouts to these commands
were not mocked out during driver initialization.

It also replaces 'rpm -qa' with 'rpm -q' when that command is
invoked since the latter also works and is faster.

Closes-Bug: 1393545
Change-Id: I3d5cfeb2ee39ecb6af5b312dfa6c2a585cf8e0e3
cinder/tests/test_netapp.py
cinder/tests/test_netapp_eseries_iscsi.py
cinder/tests/test_netapp_nfs.py
cinder/volume/drivers/netapp/utils.py