def test_simple(self):
     self.setupStep(master.LogRenderable(content=Interpolate('sch=%(prop:scheduler)s, slave=%(prop:slavename)s')))
     self.properties.setProperty('scheduler', 'force', source='TestSetProperty', runtime=True)
     self.properties.setProperty('slavename', 'testSlave', source='TestSetProperty', runtime=True)
     self.expectOutcome(result=SUCCESS, status_text=['Logged'])
     self.expectLogfile('Output', pprint.pformat('sch=force, slave=testSlave'))
     return self.runStep()
Beispiel #2
0
 def test_simple(self):
     self.setupStep(master.LogRenderable(content=Interpolate('sch=%(prop:scheduler)s, worker=%(prop:workername)s')))
     self.properties.setProperty('scheduler', 'force', source='TestSetProperty', runtime=True)
     self.properties.setProperty('workername', 'testWorker', source='TestSetProperty', runtime=True)
     self.expectOutcome(result=SUCCESS, state_string='Logged')
     self.expectLogfile('Output', pprint.pformat('sch=force, worker=testWorker'))
     return self.runStep()