Revision 3c87d614
b/qa/qa_node.py | ||
---|---|---|
1 | 1 |
# |
2 | 2 |
# |
3 | 3 |
|
4 |
# Copyright (C) 2007, 2011, 2012 Google Inc. |
|
4 |
# Copyright (C) 2007, 2011, 2012, 2013 Google Inc.
|
|
5 | 5 |
# |
6 | 6 |
# This program is free software; you can redistribute it and/or modify |
7 | 7 |
# it under the terms of the GNU General Public License as published by |
... | ... | |
112 | 112 |
master = qa_config.GetMasterNode() |
113 | 113 |
|
114 | 114 |
for storage_type in constants.VALID_STORAGE_TYPES: |
115 |
|
|
116 |
cmd = ["gnt-node", "list-storage", "--storage-type", storage_type] |
|
117 |
|
|
118 |
# Skip file storage if not enabled, otherwise QA will fail; we |
|
119 |
# just test for basic failure, but otherwise skip the rest of the |
|
120 |
# tests |
|
121 |
if storage_type == constants.ST_FILE and not constants.ENABLE_FILE_STORAGE: |
|
122 |
AssertCommand(cmd, fail=True) |
|
123 |
continue |
|
124 |
|
|
115 | 125 |
# Test simple list |
116 |
AssertCommand(["gnt-node", "list-storage", "--storage-type", storage_type])
|
|
126 |
AssertCommand(cmd)
|
|
117 | 127 |
|
118 | 128 |
# Test all storage fields |
119 | 129 |
cmd = ["gnt-node", "list-storage", "--storage-type", storage_type, |
Also available in: Unified diff