Add bugzillla override functions and tests
This allows repo admins and pagure admins to set overrides for the
default bugzilla assignees for Fedora and for EPEL.
This information used to be in
https://pagure.io/releng/fedora-scm-requests
and will be migrated to dist-git.
Adds endpoints to the dist-git plugin:
- /bzoverrides/<namespace>/<repo> (GET)
returns
{
"epel_assignee": "karsten",
"fedora_assignee": " karsten"
}
- /bzoverrides/<namespace>/<repo> (POST)
sending a POST request with a correct token and data
{
"epel_assignee": "someuser",
"fedora_assignee": " karsten"
}
will set the default EPEL bugzilla assignee to 'someuser'.
An empty user string will reset the assignee to the repo admin.
Signed-off-by: Karsten Hopp <karsten@redhat.com>