Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
T
team-tasks
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 280
    • Issues 280
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Create a new issue
  • Issue Boards
  • GitLab.org
  • quality
  • team-tasks
  • Issues
  • #494

Closed
Open
Opened Apr 29, 2020 by Mark Lapierre@mlapierreOwner

Review tests that require admin access to audit and standardize access token creation

While investigating issues with access tokens on Staging, I realized that our tests don't create admin access tokens consistently, and sometimes they do so in a way that allows later tests to use the same token when admin access is not required.

We should review the (22) spec files that require admin access and:

  • update them to use the API client consistently (e.g., via Runtime::API::Client.as_admin)
  • ensure than when GITLAB_QA_ADMIN_ACCESS_TOKEN is given, the tests use that token rather than creating a new one
  • ensure tests that don't require admin access don't use an admin token created by a previous test (e.g., don't overwrite Runtime::Env.personal_access_token with an admin access token)
Edited Apr 29, 2020 by Mark Lapierre
Assignee
Assign to
13.0
Milestone
13.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/quality/team-tasks#494