@@ -26,7 +26,7 @@ import API.GalleyInternal (setTeamFeatureStatus)
2626import API.Spar
2727import API.SparInternal
2828import Control.Concurrent (threadDelay )
29- import Control.Lens (to , (?~) , ( ^.) )
29+ import Control.Lens (to , (^.) )
3030import qualified Data.Aeson as A
3131import qualified Data.Aeson.KeyMap as KeyMap
3232import qualified Data.Aeson.Lens as A
@@ -383,8 +383,8 @@ testSparCreateScimTokenWithName = do
383383----------------------------------------------------------------------
384384-- scim group stuff
385385
386- testSparScimCreateGetUserGroup :: (HasCallStack ) => App ()
387- testSparScimCreateGetUserGroup = do
386+ testSparScimCreateGetSearchUserGroup :: (HasCallStack ) => App ()
387+ testSparScimCreateGetSearchUserGroup = do
388388 (owner, tid, _) <- createTeam OwnDomain 1
389389 tok <- createScimTokenV6 owner def >>= \ resp -> resp. json %. " token" >>= asString
390390 assertSuccess =<< setTeamFeatureStatus owner tid " validateSAMLemails" " disabled"
@@ -434,13 +434,11 @@ testSparScimCreateGetUserGroup = do
434434 foundGroups <- filterResultJson %. " Resources" & asList
435435 createdGroup1 <- resp. json
436436 createdGroup2 <- resp4. json
437- foundGroups `shouldMatch` ( map removeMembers [createdGroup1, createdGroup2])
437+ foundGroups `shouldMatch` [createdGroup1, createdGroup2]
438438
439439 filterResultJson %. " totalResults" `shouldMatchInt` 2
440440 filterResultJson %. " itemsPerPage" `shouldMatchInt` 2
441441 filterResultJson %. " startIndex" `shouldMatchInt` 1
442- where
443- removeMembers g = g & A. atKey (fromString " members" ) ?~ toJSON ([] :: [() ])
444442
445443mkScimGroup :: String -> [Value ] -> Value
446444mkScimGroup name members =
0 commit comments