Skip to content
Snippets Groups Projects
Commit 286b7335 authored by Iustin Pop's avatar Iustin Pop
Browse files

Add a simple QA test for gnt-node list-drbd


This will be run only if 'haskell-confd' QA configuration has been
enabled.

Signed-off-by: default avatarIustin Pop <iustin@google.com>
Reviewed-by: default avatarAgata Murawska <agatamurawska@google.com>
parent 7acbda7b
No related branches found
No related tags found
No related merge requests found
...@@ -490,6 +490,8 @@ def RunQa(): ...@@ -490,6 +490,8 @@ def RunQa():
snode = qa_config.AcquireNode(exclude=pnode) snode = qa_config.AcquireNode(exclude=pnode)
try: try:
instance = RunTest(func, pnode, snode) instance = RunTest(func, pnode, snode)
RunTestIf("haskell-confd", qa_node.TestNodeListDrbd, pnode)
RunTestIf("haskell-confd", qa_node.TestNodeListDrbd, snode)
RunCommonInstanceTests(instance) RunCommonInstanceTests(instance)
RunGroupListTests() RunGroupListTests()
RunTest(qa_group.TestAssignNodesIncludingSplit, RunTest(qa_group.TestAssignNodesIncludingSplit,
......
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
"cluster-redist-conf": true, "cluster-redist-conf": true,
"cluster-repair-disk-sizes": true, "cluster-repair-disk-sizes": true,
"haskell-confd": true,
"group-list": true, "group-list": true,
"group-rwops": true, "group-rwops": true,
......
# #
# #
# Copyright (C) 2007, 2011 Google Inc. # Copyright (C) 2007, 2011, 2012 Google Inc.
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
...@@ -417,3 +417,8 @@ def TestNodeList(): ...@@ -417,3 +417,8 @@ def TestNodeList():
def TestNodeListFields(): def TestNodeListFields():
"""gnt-node list-fields""" """gnt-node list-fields"""
qa_utils.GenericQueryFieldsTest("gnt-node", query.NODE_FIELDS.keys()) qa_utils.GenericQueryFieldsTest("gnt-node", query.NODE_FIELDS.keys())
def TestNodeListDrbd(node):
"""gnt-node list-drbd"""
AssertCommand(["gnt-node", "list-drbd", node["primary"]])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment