This patch adds a utility function to the SSH test utilities which returns all UUIDs of all nodes that the file manager is aware of.
Signed-off-by: Helga Velroyen <[email protected]> --- test/py/testutils_ssh.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/py/testutils_ssh.py b/test/py/testutils_ssh.py index a38304d..2022aa9 100644 --- a/test/py/testutils_ssh.py +++ b/test/py/testutils_ssh.py @@ -183,6 +183,14 @@ class FakeSshFileManager(object): """ return self._all_node_data.keys() + def GetAllNodeUuids(self): + """Returns all node UUIDs of the cluster. + + @rtype: list of str + @returns: list of all node UUIDs + """ + return [node.uuid for node in self._all_node_data.values()] + def GetAllPotentialMasterCandidateNodeNames(self): return [name for name, node_info in self._all_node_data.items() -- 2.6.0.rc2.230.g3dd15c0
