github: add tests for `FetchUserPerms` and `FetchRepoPerms`
Created by: unknwon
Adds tests for FetchUserPerms
and FetchRepoPerms
of GitHub authz provider.
NOTE: Did not use VCR because I think we should only do VCR in the API client layer (the layer that directly interacts with external services, i.e. internal/extsvc/{github,gitlab,bitbucketserver,bitbucketcloud}
). Similar to we mock DB methods in application layer and only do real DB testing in the DB layer.