Repository navigation
test: add real OpenShell v0.1.7 OCSF 1.8.0 log fixtures - #73
Merged
Merged
Conversation
tests/fixtures/logs/ocsf-1.8.0.jsonl holds 17 supervisor records captured from an OpenShell v0.1.7 sandbox: classes 0, 4001 (Open allowed/denied and two policy-DNS Refuse records), 4002 (L7 allow/deny), 4007 and 5019. Device, container and record identifiers are scrubbed, and real resolved IPs are replaced with 203.0.113.x. tests/fixtures/ocsf-1.8.0-app mirrors the annotated app the records came from. The new CLI test checks the JSON counts and suggestions and adds a plain human golden. Closes #70 Signed-off-by: Ilan Harel <ilan@Ilans-MacBook-Pro.local>
ilanh
force-pushed
the
test/70-ocsf-1.8.0-fixtures
branch
from
November 9, 2026 07:41
604e8d1 to
ec1597d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #70
Rebased onto main after #71 and #72 merged. The golden note now says OpenShell 0.1.7.
Adds a log fixture captured from a real OpenShell v0.1.7 sandbox: the playground image and policy, with
ocsf_json_enabled=true.tests/fixtures/logs/ocsf-1.8.0.jsonl: 17 native OCSF 1.8.0 records (metadata.versionis1.8.0on every line):policy_dns_ineligiblediff-logsignoressandbox.fixturewith an all-zero UUID.metadata.uid, SSH channel ids and DNS mapping ids → fixed fake UUIDs.tests/fixtures/ocsf-1.8.0-app/: a minimal annotated app that matches the captured run.tests/cli.rsdiff_logs_reads_openshell_0_1_7_ocsf_1_8_0_records:10 events: 3 denied, 7 allowed.missing_egressfor example.com (curl) and pypi.org (python3.12), andl7_allowfor httpbin.org POST /post.manualitems.tests/golden/diff_logs_ocsf_1_8_0_plain.txt.Filesystem denials (two in the run) were not logged at all, which matches NVIDIA/OpenShell#4270 (still open).
Ran locally: fmt, clippy
-D warnings,cargo test --locked,--test gateway_policiesandgen-docs.sh --checkall pass.