Add more RAPI test utilities
authorMichael Hanselmann <hansmi@google.com>
Fri, 30 Mar 2012 14:52:30 +0000 (16:52 +0200)
committerMichael Hanselmann <hansmi@google.com>
Thu, 26 Apr 2012 19:42:49 +0000 (21:42 +0200)
commit1afa108cc28b7b549866007946241fb7714372ab
tree462c3a77163b47f623bf546fff6a02914e7d1a1d
parentd94924909859ab8cd00e48f93b599a6ad8e83868
Add more RAPI test utilities

This patch adds a mock RAPI client to test input values to methods. All
methods either raise an exception if there was a problem or return None.
Third-party code can use this to test their input values to the RAPI
client.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/rapi/testutils.py
test/ganeti.rapi.testutils_unittest.py