Revision 7c8ae421 qa/ganeti-qa.py

b/qa/ganeti-qa.py
524 524

  
525 525
def _BuildSpecDict(par, mn, st, mx):
526 526
  return {
527
    "min": {par: mn},
528
    "max": {par: mx},
529
    "std": {par: st},
527
    constants.ISPECS_MINMAX: [{
528
      constants.ISPECS_MIN: {par: mn},
529
      constants.ISPECS_MAX: {par: mx},
530
      }],
531
    constants.ISPECS_STD: {par: st},
530 532
    }
531 533

  
532 534

  
......
539 541

  
540 542
  # This test assumes that the group policy is empty
541 543
  (_, old_specs) = qa_cluster.TestClusterSetISpecs()
544
  # We also assume to have only one min/max bound
545
  assert len(old_specs[constants.ISPECS_MINMAX]) == 1
542 546
  node = qa_config.AcquireNode()
543 547
  try:
544 548
    # Log of policy changes, list of tuples:

Also available in: Unified diff