Skip to content

Align policy/snapshot CLI behavior on Windows #21

@muscariello

Description

@muscariello
  • Target files:
    • crates/shadictl/src/main_tests.rs
    • crates/shadictl/src/sandbox_snapshot.rs
  • Problem:
    • Some policy/snapshot behavior is validated heavily on macOS/Linux paths but has weaker Windows parity assertions.
  • Scope:
    • Add Windows-targeted tests for snapshot structure and policy output invariants.
    • Ensure command blocking and policy rendering are consistent where expected.
  • Acceptance criteria:
    • Snapshot JSON schema stays stable across OS.
    • Windows-specific assertions are in place for known divergence points only.
  • Suggested tests:
    • windows_snapshot_contains_expected_root_fields
    • windows_policy_dump_contains_allow_read_write_groups
    • windows_blocked_command_behavior_matches_contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions