From: Tony Mack Date: Tue, 13 May 2008 00:59:06 +0000 (+0000) Subject: updated 'fields' X-Git-Tag: tests-4.2-4~19 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=b1a92697a77d0e53f7ae7b3673afc5d120d0be0b;p=tests.git updated 'fields' --- diff --git a/qaapi/qa/Slices.py b/qaapi/qa/Slices.py index f16919b..9bac1dc 100644 --- a/qaapi/qa/Slices.py +++ b/qaapi/qa/Slices.py @@ -5,13 +5,16 @@ from Table import Table class Slice(dict, Remote): fields = { - 'plcs': ['TestPLC'], + 'plcs': ['TestPLC'], # which plc does this slice belong to 'name': None, 'instantiation': 'plc-instantiated', 'max_nodes': 1000, 'description': 'blank', 'url': None, - 'key': None + 'key': None, # any valid ssh key + 'nodes': [], # nodes where this slice runs + 'tests_path': '/usr/share/tests/', + 'tests': [] # which test to run. None or empty list means run all } def __init__(self, fields = {}): @@ -20,7 +23,7 @@ class Slice(dict, Remote): self.update(fields) -class Slices(list, Table): +class Slices(Table): def __init__(self, slices): slicelist = [Slice(slice) for slice in slices] - list.__init__(self, slicelist) + Table.__init__(self, slicelist)