Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-18 00:09:50 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-18 00:09:50 +0300
commiteda321fc0b96e44e296341f6288dd7f1a27ba93a (patch)
tree1dba04e1ccc485d078da441ab767e650489af112 /spec/requests
parentf1503ea64b21497db21094355ac574248dc243c4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/jwt_controller_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/requests/jwt_controller_spec.rb b/spec/requests/jwt_controller_spec.rb
index db3be617a53..7427ca11431 100644
--- a/spec/requests/jwt_controller_spec.rb
+++ b/spec/requests/jwt_controller_spec.rb
@@ -27,6 +27,10 @@ RSpec.describe JwtController do
let(:headers) { { authorization: credentials('personal_access_token', pat.token) } }
it 'fails authentication' do
+ expect(::Gitlab::AuthLogger).to receive(:warn).with(
+ hash_including(message: 'JWT authentication failed',
+ http_user: 'personal_access_token')).and_call_original
+
get '/jwt/auth', params: parameters, headers: headers
expect(response).to have_gitlab_http_status(:unauthorized)