Revision 8ccbbe4b qa/qa_cluster.py

b/qa/qa_cluster.py
257 257
def TestClusterModifyBe():
258 258
  """gnt-cluster modify -B"""
259 259
  for fail, cmd in [
260
    # mem
261
    (False, ["gnt-cluster", "modify", "-B", "memory=256"]),
262
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *memory: 256$'"]),
263
    (True, ["gnt-cluster", "modify", "-B", "memory=a"]),
264
    (False, ["gnt-cluster", "modify", "-B", "memory=128"]),
265
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *memory: 128$'"]),
260
    # max/min mem
261
    (False, ["gnt-cluster", "modify", "-B", "maxmem=256"]),
262
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *maxmem: 256$'"]),
263
    (False, ["gnt-cluster", "modify", "-B", "minmem=256"]),
264
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *minmem: 256$'"]),
265
    (True, ["gnt-cluster", "modify", "-B", "maxmem=a"]),
266
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *maxmem: 256$'"]),
267
    (True, ["gnt-cluster", "modify", "-B", "minmem=a"]),
268
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *minmem: 256$'"]),
269
    (False, ["gnt-cluster", "modify", "-B", "maxmem=128,minmem=128"]),
270
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *maxmem: 128$'"]),
271
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *minmem: 128$'"]),
266 272
    # vcpus
267 273
    (False, ["gnt-cluster", "modify", "-B", "vcpus=4"]),
268 274
    (False, ["sh", "-c", "gnt-cluster info|grep '^ *vcpus: 4$'"]),

Also available in: Unified diff