diff options
author | Roger Rüttimann <roger.ruettimann@renuo.ch> | 2018-05-07 10:33:35 +0200 |
---|---|---|
committer | Roger Rüttimann <roger.ruettimann@renuo.ch> | 2018-05-07 10:33:35 +0200 |
commit | a827f6764aff509f4457672c2a2179c1d9c1864c (patch) | |
tree | 1bebdb55ba38557d23e45e00f4023709130d8906 /spec/requests/openid_connect_spec.rb | |
parent | 6a052a14e938ef073977afd808dd12a801f44369 (diff) | |
download | gitlab-ce-a827f6764aff509f4457672c2a2179c1d9c1864c.tar.gz |
add values to OpenID configuration test, not only checking for issuer key
Diffstat (limited to 'spec/requests/openid_connect_spec.rb')
-rw-r--r-- | spec/requests/openid_connect_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/requests/openid_connect_spec.rb b/spec/requests/openid_connect_spec.rb index cd1a6cfc427..be286c490fe 100644 --- a/spec/requests/openid_connect_spec.rb +++ b/spec/requests/openid_connect_spec.rb @@ -159,7 +159,9 @@ describe 'OpenID Connect requests' do get '/.well-known/openid-configuration' expect(response).to have_gitlab_http_status(200) - expect(json_response).to have_key('issuer') + expect(json_response['issuer']).to eq('http://localhost') + expect(json_response['jwks_uri']).to eq('http://www.example.com/oauth/discovery/keys') + expect(json_response['scopes_supported']).to eq(%w[api read_user sudo read_repository openid]) end end end |