From 4baa82d3a6fe3bbde5cfca124468b107bf849a3a Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Mon, 12 Aug 2024 18:48:46 +0100 Subject: [PATCH] test: add new methods for device IDs --- .../src/test_json/keys_query_sets.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/testing/matrix-sdk-test/src/test_json/keys_query_sets.rs b/testing/matrix-sdk-test/src/test_json/keys_query_sets.rs index dd61f110b..daa99c675 100644 --- a/testing/matrix-sdk-test/src/test_json/keys_query_sets.rs +++ b/testing/matrix-sdk-test/src/test_json/keys_query_sets.rs @@ -915,6 +915,24 @@ impl PreviouslyVerifiedTestData { ruma_response_from_json(&data) } + /// Device ID of Carol's signed device. + /// + /// The device is returned as part of + /// [`Self::carol_keys_query_response_signed`] and + /// [`Self::carol_keys_query_response_unsigned`]. + pub fn carol_signed_device_id() -> &'static DeviceId { + device_id!("JBRBCHOFDZ") + } + + /// Device ID of Carol's unsigned device. + /// + /// The device is returned as part of + /// [`Self::carol_keys_query_response_signed`] and + /// [`Self::carol_keys_query_response_unsigned`]. + pub fn carol_unsigned_device_id() -> &'static DeviceId { + device_id!("BAZAPVEHGA") + } + fn device_1_keys_payload_carol() -> Value { json!({ // Not self signed