Persist the exact Windows echo scope across recovery and process restarts
Rust development slice / linux (push) Failing after 6s
Rust development slice / linux (push) Failing after 6s
This commit is contained in:
@@ -13,6 +13,12 @@ use rmm_protocol::{Envelope, Payload, SyncRequest, SyncResponse};
|
||||
use rusqlite::{Connection, params};
|
||||
use uuid::Uuid;
|
||||
pub fn verified_pair() -> Result<(Connection, Connection, Connection, Binding, SigningKey)> {
|
||||
verified_pair_for(Uuid::new_v4(), Uuid::new_v4())
|
||||
}
|
||||
pub fn verified_pair_for(
|
||||
tenant_id: Uuid,
|
||||
asset_id: Uuid,
|
||||
) -> Result<(Connection, Connection, Connection, Binding, SigningKey)> {
|
||||
let a = Connection::open_in_memory()?;
|
||||
let l = Connection::open_in_memory()?;
|
||||
let h = Connection::open_in_memory()?;
|
||||
@@ -29,9 +35,9 @@ pub fn verified_pair() -> Result<(Connection, Connection, Connection, Binding, S
|
||||
let peer = Uuid::new_v4();
|
||||
let key = SigningKey::from_bytes(&[13; 32]); // Public deterministic fixture only.
|
||||
let binding = Binding {
|
||||
tenant_id: Uuid::new_v4(),
|
||||
tenant_id,
|
||||
agent_id: Uuid::parse_str(AGENT)?,
|
||||
asset_id: Uuid::new_v4(),
|
||||
asset_id,
|
||||
assignment_version: 1,
|
||||
enrollment_generation: 1,
|
||||
public_key_hex: key
|
||||
|
||||
Reference in New Issue
Block a user