diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-03-27 13:33:18 +0000 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-03-27 13:33:18 +0000 |
commit | 6fce4a49d53963ad68b6dcb09d04b8c2488ffb7b (patch) | |
tree | e18f6ee5b766cbe432a2177fd4fcd584facc2cae /db | |
parent | febf545aa407b1e475681a889e92d637d677c1da (diff) | |
parent | 4d84d1a850bc002e5d1269c360a5155bcc8fa243 (diff) | |
download | gitlab-ce-6fce4a49d53963ad68b6dcb09d04b8c2488ffb7b.tar.gz |
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
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/development/25_api_personal_access_token.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/fixtures/development/25_api_personal_access_token.rb b/db/fixtures/development/25_api_personal_access_token.rb new file mode 100644 index 00000000000..a2e6c674c1f --- /dev/null +++ b/db/fixtures/development/25_api_personal_access_token.rb @@ -0,0 +1,15 @@ +# 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 |