Lines Matching refs:dc
47 import pkg.depotcontroller as dc
124 self.assertTrue(self.dc.is_alive())
125 self.assertTrue(self.dc.is_alive())
126 self.assertTrue(self.dc.is_alive())
127 self.assertTrue(self.dc.is_alive())
131 self.dc.stop()
133 self.dc.start()
134 self.assertTrue(self.dc.is_alive())
135 self.dc.stop()
136 self.assertTrue(not self.dc.is_alive())
138 self.dc.start()
147 durl = self.dc.get_depot_url()
177 durl = self.dc.get_depot_url()
183 durl = self.dc.get_depot_url()
184 depotpath = self.dc.get_repodir()
199 self.dc.stop()
200 self.dc.start()
208 depot_url = self.dc.get_depot_url()
217 durl = self.dc.get_depot_url()
233 depot_url = self.dc.get_depot_url()
252 depot_url = self.dc.get_depot_url();
328 depot_url = self.dc.get_depot_url()
335 depot_file_url = "file://{0}".format(self.dc.get_repodir())
342 self.dc.refresh()
351 depot_url = self.dc.get_depot_url()
375 opath = self.dc.get_repodir()
376 self.dc.set_repodir(dpath)
379 self.dc.set_readonly()
380 self.dc.stop()
381 self.dc.start_expected_fail()
382 self.assertTrue(not self.dc.is_alive())
386 self.dc.set_readonly()
387 self.dc.start_expected_fail()
388 self.assertTrue(not self.dc.is_alive())
393 self.dc.set_readwrite()
394 self.dc.start()
395 self.assertTrue(self.dc.is_alive())
396 self.dc.stop()
397 self.assertTrue(not self.dc.is_alive())
402 self.dc.set_readwrite()
403 wr_start, wr_end = self.dc.get_wrapper()
406 self.dc.set_wrapper([su_wrap], su_end)
407 self.dc.start_expected_fail(exit=1)
410 self.dc.set_wrapper(wr_start, wr_end)
411 self.assertTrue(not self.dc.is_alive())
415 self.dc.set_readwrite()
416 self.dc.start()
417 self.assertTrue(self.dc.is_alive())
418 self.dc.stop()
419 self.assertTrue(not self.dc.is_alive())
423 self.dc.set_readonly()
424 self.dc.start()
425 self.assertTrue(self.dc.is_alive())
426 self.dc.stop()
427 self.assertTrue(not self.dc.is_alive())
431 self.dc.set_repodir(opath)
437 durl = self.dc.get_depot_url()
440 self.dc.stop()
441 self.dc.start()
448 durl = self.dc.get_depot_url()
458 if self.dc.started:
459 self.dc.stop()
463 lsrc = self.dc.get_repodir()
466 self.dc.set_repodir(ltarget)
467 self.dc.start()
471 self.dc.stop()
472 self.dc.set_repodir(lsrc)
473 self.dc.start()
480 depot_url = self.dc.get_depot_url()
494 if self.dc.started:
495 self.dc.stop()
497 depot_url = self.dc.get_depot_url()
500 self.dc.set_repodir(repopath)
505 self.dc.start()
518 self.__dc = dc.DepotController()
805 self.dc.clear_property("publisher", "prefix")
908 self.dc.set_property("publisher", "prefix", pub)
927 repodir = self.dc.get_repodir()
928 durl = self.dc.get_depot_url()
933 self.create_repo(self.dc.get_repodir())
938 self.dc.set_readwrite()
939 self.dc.start()
942 self.dc.stop()
946 getattr(self.dc, set_method)()
948 self.dc.start()
973 self.dc.stop()
975 getattr(self.dc, unset_method)()
980 rpath = self.dc.get_repodir()
997 repo = self.dc.get_repo()
1021 self.dc.start()
1023 durl = self.dc.get_depot_url()
1065 self.dc.start()
1068 durl = self.dc.get_depot_url()
1116 self.dc.start()
1118 durl = self.dc.get_depot_url()
1123 self.wait_repo(self.dc.get_repodir())
1178 self.dc.start()
1181 durl = self.dc.get_depot_url()
1199 self.dc.set_address("::1")
1200 self.dc.set_port(self.next_free_port)
1201 self.dc.start()
1202 self.assertTrue(self.dc.is_alive())
1203 self.assertTrue(self.dc.is_alive())
1204 self.assertTrue(self.dc.is_alive())
1207 durl = self.dc.get_depot_url()
1214 if self.dc.started:
1215 self.dc.stop()