Commit 6fce4a49 authored by Andreas Brandl's avatar Andreas Brandl

Merge branch 'qa-create-personal-access-token-in-seeds' into 'master'

Add seed for personal access token

Closes #59500

See merge request gitlab-org/gitlab-ce!26582
parents febf545a 4d84d1a8
# frozen_string_literal: true
require './spec/support/sidekiq'
# Create an api access token for root user with the value: ypCa3Dzb23o5nvsixwPA
Gitlab::Seeder.quiet do
PersonalAccessToken.create!(
user_id: User.find_by(username: 'root').id,
name: "seeded-api-token",
scopes: ["api"],
token_digest: "/O0jfLERYT/L5gG8nfByQxqTj43TeLlRzOtJGTzRsbQ="
)
print '.'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment