Statistics
| Branch: | Tag: | Revision:

root / qa / qa_job.py @ e8b919a1

History | View | Annotate | Download (1.1 kB)

1 09470dd8 Michael Hanselmann
#
2 09470dd8 Michael Hanselmann
#
3 09470dd8 Michael Hanselmann
4 09470dd8 Michael Hanselmann
# Copyright (C) 2012 Google Inc.
5 09470dd8 Michael Hanselmann
#
6 09470dd8 Michael Hanselmann
# This program is free software; you can redistribute it and/or modify
7 09470dd8 Michael Hanselmann
# it under the terms of the GNU General Public License as published by
8 09470dd8 Michael Hanselmann
# the Free Software Foundation; either version 2 of the License, or
9 09470dd8 Michael Hanselmann
# (at your option) any later version.
10 09470dd8 Michael Hanselmann
#
11 09470dd8 Michael Hanselmann
# This program is distributed in the hope that it will be useful, but
12 09470dd8 Michael Hanselmann
# WITHOUT ANY WARRANTY; without even the implied warranty of
13 09470dd8 Michael Hanselmann
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 09470dd8 Michael Hanselmann
# General Public License for more details.
15 09470dd8 Michael Hanselmann
#
16 09470dd8 Michael Hanselmann
# You should have received a copy of the GNU General Public License
17 09470dd8 Michael Hanselmann
# along with this program; if not, write to the Free Software
18 09470dd8 Michael Hanselmann
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 09470dd8 Michael Hanselmann
# 02110-1301, USA.
20 09470dd8 Michael Hanselmann
21 09470dd8 Michael Hanselmann
22 09470dd8 Michael Hanselmann
"""Job-related QA tests.
23 09470dd8 Michael Hanselmann

24 09470dd8 Michael Hanselmann
"""
25 09470dd8 Michael Hanselmann
26 09470dd8 Michael Hanselmann
from ganeti import query
27 09470dd8 Michael Hanselmann
28 09470dd8 Michael Hanselmann
import qa_utils
29 09470dd8 Michael Hanselmann
30 09470dd8 Michael Hanselmann
31 09470dd8 Michael Hanselmann
def TestJobList():
32 09470dd8 Michael Hanselmann
  """gnt-job list"""
33 6d1e4845 Michael Hanselmann
  qa_utils.GenericQueryTest("gnt-job", query.JOB_FIELDS.keys(),
34 6d1e4845 Michael Hanselmann
                            namefield="id", test_unknown=False)
35 09470dd8 Michael Hanselmann
36 09470dd8 Michael Hanselmann
37 09470dd8 Michael Hanselmann
def TestJobListFields():
38 09470dd8 Michael Hanselmann
  """gnt-node list-fields"""
39 09470dd8 Michael Hanselmann
  qa_utils.GenericQueryFieldsTest("gnt-job", query.JOB_FIELDS.keys())