Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPB-10207 Inspect key packages test #4161

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions libs/wire-api/test/unit/Test/Wire/API/MLS.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@ module Test.Wire.API.MLS where

import Control.Concurrent.Async
import Crypto.PubKey.Ed25519 qualified as Ed25519
import Data.ByteArray hiding (length)
import Data.Aeson qualified as A
import Data.ByteArray hiding (all, length)
import Data.ByteString qualified as BS
import Data.ByteString.Char8 qualified as B8
import Data.ByteString.Lazy qualified as LBS
import Data.Domain
import Data.Id
import Data.Json.Util (toBase64Text)
import Data.Qualified
import Data.Set qualified as Set
import Data.Text qualified as T
import Data.Text qualified as Text
import Data.UUID.V4 qualified as UUID
Expand Down Expand Up @@ -62,9 +65,28 @@ tests =
testCase "parse welcome and groupinfo message" testParseWelcomeAndGroupInfo,
testCase "key package ref" testKeyPackageRef,
testCase "create signed remove proposal" testRemoveProposalMessageSignature,
testCase "parse client identity" testParseClientIdentity
testCase "parse client identity" testParseClientIdentity,
testCase "inspect key packages" testInspectKeyPackage
]

testInspectKeyPackage :: IO ()
testInspectKeyPackage = do
let keyPackageUpload = A.decode keyPackageUploadJson
actual = Set.fromList . map (fromJust . cipherSuiteTag . (.cipherSuite) . value) . keyPackages $ fromJust keyPackageUpload
expected = Set.singleton . fromJust $ cipherSuiteTag (CipherSuite 2)
liftIO $ actual @=? expected
where
keyPackageUploadJson :: LBS.ByteString
keyPackageUploadJson =
"{ \"key_packages\": [\
\ \"AAEAAkBBBOrKhSCEngaaaqtuEGflH98EDnZcGu/CVM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id = "wireapp://qHiDLsbkT2-p9uSJsmrZ_A%217f39900830740008@wire.com"
Expand Down
Loading