2019-07-07 11:18:12 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
require './spec/support/sidekiq_middleware'
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
# 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
|