Exemplo n.º 1
0
 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     self.master.loadConfig(geturl_config)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
Exemplo n.º 2
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["b1"])
     d.addCallback(lambda res: self.connectSlave(["b1"], "bot2"))
     return d
Exemplo n.º 3
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(
         ["slowpass", "fastfail", "fastpass", "b3", "b4", "b5"])
     return d
Exemplo n.º 4
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["slowpass", "fastfail", "fastpass",
                            "b3", "b4", "b5"])
     return d
Exemplo n.º 5
0
 def setUp(self):
     warnings.filterwarnings("ignore", category=DeprecationWarning)
     RunMixin.setUp(self)
     self.master.loadConfig(geturl_config)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
     d = self.connectSlave(["b1"])
     d.addCallback(lambda res: self.connectSlave(["b1"], "bot2"))
     return d
Exemplo n.º 7
0
 def boto_setUp1(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.boto = boto = Boto(self)
     if 'boto' not in sys.modules:
         sys.modules['boto'] = boto
         sys.modules['boto.exception'] = boto.exception
     if 'buildbot.ec2buildslave' in sys.modules:
         sys.modules['buildbot.ec2buildslave'].boto = boto
Exemplo n.º 8
0
 def boto_setUp1(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.boto = boto = Boto(self)
     if 'boto' not in sys.modules:
         sys.modules['boto'] = boto
         sys.modules['boto.exception'] = boto.exception
     if 'buildbot.ec2buildslave' in sys.modules:
         sys.modules['buildbot.ec2buildslave'].boto = boto
Exemplo n.º 9
0
 def setUp(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.master.loadConfig(latent_config)
     self.master.startService()
     self.bot1 = self.master.botmaster.slaves['bot1']
     self.bot2 = self.master.botmaster.slaves['bot2']
     self.bot3 = self.master.botmaster.slaves['bot3']
     self.bot1.testcase = self
     self.bot2.testcase = self
     self.b1 = self.master.botmaster.builders['b1']
Exemplo n.º 10
0
 def setUp(self):
     # debugging
     #import twisted.internet.base
     #twisted.internet.base.DelayedCall.debug = True
     # debugging
     RunMixin.setUp(self)
     self.master.loadConfig(latent_config)
     self.master.startService()
     self.bot1 = self.master.botmaster.slaves['bot1']
     self.bot2 = self.master.botmaster.slaves['bot2']
     self.bot3 = self.master.botmaster.slaves['bot3']
     self.bot1.testcase = self
     self.bot2.testcase = self
     self.b1 = self.master.botmaster.builders['b1']
Exemplo n.º 11
0
 def setUp(self):
     RunMixin.setUp(self)
     self.req1 = req1 = BuildRequest("forced build", SourceStamp())
     req1.number = 1
     self.req2 = req2 = BuildRequest("forced build", SourceStamp())
     req2.number = 2
     self.req3 = req3 = BuildRequest("forced build", SourceStamp())
     req3.number = 3
     req1.events = req2.events = req3.events = self.events = []
     d = self.master.loadConfig(config_1)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlaves(["bot1", "bot2"], [
         "full1a", "full1b", "full1c", "full1d", "full2a", "full2b"
     ]))
     return d
Exemplo n.º 12
0
 def setUp(self):
     N = 'test_builder'
     RunMixin.setUp(self)
     self.reqs = [BuildRequest("forced build", SourceStamp(), N)
                  for i in range(4)]
     self.events = []
     for i in range(4):
         self.reqs[i].number = i
         self.reqs[i].events = self.events
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlaves(["bot1", "bot2"],
                                                  ["excl_A", "excl_B",
                                                   "count_A", "count_B"]))
     return d
Exemplo n.º 13
0
 def setUp(self):
     RunMixin.setUp(self)
     self.req1 = req1 = BuildRequest("forced build", SourceStamp())
     req1.number = 1
     self.req2 = req2 = BuildRequest("forced build", SourceStamp())
     req2.number = 2
     self.req3 = req3 = BuildRequest("forced build", SourceStamp())
     req3.number = 3
     req1.events = req2.events = req3.events = self.events = []
     d = self.master.loadConfig(config_1)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlaves(["bot1", "bot2"],
                                                  ["full1a", "full1b",
                                                   "full1c", "full1d",
                                                   "full2a", "full2b"]))
     return d
