Skip to content

Remove `early_auth_check` in acceptance tests

We instantiate a lot of providers during the acceptance tests which spam the logs with the following requests:

==> GET /api/v4/user
    TRANS-ID: e0ec4e3a-359d-f8ea-2396-01fac972b5b1 at 2022-12-19T17:41:21.944589+01:00
    HTTP BODY:
<== 200 OK
    TRANS-ID: e0ec4e3a-359d-f8ea-2396-01fac972b5b1 at 2022-12-19T17:41:22.363062+01:00
    HTTP BODY:
    {
      "id": 1,
      "username": "root",
      "name": "Administrator",
      "state": "active",
      "avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon",
      "web_url": "http://3d516972e77b/root",
      "created_at": "2022-12-07T08:57:41.390Z",
      "bio": "",
      "location": null,
      "public_email": "admin@example.com",
      "skype": "",
      "linkedin": "",
      "twitter": "",
      "website_url": "",
      "organization": null,
      "job_title": "",
      "pronouns": null,
      "bot": false,
      "work_information": null,
      "followers": 0,
      "following": 0,
      "is_followed": false,
      "local_time": null,
      "last_sign_in_at": "2022-12-19T10:19:03.567Z",
      "confirmed_at": "2022-12-07T08:57:34.304Z",
      "last_activity_on": "2022-12-19",
      "email": "admin@example.com",
      "theme_id": 1,
      "color_scheme_id": 1,
      "projects_limit": 100000,
      "current_sign_in_at": "2022-12-19T13:28:21.562Z",
      "identities": [],
      "can_create_group": true,
      "can_create_project": true,
      "two_factor_enabled": false,
      "external": false,
      "private_profile": false,
      "commit_email": "admin@example.com",
      "shared_runners_minutes_limit": null,
      "extra_shared_runners_minutes_limit": null,
      "is_admin": true,
      "note": null,
      "namespace_id": 1,
      "created_by": null,
      "using_license_seat": true,
      "is_auditor": false,
      "provisioned_by_group_id": null
    }

The request is triggered here in case early_auth_check is true - which it is by default.

During acceptance tests the default should be false though.