2 from Remote import Remote
3 from Table import Table
5 class Slice(dict, Remote):
8 'plcs': ['TestPLC'], # which plc does this slice belong to
10 'instantiation': 'plc-instantiated',
12 'description': 'blank',
14 'key': None, # any valid ssh key
15 'nodes': [], # nodes where this slice runs
16 'persons': [], # persons on this slice
17 'tests_path': '/usr/share/tests/',
18 'tests': [], # which test to run. None or empty list means run all
21 def __init__(self, config, fields = {}):
23 dict.__init__(self, self.fields)
30 def __init__(self, config, slices):
31 slicelist = [Slice(config, slice) for slice in slices]
32 Table.__init__(self, slicelist)