spec/scim_spec.rb in cf-uaa-lib-3.5.0 vs spec/scim_spec.rb in cf-uaa-lib-3.6.0

- old
+ new

@@ -150,9 +150,21 @@ end result = subject.change_secret("id12345", "newpwd", "oldpwd") result['id'].should == "id12345" end + it "unlocks a user" do + subject.set_request_handler do |url, method, body, headers| + url.should == "#{@target}/Users/id12345/status" + method.should == :patch + check_headers(headers, :json, :json, nil) + body.should include('"locked":false') + [200, '{"locked":false}', {"content-type" => "application/json"}] + end + result = subject.unlock_user("id12345") + result['locked'].should == false + end + it "adds a mapping from uaa groups to external group" do subject.set_request_handler do |url, method, body, headers| url.should == "#{@target}/Groups/External" method.should == :post check_headers(headers, :json, :json, nil)