Ejemplo n.º 1
0
 def _websec_bugs_via_whiteboard(credentials, site):
     bb = BugBuilder(credentials=credentials)
     #bb.product("Websites")
     bb.fields("id", "creation_time", "status", "summary", "assigned_to")
     bb.open()
     bb.advanced("status_whiteboard", "substring", "[site:%s]" % site)
     req = bb.build()
     r = requests.get(req.url, params=req.params, headers=req.headers)
     return r.json().get("bugs", [])
Ejemplo n.º 2
0
 def _websec_bugs_via_component(credentials, site):
     bb = BugBuilder(credentials=credentials)
     bb.product("Websites")
     bb.component(site)
     bb.fields("id", "creation_time", "status", "summary", "assigned_to")
     bb.open()
     bb.advanced("bug_group", "equals", "websites-security")
     req = bb.build()
     r = requests.get(req.url, params=req.params, headers=req.headers)
     return r.json().get("bugs", [])