test: add new methods for device IDs

This commit is contained in:
Richard van der Hoff
2024-08-12 18:48:46 +01:00
committed by Richard van der Hoff
parent 8b01e3e209
commit 4baa82d3a6

View File

@@ -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