Test “gnt-node volumes”.
authorMichael Hanselmann <hansmi@google.com>
Fri, 31 Aug 2007 15:36:47 +0000 (15:36 +0000)
committerMichael Hanselmann <hansmi@google.com>
Fri, 31 Aug 2007 15:36:47 +0000 (15:36 +0000)
Reviewed-by: iustinp

testing/ganeti.qa.py
testing/qa-sample.yaml

index cb45f2f..f202e9f 100755 (executable)
@@ -441,6 +441,13 @@ def TestNodeInfo():
   cmd = ['gnt-node', 'info']
   AssertEqual(StartSSH(GetMasterNode()['primary'],
                        utils.ShellQuoteArgs(cmd)).wait(), 0)
+
+
+def TestNodeVolumes():
+  """gnt-node volumes"""
+  cmd = ['gnt-node', 'volumes']
+  AssertEqual(StartSSH(GetMasterNode()['primary'],
+                       utils.ShellQuoteArgs(cmd)).wait(), 0)
 # }}}
 
 # {{{ Instance tests
@@ -651,7 +658,6 @@ def TestUploadKnownHostsFile(localpath):
     AssertEqual(StartSSH(master['primary'],
                          utils.ShellQuoteArgs(cmd)).wait(), 0)
     raise
-
 # }}}
 
 # {{{ Main program
@@ -732,6 +738,9 @@ if __name__ == '__main__':
       if TestEnabled('instance-consecutive-failures'):
         RunTest(TestInstanceConsecutiveFailures, node, instance)
 
+      if TestEnabled('node-volumes'):
+        RunTest(TestNodeVolumes)
+
       RunTest(TestInstanceRemove, instance)
       del instance
 
@@ -743,6 +752,9 @@ if __name__ == '__main__':
       if TestEnabled('instance-info'):
         RunTest(TestInstanceInfo, instance)
 
+      if TestEnabled('node-volumes'):
+        RunTest(TestNodeVolumes)
+
       RunTest(TestInstanceRemove, instance)
       del instance
 
@@ -759,6 +771,9 @@ if __name__ == '__main__':
         if TestEnabled('instance-failover'):
           RunTest(TestInstanceFailover, instance)
 
+        if TestEnabled('node-volumes'):
+          RunTest(TestNodeVolumes)
+
         RunTest(TestInstanceRemove, instance)
         del instance
       finally:
index 53ab426..4a7f9ba 100644 (file)
@@ -34,6 +34,7 @@ tests:
   cluster-destroy: True
 
   node-info: True
+  node-volumes: True
 
   instance-add-plain-disk: True
   instance-add-local-mirror-disk: True