예제 #1
0
 def _unset_testbotgroup(cls):
     cls.project.settings.apidelete('botgroups')
     cls.project.settings.expire()
     # Additional step to delete botgroups in JobQ
     for botgroup in cls.testbotgroups:
         url = urlpathjoin(cls.endpoint, 'botgroups', botgroup)
         requests.delete(url, auth=cls.project.auth)
예제 #2
0
 def _unset_testbotgroup(cls):
     cls.project.settings.apidelete('botgroups')
     cls.project.settings.expire()
     # Additional step to delete botgroups in JobQ
     for botgroup in cls.testbotgroups:
         url = urlpathjoin(cls.endpoint, 'botgroups', botgroup)
         requests.delete(url, auth=cls.project.auth)
예제 #3
0
 def _set_testbotgroup(cls):
     cls.project.settings.apipost(jl={'botgroups': [cls.testbotgroups[0]]})
     # Additional step to populate JobQ's botgroups table
     for botgroup in cls.testbotgroups:
         url = urlpathjoin(cls.endpoint, 'botgroups',
                           botgroup, 'max_running')
         requests.post(url, auth=cls.project.auth, data='null')
     cls.project.settings.expire()
예제 #4
0
 def _set_testbotgroup(cls):
     cls.project.settings.apipost(jl={'botgroups': [cls.testbotgroups[0]]})
     # Additional step to populate JobQ's botgroups table
     for botgroup in cls.testbotgroups:
         url = urlpathjoin(cls.endpoint, 'botgroups', botgroup,
                           'max_running')
         requests.post(url, auth=cls.project.auth, data='null')
     cls.project.settings.expire()