authtest: add tests for access repositories
Created by: unknwon
This PR adds end-to-end tests for accessing repositories using GraphQL queries in the case of a user does not have access to the repository.
Fixes #19810 (closed), fixes #19812 (closed)