Ejemplo n.º 1
0
 def test_job_keyvals(self):
     keyval_dict = {'mykey': 'myvalue'}
     job_id = rpc_interface.create_job(name='test', priority='Medium',
                                       control_file='foo',
                                       control_type='Client',
                                       hosts=['host1'],
                                       keyvals=keyval_dict)
     jobs = rpc_interface.get_jobs(id=job_id)
     self.assertEquals(len(jobs), 1)
     self.assertEquals(jobs[0]['keyvals'], keyval_dict)
 def _create_job_helper(self, **kwargs):
     return rpc_interface.create_job('test', 'Medium', 'control file',
                                     'Server', **kwargs)
Ejemplo n.º 3
0
 def _create_job_helper(self, **kwargs):
     return rpc_interface.create_job('test', 'Medium', 'control file',
                                     'Server', **kwargs)