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)
Example #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)
 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()
Example #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()