Skip to content

Commit

Permalink
Test: cannot delete when MLS disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mdimjasevic committed Jan 6, 2023
1 parent 9b622d9 commit 506d48c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion services/galley/test/integration/API/MLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ tests s =
[ test s "cannot create MLS conversations" postMLSConvDisabled,
test s "cannot send an MLS message" postMLSMessageDisabled,
test s "cannot send a commit bundle" postMLSBundleDisabled,
test s "cannot get group info" getGroupInfoDisabled
test s "cannot get group info" getGroupInfoDisabled,
test s "cannot delete a subconversation" deleteSubConversationDisabled
],
testGroup
"SubConversation"
Expand Down Expand Up @@ -2309,6 +2310,18 @@ getGroupInfoDisabled = do
getGroupInfo (qUnqualified alice) (fmap Conv qcnv)
!!! assertMLSNotEnabled

deleteSubConversationDisabled :: TestM ()
deleteSubConversationDisabled = do
alice <- randomUser
cnvId <- Qualified <$> randomId <*> pure (Domain "www.example.com")
let scnvId = SubConvId "conference"
dsc =
DeleteSubConversation
(GroupId "deadbeef")
(Epoch 0)
withMLSDisabled $
deleteSubConv alice cnvId scnvId dsc !!! assertMLSNotEnabled

testCreateSubConv :: Bool -> TestM ()
testCreateSubConv parentIsMLSConv = do
alice <- randomQualifiedUser
Expand Down

0 comments on commit 506d48c

Please sign in to comment.