コード例 #1
0
ファイル: JobState_t2.py プロジェクト: giffels/PRODAGENT
 def testB(self):
      Session.set_database(dbConfig)
      Session.connect()
      Session.start_transaction()
      try:
         JobState.purgeStates()
      except StandardError, ex:
         msg = "Failed State Change TestB:\n"
         msg += str(ex)
         self.fail(msg)
コード例 #2
0
 def testH(self):
     return
     print("""\nCleanup the prodagent database""")
     print("\nsleep for 20 seconds to") 
     print("let the cleanup component receive the messages")
     time.sleep(20)
     try:
         Session.set_database(dbConfig)
         Session.connect()
         Session.start_transaction()
         JobState.purgeStates()
         self.ms.purgeMessages()
         Session.commit_all()
         Session.close_all()
     except StandardError, ex:
         msg = "Failed testE:\n"
         msg += str(ex)
         self.fail(msg)