diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 00:09:50 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-18 00:09:50 +0300 |
commit | eda321fc0b96e44e296341f6288dd7f1a27ba93a (patch) | |
tree | 1dba04e1ccc485d078da441ab767e650489af112 /spec/requests | |
parent | f1503ea64b21497db21094355ac574248dc243c4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/jwt_controller_spec.rb | 4 |
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) |