Hi Yogesh, The best way to start writing tests is to get some examples from tests already implemented. Since icehouse release, all tests must be written with mock¹. Most of the tests on the codebase are written with the old framework (mox), please have a look on this implementations:
cinder/tests/{test_hp3par.py,test_ibmnas.py, test_netapp_eseries_iscsi.py} This² is also an implementation Im working in using mock. Kind Regards, Erlon ¹ https://github.com/openstack/cinder/blob/master/HACKING.rst ² https://review.openstack.org/#/c/84244/ On Fri, May 30, 2014 at 6:05 AM, Yogesh Prasad <yogesh.pra...@cloudbyte.com> wrote: > > Hi All, > I have developed a cinder driver. Can you please share the steps to create > an unit test environment and how to run unit test? > > *Thanks & Regards*, > Yogesh Prasad. > > _______________________________________________ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev