summaryrefslogtreecommitdiff
path: root/spec/requests/openid_connect_spec.rb
diff options
context:
space:
mode:
authorRoger Rüttimann <roger.ruettimann@renuo.ch>2018-05-07 10:33:35 +0200
committerRoger Rüttimann <roger.ruettimann@renuo.ch>2018-05-07 10:33:35 +0200
commita827f6764aff509f4457672c2a2179c1d9c1864c (patch)
tree1bebdb55ba38557d23e45e00f4023709130d8906 /spec/requests/openid_connect_spec.rb
parent6a052a14e938ef073977afd808dd12a801f44369 (diff)
downloadgitlab-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.rb4
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