root / qa / qa_group.py @ 4b784cf8
History | View | Annotate | Download (1 kB)
1 | 30131294 | Adeodato Simo | #
|
---|---|---|---|
2 | 30131294 | Adeodato Simo | #
|
3 | 30131294 | Adeodato Simo | |
4 | 30131294 | Adeodato Simo | # Copyright (C) 2010 Google Inc.
|
5 | 30131294 | Adeodato Simo | #
|
6 | 30131294 | Adeodato Simo | # This program is free software; you can redistribute it and/or modify
|
7 | 30131294 | Adeodato Simo | # it under the terms of the GNU General Public License as published by
|
8 | 30131294 | Adeodato Simo | # the Free Software Foundation; either version 2 of the License, or
|
9 | 30131294 | Adeodato Simo | # (at your option) any later version.
|
10 | 30131294 | Adeodato Simo | #
|
11 | 30131294 | Adeodato Simo | # This program is distributed in the hope that it will be useful, but
|
12 | 30131294 | Adeodato Simo | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 | 30131294 | Adeodato Simo | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 | 30131294 | Adeodato Simo | # General Public License for more details.
|
15 | 30131294 | Adeodato Simo | #
|
16 | 30131294 | Adeodato Simo | # You should have received a copy of the GNU General Public License
|
17 | 30131294 | Adeodato Simo | # along with this program; if not, write to the Free Software
|
18 | 30131294 | Adeodato Simo | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
19 | 30131294 | Adeodato Simo | # 02110-1301, USA.
|
20 | 30131294 | Adeodato Simo | |
21 | 30131294 | Adeodato Simo | |
22 | 30131294 | Adeodato Simo | from qa_utils import AssertCommand |
23 | 30131294 | Adeodato Simo | |
24 | 30131294 | Adeodato Simo | |
25 | 30131294 | Adeodato Simo | def TestGroupListDefaultFields(): |
26 | 30131294 | Adeodato Simo | """gnt-group list"""
|
27 | 30131294 | Adeodato Simo | AssertCommand(["gnt-group", "list"]) |
28 | 30131294 | Adeodato Simo | |
29 | 30131294 | Adeodato Simo | |
30 | 30131294 | Adeodato Simo | def TestGroupListAllFields(): |
31 | 30131294 | Adeodato Simo | """gnt-group list -o FIELDS"""
|
32 | 30131294 | Adeodato Simo | AssertCommand(["gnt-group", "list", "-o", |
33 | 30131294 | Adeodato Simo | "name,uuid,node_cnt,node_list,pinst_cnt,pinst_list"]) |