From 4cedeebcb4d3de190c79cc6e6773f74196640b9d Mon Sep 17 00:00:00 2001 From: Leif Battermann Date: Fri, 19 Jan 2024 08:09:04 +0100 Subject: [PATCH] WPB-6162 update X.509 verification with new client identity format test (#3813) Co-authored-by: Stefan Berthold --- integration/test/Test/MLS.hs | 5 ++--- integration/test/Testlib/Env.hs | 2 +- nix/pkgs/mls-test-cli/default.nix | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/integration/test/Test/MLS.hs b/integration/test/Test/MLS.hs index 4315b64f553..049d3d8d4a7 100644 --- a/integration/test/Test/MLS.hs +++ b/integration/test/Test/MLS.hs @@ -319,9 +319,8 @@ testMLSProtocolUpgrade secondDomain = do resp.status `shouldMatchInt` 200 resp.json %. "protocol" `shouldMatch` "mls" --- TODO(leif): temporarily disabled to unblock client devs. Fix mls-test-cli and re-enable ASAP. -_testAddUserSimple :: HasCallStack => Ciphersuite -> CredentialType -> App () -_testAddUserSimple suite ctype = do +testAddUserSimple :: HasCallStack => Ciphersuite -> CredentialType -> App () +testAddUserSimple suite ctype = do setMLSCiphersuite suite [alice, bob] <- createAndConnectUsers [OwnDomain, OwnDomain] [alice1, bob1, bob2] <- traverse (createMLSClient def {credType = ctype}) [alice, bob, bob] diff --git a/integration/test/Testlib/Env.hs b/integration/test/Testlib/Env.hs index 39f274b1f94..340ba751fc4 100644 --- a/integration/test/Testlib/Env.hs +++ b/integration/test/Testlib/Env.hs @@ -164,7 +164,7 @@ emptyClientGroupState :: ClientGroupState emptyClientGroupState = ClientGroupState Nothing Nothing allCiphersuites :: [Ciphersuite] -allCiphersuites = map Ciphersuite ["0x0001", "0xf031"] +allCiphersuites = [Ciphersuite "0x0001"] -- TODO fix testsMLS.testAddUserSimple for "0xf031" mkMLSState :: Codensity IO MLSState mkMLSState = Codensity $ \k -> diff --git a/nix/pkgs/mls-test-cli/default.nix b/nix/pkgs/mls-test-cli/default.nix index 9b755e9b6aa..65166a8db8d 100644 --- a/nix/pkgs/mls-test-cli/default.nix +++ b/nix/pkgs/mls-test-cli/default.nix @@ -7,17 +7,17 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "wireapp"; repo = "mls-test-cli"; - rev = "baaa5c78411a5bf6d697803276b991523c111631"; - sha256 = "sha256-M6bWB5hWl+WSblcH6L+AyGD+7ef9TvRs8wKYq7lJyS8="; + rev = "a18470061977211ecf81911de0f2632eefc81efd"; + sha256 = "sha256-HgwR6vuVL3eN7NVox+iClPxqsat3Znc9+ZtENuEJKSU="; }; pname = "mls-test-cli"; - version = "0.9.0"; + version = "0.10.3"; cargoLock = { lockFile = "${src}/Cargo.lock"; outputHashes = { "hpke-0.10.0" = "sha256-T1+BFwX6allljNZ/8T3mrWhOejnUU27BiWQetqU+0fY="; - "openmls-1.0.0" = "sha256-tAIm8+IgubNnU2M2A5cxHY5caiEQmisw73I9/cqfvUc="; - "safe_pqc_kyber-0.6.0" = "sha256-Ch1LA+by+ezf5RV0LDSQGC1o+IWKXk8IPvkwSrAos68="; + "openmls-1.0.0" = "sha256-nyIMAlTy7CTV0bVQ0ytamKHpERgtsVKTX4zv7aHzemo="; + "safe_pqc_kyber-0.6.2" = "sha256-9t+IIohCJcMIWRtqLA0idyMmjev82BtpST15Tthlge4="; "tls_codec-0.3.0" = "sha256-IO6tenXKkC14EoUDp/+DtFNOVzDfOlLu8K1EJI7sOzs="; }; };