Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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()
Ejemplo n.º 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()