new composition flow working e2e, some rough edges
This commit is contained in:
parent
92409c321c
commit
9eab4cfa0d
@ -9,6 +9,7 @@ STAGE_WELCOME = 'Welcome'
|
|||||||
STAGE_CONFIG_COMPOSITION = 'Configure'
|
STAGE_CONFIG_COMPOSITION = 'Configure'
|
||||||
STAGE_RUN_TEST = 'Run'
|
STAGE_RUN_TEST = 'Run'
|
||||||
|
|
||||||
|
|
||||||
class Welcome(param.Parameterized):
|
class Welcome(param.Parameterized):
|
||||||
composition = param.Parameter()
|
composition = param.Parameter()
|
||||||
composition_picker = pn.widgets.FileInput(accept='.toml')
|
composition_picker = pn.widgets.FileInput(accept='.toml')
|
||||||
|
@ -125,6 +125,8 @@ class Global(Base):
|
|||||||
cases = [tc['name'] for tc in manifest['testcases']]
|
cases = [tc['name'] for tc in manifest['testcases']]
|
||||||
self.param['case'].objects = cases
|
self.param['case'].objects = cases
|
||||||
print('global config updated manifest. cases:', self.param['case'].objects)
|
print('global config updated manifest. cases:', self.param['case'].objects)
|
||||||
|
if len(cases) != 0:
|
||||||
|
self.case = cases[0]
|
||||||
|
|
||||||
|
|
||||||
class Resources(Base):
|
class Resources(Base):
|
||||||
@ -149,9 +151,9 @@ class Build(Base):
|
|||||||
|
|
||||||
class Group(Base):
|
class Group(Base):
|
||||||
id = param.String()
|
id = param.String()
|
||||||
instances = param.Parameter(Instances, precedence=-1)
|
instances = param.Parameter(Instances(), precedence=-1)
|
||||||
resources = param.Parameter(Resources, allow_None=True, precedence=-1)
|
resources = param.Parameter(Resources(), allow_None=True, precedence=-1)
|
||||||
build = param.Parameter(Build, precedence=-1)
|
build = param.Parameter(Build(), precedence=-1)
|
||||||
params = param.Parameter(precedence=-1)
|
params = param.Parameter(precedence=-1)
|
||||||
|
|
||||||
def __init__(self, params_class=None, **params):
|
def __init__(self, params_class=None, **params):
|
||||||
@ -265,7 +267,7 @@ class Composition(param.Parameterized):
|
|||||||
return cls
|
return cls
|
||||||
|
|
||||||
def _add_group(self, *args):
|
def _add_group(self, *args):
|
||||||
g = Group(id='New Group', params_class=self._params_class_for_current_testcase())
|
g = Group(id='new-group', params_class=self._params_class_for_current_testcase())
|
||||||
groups = self.param['groups'].objects
|
groups = self.param['groups'].objects
|
||||||
groups.append(g)
|
groups.append(g)
|
||||||
self.param['groups'].objects = groups
|
self.param['groups'].objects = groups
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user