Beispiel #1
0
    def setServiceParent(self, p):
        yield super().setServiceParent(p)
        self.model = model.Model(self)
        self.changes = changes.ChangesConnectorComponent(self)
        self.changesources = changesources.ChangeSourcesConnectorComponent(
            self)
        self.schedulers = schedulers.SchedulersConnectorComponent(self)
        self.sourcestamps = sourcestamps.SourceStampsConnectorComponent(self)
        self.buildsets = buildsets.BuildsetsConnectorComponent(self)
        self.buildrequests = buildrequests.BuildRequestsConnectorComponent(
            self)
        self.state = state.StateConnectorComponent(self)
        self.builds = builds.BuildsConnectorComponent(self)
        self.build_data = build_data.BuildDataConnectorComponent(self)
        self.workers = workers.WorkersConnectorComponent(self)
        self.users = users.UsersConnectorComponent(self)
        self.masters = masters.MastersConnectorComponent(self)
        self.builders = builders.BuildersConnectorComponent(self)
        self.steps = steps.StepsConnectorComponent(self)
        self.tags = tags.TagsConnectorComponent(self)
        self.logs = logs.LogsConnectorComponent(self)
        self.test_results = test_results.TestResultsConnectorComponent(self)
        self.test_result_sets = test_result_sets.TestResultSetsConnectorComponent(
            self)

        self.cleanup_timer = internet.TimerService(self.CLEANUP_PERIOD,
                                                   self._doCleanup)
        self.cleanup_timer.clock = self.master.reactor
        yield self.cleanup_timer.setServiceParent(self)
Beispiel #2
0
    def setUp(self):
        yield self.setUpConnectorComponent(table_names=[
            'steps', 'builds', 'builders', 'masters', 'buildrequests',
            'buildsets', 'workers', 'test_names', 'test_code_paths',
            'test_results', 'test_result_sets'
        ])

        self.db.test_results = test_results.TestResultsConnectorComponent(
            self.db)