def test_job_create(self):
        id = 1
        while (self.job_ids.count(id) > 0):
            id = id + 1
        job_tmp = db_api.job_create('', u'job_{0}'.format(id), id)
        self.job_ids.append(id)
        self.job_names.append(u'job_{0}'.format(id))

        actual = db_api.job_get('', id)
        self.assertIsNotNone(actual)
Beispiel #2
0
    def test_job_create(self):
        id = 1
        while (self.job_ids.count(id) > 0):
            id = id + 1
        job_tmp = db_api.job_create('', u'job_{0}'.format(id), id)
        self.job_ids.append(id)
        self.job_names.append(u'job_{0}'.format(id))

        actual = db_api.job_get('', id)
        self.assertIsNotNone(actual)
    def setUpClass(cls):
        wf_fmt = u'workflow_{0}'
        lb_tmp = db_api.logbook_create('', u'logbook_1', 1)
        cls.lb_ids.append(1)
        cls.lb_names.append(u'logbook_1')
        job_tmp = db_api.job_create('', u'job_1', 1)
        cls.job_ids.append(1)
        cls.job_names.append(u'job_1')
        for i in range(1, 10):
            wf_tmp = db_api.workflow_create('', wf_fmt.format(i))

            db_api.logbook_add_workflow('', 1, wf_fmt.format(i))
            db_api.job_add_workflow('', 1, wf_fmt.format(i))

            cls.wf_ids.append(i)
            cls.wf_names.append(wf_fmt.format(i))
Beispiel #4
0
    def setUpClass(cls):
        wf_fmt = u'workflow_{0}'
        lb_tmp = db_api.logbook_create('', u'logbook_1', 1)
        cls.lb_ids.append(1)
        cls.lb_names.append(u'logbook_1')
        job_tmp = db_api.job_create('', u'job_1', 1)
        cls.job_ids.append(1)
        cls.job_names.append(u'job_1')
        for i in range(1, 10):
            wf_tmp = db_api.workflow_create('', wf_fmt.format(i))

            db_api.logbook_add_workflow('', 1, wf_fmt.format(i))
            db_api.job_add_workflow('', 1, wf_fmt.format(i))

            cls.wf_ids.append(i)
            cls.wf_names.append(wf_fmt.format(i))