def create_jobs(api_type): g1_components = range(1) g2_components = range(2) g3_components = range(2) component_groups = OrderedDict((('g1', g1_components), ('g2', g2_components), ('g3', g3_components))) api = api_select.api(__file__, api_type) def job(name, expect_order, params=None): api.job(name, exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=expect_order, params=params) api.flow_job() job('prepare', 1) for gname, group in component_groups.items(): for component in group: job('deploy_component_' + gname + '_' + str(component), 2) job('report_deploy', 3) job('prepare_tests', 3) job('test_ui', 4) job('test_x', 4) for gname, group in component_groups.items(): for component in group: job('test_component_' + gname + '_' + str(component), 5) job('report', 6, params=(('s1', 'tst_regression', 'desc'), ('c1', ('complete', 'partial'), 'desc'))) job('promote', 7) return api
def create_jobs(): g1_components = range(1) g2_components = range(2) g3_components = range(2) component_groups = OrderedDict((('g1', g1_components), ('g2', g2_components), ('g3', g3_components))) api = api_select.api(__file__) def job(name, expect_order, params=None): api.job(name, exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=expect_order, params=params) api.flow_job() job('prepare', 1) for gname, group in component_groups.items(): for component in group: job('deploy_component_' + gname + '_' + str(component), 2) job('report_deploy', 3) job('prepare_tests', 3) job('test_ui', 4) job('test_x', 4) for gname, group in component_groups.items(): for component in group: job('test_component_' + gname + '_' + str(component), 5) job('report', 6, params=(('s1', 'tst_regression', 'desc'), ('c1', ('complete', 'partial'), 'desc'))) job('promote', 7) return api
def create_jobs(api_type): api = api_select.api(__file__, api_type) api.flow_job() api.job('passwd_args', exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=1, params=(('s1', 'no-secret', 'desc'), ('passwd', 'p2', 'desc'), ('PASS', 'p3', 'desc'))) return api
def create_jobs(api_type): api = api_select.api(__file__, api_type) def job(name, expect_order): api.job(name, exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=expect_order, params=None) api.flow_job() job('quick1', 1) index = 0 for index in 1, 2, 3: job('x_quick2-' + str(index), 1+index) job('quick3', 2+index) job('y_z_quick4', 3+index) job('y_quick5', 3+index) return api
def create_jobs(api_type): api = api_select.api(__file__, api_type) def job(name, expect_order, params=None): api.job(name, exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=expect_order, params=params) api.flow_job() job('prepare', 1) job('deploy_component', 2) job('report_deploy', 3) job('prepare_tests', 3) job('test_x', 4) job('test_y', 4) job('report', 6, params=(('s1', 'tst_regression', 'desc'), ('c1', ('complete', 'partial'), 'desc'))) return api
def create_jobs(): api = api_select.api(__file__) def job(name, exec_time, max_fails=0, expect_order=0, expect_invocations=1, params=None): api.job(name, exec_time=exec_time, max_fails=max_fails, expect_invocations=expect_invocations, expect_order=expect_order, params=params) api.flow_job() job('wait1-1', 1, 0, 1) job('wait2', 2, 0, 2) job('wait5-2a', 5, 0, 2) job('quick_fail-2', 0.1, 1, 2, params=(('s1', 'WORLD', 'desc'), ('c1', ('maybe', 'certain'), 'desc'))) job('wait5-2b', 5, 0, 2) job('wait5-2c', 5, 0, 2) job('quick_fail-1', 0.5, 1, 2, params=(('s1', 'WORLD', 'desc'), ('c1', ('to', 'be', 'or', 'not'), 'desc'))) job('quick', 0.5, 0, 2, expect_invocations=0, params=(('s1', 'WORLD', 'desc'), ('c1', ('maybe', 'certain'), 'desc'))) job('wait1-2', 1, 0, 3, expect_invocations=0) return api
def create_jobs(api_type): api = api_select.api(__file__, api_type) def job(name, expect_order): api.job(name, exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=expect_order, params=None) api.flow_job() job('quick1', 1) index = 0 for index in 1, 2, 3: job('x_quick2-' + str(index), 1 + index) job('quick3', 2 + index) job('y_z_quick4', 3 + index) job('y_quick5', 3 + index) return api
def create_jobs(api_type): api = api_select.api(__file__, api_type) def job(name, exec_time, max_fails=0, expect_order=0, expect_invocations=1, params=None): api.job(name, exec_time=exec_time, max_fails=max_fails, expect_invocations=expect_invocations, expect_order=expect_order, params=params) api.flow_job() job('wait1-1', 1, 0, 1) job('wait2', 2, 0, 2) job('wait5-2a', 5, 0, 2) job('quick_fail-2', 0.1, 1, 2, params=(('s1', 'WORLD', 'desc'), ('c1', ('maybe', 'certain'), 'desc'))) job('wait5-2b', 5, 0, 2) job('wait5-2c', 5, 0, 2) job('quick_fail-1', 0.5, 1, 2, params=(('s1', 'WORLD', 'desc'), ('c1', ('to', 'be', 'or', 'not'), 'desc'))) job('quick', 0.5, 0, 2, expect_invocations=0, params=(('s1', 'WORLD', 'desc'), ('c1', ('maybe', 'certain'), 'desc'))) job('wait1-2', 1, 0, 3, expect_invocations=0) return api
def create_jobs(): api = api_select.api(__file__) api.flow_job() api.job('passwd_args', exec_time=0.5, max_fails=0, expect_invocations=1, expect_order=1, params=(('s1', 'no-secret', 'desc'), ('passwd', 'p2', 'desc'), ('PASS', 'p3', 'desc'))) return api