Revision 47aa6ec9

b/qa/qa_config.py
245 245
    """Validates loaded configuration data.
246 246

  
247 247
    """
248
    if not self.get("name"):
249
      raise qa_error.Error("Cluster name is required")
250

  
248 251
    if not self.get("nodes"):
249 252
      raise qa_error.Error("Need at least one node")
250 253

  
b/test/py/qa.qa_config_unittest.py
174 174

  
175 175
    check_fn = compat.partial(self._CheckLoadError, filename, testconfig)
176 176

  
177
    # No cluster name
178
    check_fn("Cluster name is required")
179

  
180
    testconfig["name"] = "cluster.example.com"
181

  
177 182
    # No nodes
178 183
    check_fn("Need at least one node")
179 184

  

Also available in: Unified diff