Skip to content

Commit 4e81e43

Browse files
committed
Adjust test to expect members
1 parent fde12d0 commit 4e81e43

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

integration/test/Test/Spar.hs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import API.GalleyInternal (setTeamFeatureStatus)
2626
import API.Spar
2727
import API.SparInternal
2828
import Control.Concurrent (threadDelay)
29-
import Control.Lens (to, (?~), (^.))
29+
import Control.Lens (to, (^.))
3030
import qualified Data.Aeson as A
3131
import qualified Data.Aeson.KeyMap as KeyMap
3232
import 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

445443
mkScimGroup :: String -> [Value] -> Value
446444
mkScimGroup name members =

0 commit comments

Comments
 (0)