Revision fe508a9d qa/qa_group.py

b/qa/qa_group.py
33 33
from qa_utils import AssertCommand, AssertEqual, GetCommandOutput
34 34

  
35 35

  
36
def GetDefaultGroup():
37
  """Returns the default node group.
38

  
39
  """
40
  groups = qa_config.get("groups", {})
41
  return groups.get("group-with-nodes", constants.INITIAL_NODE_GROUP_NAME)
42

  
43

  
36 44
def TestGroupAddRemoveRename():
37 45
  """gnt-group add/remove/rename"""
38 46
  groups = qa_config.get("groups", {})
39 47

  
40
  existing_group_with_nodes = groups.get("group-with-nodes",
41
                                         constants.INITIAL_NODE_GROUP_NAME)
48
  existing_group_with_nodes = GetDefaultGroup()
49

  
42 50
  group1, group2, group3 = groups.get("inexistent-groups",
43 51
                                      ["group1", "group2", "group3"])[:3]
44 52

  

Also available in: Unified diff