Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(78)  |  Call(78)  |  Derive(0)  |  Import(0)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ServiceGroupTest.py   milkcheck(Download)
        subser2 = Service('subser2')
        subser2.timeout = None
        group.add_inter_dep(target=subser1)
        group.add_inter_dep(target=subser2)
        group.inherits_from(ser)
    def test_update_target(self):
        '''Test update of the target of a group of services'''
        grp = ServiceGroup('G')
        srva = Service('A')
        grp.add_inter_dep(target=srva)
        ser1.add_action(action)
        ser1.status = ERROR
        group.add_inter_dep(target=ser1)
        group.status = DEP_ERROR
        group.reset()
        eser2 = Service('E2')
        eser3 = Service('E3')
        group.add_inter_dep(target=ser1)
        group.add_inter_dep(target=ser2)
        group.add_dep(target=eser1, parent=False)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/CoreTests.py   milkcheck(Download)
        grp1_i2.add_action(Action('status', command='/bin/true'))
        grp1_i3.add_action(Action('start', command='/bin/true'))
        grp1.add_inter_dep(target=grp1_i1)
        grp1.add_inter_dep(base=grp1_i1, target=grp1_i2, sgth=CHECK)
        grp1.add_inter_dep(target=grp1_i3)
        grp2_i1.add_action(Action('start', command='/bin/false'))
        grp2_i2.add_action(Action('start', command='/bin/true'))
        grp2.add_inter_dep(target=grp2_i1)
        grp2.add_inter_dep(base=grp2_i1, target=grp2_i2)
 

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/UITests/CliTest.py   milkcheck(Download)
        svc3.add_dep(target=group1)
        inter2.add_dep(inter1)
        group1.add_inter_dep(target=inter1)
        group1.add_inter_dep(target=inter2)
 
 
        # Build graph
        group.add_inter_dep(target=service)
 
        # Register services within the manager