diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-15 18:58:13 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-15 18:58:13 +0300 |
commit | 35d0b63ebf34072e19aa8f18d87e0d0e46ae412d (patch) | |
tree | cd5013e2a28a7c3496e23524a8b665331add2e77 /spec/requests | |
parent | 11b7f911bd6ea1e3dc5a1eea345c08d2d05cd41b (diff) | |
parent | a827f6764aff509f4457672c2a2179c1d9c1864c (diff) |
Merge branch 'feature/add-open-id-discovery-tests' into 'master'
add values to OpenID configuration test, not only checking for issuer key
See merge request gitlab-org/gitlab-ce!18773
Diffstat (limited to 'spec/requests')
-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 |