Skip to content
Merged
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
8 changes: 5 additions & 3 deletions crates/tinysecurity-module/src/adapter_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1622,11 +1622,11 @@ async fn native_open_public_policy_and_credentials_only_redaction_dispatch()
Ok(())
}

/// A host that runs TinySecurity as its secret authority makes audit required,
/// A host that runs `TinySecurity` as its secret authority makes audit required,
/// and the browser dial members carry no audit correlation. They must still
/// authorize, consume and validate: refusing them refused every browser
/// navigation ("required audit needs bound permission", seen as Chrome's
/// ERR_TUNNEL_CONNECTION_FAILED on every page).
/// `ERR_TUNNEL_CONNECTION_FAILED` on every page).
#[tokio::test]
async fn browser_dials_are_authorized_when_audit_is_required()
-> std::result::Result<(), Box<dyn std::error::Error>> {
Expand Down Expand Up @@ -1662,7 +1662,9 @@ async fn browser_dials_are_authorized_when_audit_is_required()
Some(Arc::new(audit)),
);
assert!(service.audit_required());
server.serve_at(names::OBJECT_PATH.try_into()?, service).await?;
server
.serve_at(names::OBJECT_PATH.try_into()?, service)
.await?;
server.request_name(names::INTERFACE).await?;
let client = Connection::connect(bus.connect().await?).await?;
let proxy = client.proxy(names::INTERFACE, names::OBJECT_PATH, names::INTERFACE)?;
Expand Down
Loading