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

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

src/m/i/milkcheck-HEAD/lib/MilkCheck/Engine/ServiceGroup.py   milkcheck(Download)
        self._source = Service('source')
        self._source.simulate = True
        self._source.add_dep(target=self, parent=False)
        del self.parents['source']
        self._sink = Service('sink')
            for service in self.iter_subservices():
                if not service.children:
                    service.add_dep(self._source, parent=False)
                if not service.parents:
                    service.add_dep(self._sink)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/ServiceManagerTest.py   milkcheck(Download)
        s3 = Service('S3')
        s4 = Service('S4')
        s1.add_dep(target=s2)
        s2.add_dep(target=s3)
        s2.add_dep(target=s4)
        s3.add_action(Action('start', command='/bin/true'))
        s4.add_action(Action('start', command='/bin/true'))
        s1.add_dep(target=s2)
        s2.add_dep(target=s3)
        s2.add_dep(target=s4)

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/UITests/CliTest.py   milkcheck(Download)
 
        # Build graph
        svc1.add_dep(target=svc2)
        svc1.add_dep(target=svc3)
        svc3.add_dep(target=group1)
        inter2.add_dep(inter1)
 
        # Register services within the manager
        svc_ok.add_dep(target=svc_warn, sgth=REQUIRE_WEAK)
        self.manager.register_services(svc_warn, svc_ok)
 

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ServiceTest.py   milkcheck(Download)
        serv_dep = Service('dependency')
        serv_dep.add_action(start2)
        serv_test.add_dep(serv_dep)
 
        # Start preparing of the base service
        serv_depb.add_action(start3)
 
        serv_test.add_dep(serv_depa)
        serv_test.add_dep(serv_depb)
 
        serv_depb.status = SKIPPED
 
        serv_test.add_dep(serv_depa)
        serv_test.add_dep(serv_depb)
 

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ServiceGroupTest.py   milkcheck(Download)
        serv_b.add_action(act_suc1)
        serv_c.add_action(act_suc2)
        serv.add_dep(serv_a)
        serv_a.add_dep(target=serv_b)
        serv_a.add_inter_dep(target=serv_c)
        s1 = Service('S1')
        s1.add_action(Action('stop', command='/bin/true'))
        s1.add_dep(target=group)
        s1.algo_reversed = True
        group.algo_reversed = True

src/m/i/milkcheck-HEAD/tests/MilkCheckTests/EngineTests/ActionTest.py   milkcheck(Download)
        svc.add_action(Action('start', target=HOSTNAME, command=':'))
 
        svc.add_dep(dep)
        svc.run('start')