Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions crates/openshell-core/src/driver_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,6 +1248,7 @@ mod tests {
assert!(validate_guest_spiffe_tcp_endpoint("unix:/run/spire/agent.sock", true).is_err());
}

#[cfg(unix)]
#[test]
fn credential_file_rejects_fifo_without_hanging() {
// A FIFO with no writer would block a blocking open() forever. The
Expand Down
7 changes: 6 additions & 1 deletion crates/openshell-ocsf/tests/event_identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ fn device_identifies_the_sandbox_environment() {

assert_eq!(json["device"]["type_id"], 99);
assert_eq!(json["device"]["type"], "Sandbox");
assert_eq!(json["device"]["os"]["name"], "Linux");
let expected_os = if cfg!(target_os = "windows") {
"Windows"
} else {
"Linux"
};
assert_eq!(json["device"]["os"]["name"], expected_os);
}

#[test]
Expand Down
1 change: 1 addition & 0 deletions tasks/rust.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ hide = true
["rust:lockfiles:check"]
description = "Verify all tracked Cargo lockfiles are current"
run = "tasks/scripts/check-cargo-lockfiles.sh"
run_windows = "echo Skipping rust:lockfiles:check: Cargo lockfile validation uses a Unix shell helper."
hide = true

["rust:lint"]
Expand Down
1 change: 1 addition & 0 deletions tasks/typescript.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ run = "npm run gen"
description = "Lint proto/ with buf (repo-level buf.yaml)"
depends = ["sdk:ts:install"]
run = "./sdk/typescript/node_modules/.bin/buf lint"
run_windows = "sdk\\typescript\\node_modules\\.bin\\buf.cmd lint"

["sdk:ts:typecheck"]
description = "Type-check the TypeScript SDK"
Expand Down
Loading