Commit 323e64ee authored by James Lopez's avatar James Lopez

Update spec and fix Danger

parent 440d6eac
---
title: Resolve Automatically deprovision users when removed from a configured identity
provider
merge_request: 9388
author:
type: added
...@@ -3,18 +3,18 @@ ...@@ -3,18 +3,18 @@
require 'spec_helper' require 'spec_helper'
describe API::Scim do describe API::Scim do
describe 'GET api/scim/v2/groups/:group/Users' do let(:user) { create(:user) }
let(:user) { create(:user) } let(:identity) { create(:group_saml_identity, user: user) }
let(:identity) { create(:group_saml_identity, user: user) } let(:group) { identity.saml_provider.group }
let(:group) { identity.saml_provider.group } let(:token) { create(:personal_access_token, user: user) }
let(:token) { create(:personal_access_token, user: user) }
before do before do
stub_licensed_features(group_saml: true) stub_licensed_features(group_saml: true)
group.add_owner(user) group.add_owner(user)
end end
describe 'GET api/scim/v2/groups/:group/Users' do
it 'responds with a 200' do it 'responds with a 200' do
get api("scim/v2/groups/#{group.full_path}/Users", user, oauth_access_token: token, version: '') get api("scim/v2/groups/#{group.full_path}/Users", user, oauth_access_token: token, version: '')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment