This patch series introduces unit tests for LUNodeAdd. At first mocking of the RPC module is implemented, thanks to Thomas for his help. Secondly unit tests for the newly introduced OpenvSwitch code are implemented. Lastly there are some (not yet finished) tests for other functionality in LUNodeAdd.
Please do give me your thoughts on this topic. Any feedback is appreciated! Sebastian Gebhard (3): Mock RPC for unit tests Add unittests for OpenvSwitch in LUNodeAdd Further tests for LUNodeAdd Makefile.am | 1 + test/py/cmdlib/node_unittest.py | 131 ++++++++++++++++++++++++++ test/py/cmdlib/testsupport/cmdlib_testcase.py | 28 +++++- test/py/cmdlib/testsupport/rpc_runner_mock.py | 26 +++++ test/py/cmdlib/testsupport/util.py | 4 +- 5 files changed, 187 insertions(+), 3 deletions(-) create mode 100644 test/py/cmdlib/node_unittest.py -- 1.8.1.2
