Fabrication of QA::Resource::User fails with 403 when running E2E tests as a non-admin user
Fabrication of QA::Resource::User using the API failed (403) with `{"message":"403 Forbidden"}`
Non-admin users can't create users, so merge_merge_request_from_fork_spec.rb
fails. We get around this (e.g., on staging) by specifying an existing user (via GITLAB_FORKER_{USERNAME|PASSWORD}
).
The problem is that this isn't documented so it's surprising when tests fail, and it's not clear what to do about it.
There's at least a couple of things we should do to fix this.
-
Update the docs to list specific tests with special requirements ( merge_merge_request_from_fork_spec.rb
isn't the only such test). -
Catch this particular error in merge_merge_request_from_fork_spec.rb
and report a solution (i.e., use an admin user to run the tests or create a user manually and setGITLAB_FORKER_{USERNAME|PASSWORD}
before running this test).