Exemplo n.º 14
0
 def setUp(self):
     N = 'test_builder'
     RunMixin.setUp(self)
     self.reqs = [
         BuildRequest("forced build", SourceStamp(), N) for i in range(4)
     ]
     self.events = []
     for i in range(4):
         self.reqs[i].number = i
         self.reqs[i].events = self.events
     d = self.master.loadConfig(self.config)
     d.addCallback(lambda res: self.master.startService())
     d.addCallback(lambda res: self.connectSlave(
         ["excl_A", "excl_B", "count_A", "count_B"], "bot1"))
     d.addCallback(lambda res: self.connectSlave(
         ["excl_A", "excl_B", "count_A", "count_B"], "bot2"))
     return d
Exemplo n.º 15
0
    def setUp(self):
        RunMixin.setUp(self)
        # verify that disconnecting the slave during a build properly
        # terminates the build
        m = self.master
        s = self.status
        c = self.control

        m.loadConfig(config_2)
        m.readConfig = True
        m.startService()

        self.failUnlessEqual(s.getBuilderNames(), ["dummy", "testdummy"])
        self.s1 = s1 = s.getBuilder("dummy")
        self.failUnlessEqual(s1.getName(), "dummy")
        self.failUnlessEqual(s1.getState(), ("offline", []))
        self.failUnlessEqual(s1.getCurrentBuilds(), [])
        self.failUnlessEqual(s1.getLastFinishedBuild(), None)
        self.failUnlessEqual(s1.getBuild(-1), None)

        d = self.connectSlaveFastTimeout()
        d.addCallback(self._setup_disconnect2_1)
        return d
Exemplo n.º 16
0
    def setUp(self):
        RunMixin.setUp(self)
        # verify that disconnecting the slave during a build properly
        # terminates the build
        m = self.master
        s = self.status
        c = self.control

        m.loadConfig(config_2)
        m.readConfig = True
        m.startService()

        self.failUnlessEqual(s.getBuilderNames(), ["dummy", "testdummy"])
        self.s1 = s1 = s.getBuilder("dummy")
        self.failUnlessEqual(s1.getName(), "dummy")
        self.failUnlessEqual(s1.getState(), ("offline", []))
        self.failUnlessEqual(s1.getCurrentBuilds(), [])
        self.failUnlessEqual(s1.getLastFinishedBuild(), None)
        self.failUnlessEqual(s1.getBuild(-1), None)

        d = self.connectSlaveFastTimeout()
        d.addCallback(self._setup_disconnect2_1)
        return d
Exemplo n.º 17
0
 def setUp(self):
     self._db = connection.creation.create_test_db()
     return RunMixin.setUp(self)
Exemplo n.º 18
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_test_builder)
     self.master.readConfig = True
     self.master.startService()
     self.connectSlave(builders=["dummy", "dummy2", "dummy3"])
Exemplo n.º 19
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(version_config)
     self.master.startService()
     d = self.connectSlave(["quick"])
     return d
Exemplo n.º 20
0
 def setUp(self):
   self._db = connection.creation.create_test_db()
   return RunMixin.setUp(self)
Exemplo n.º 21
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()
Exemplo n.º 22
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_3)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
Exemplo n.º 23
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_3)
     self.master.startService()
     d = self.connectSlave(["b1"])
     return d
Exemplo n.º 24
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(version_config)
     self.master.startService()
     d = self.connectSlave(["quick"])
     return d
Exemplo n.º 25
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_test_builder)
     self.master.readConfig = True
     self.master.startService()
     self.connectSlave(builders=["dummy", "dummy2", "dummy3"])
Exemplo n.º 26
0
 def setUp(self):
     RunMixin.setUp(self)
     self.master.loadConfig(config_1)
     self.master.startService()