Beispiel #1
0
 def setup_class(cls):
     # Wait for crane to come up
     attempts = s.ATTEMPTS
     time_between_att = s.TIME_BETWEEN_ATT
     flag = False
     while not flag:
         try:
             res = req.get(s.COMMANDER_URL+'/extra/alive')
             assert res.status_code == 200, "Crane is not alive"
             flag = True
         except:
             attempts-=1
             assert attempts > 0, "Timeout connectig to crane"
             time.sleep(time_between_att)
     # delete engine containers, images and crane data
     res = op.purgeCrane()
     errText = "Cannot purge Crane"
     op.assertStatusCode(res, 200, errText)
     op.assertStatus(res, 'finished', errText)
Beispiel #2
0
 def setup_class(cls):
     # delete engine containers, images and crane data
     res = op.purgeCrane()
     errText = "Cannot purge Crane"
     op.assertStatusCode(res, 200, errText)
     op.assertStatus(res, 'finished', errText)
Beispiel #3
0
 def setup_class(cls):
     # delete engine containers, images and crane data
     res = op.purgeCrane()
     errText = "Cannot purge Crane"
     op.assertStatusCode(res, 200, errText)
     op.assertStatus(res, 'finished', errText)