Skip to content

Add demo fixtures and command line interface - #6

Merged
heath-zulu merged 1 commit into
mainfrom
task-5-demo-cli
Aug 14, 2026
Merged

heath-zulu merged 1 commit into
mainfrom
task-5-demo-cli

Conversation

@heath-zulu

Copy link
Copy Markdown
Contributor

Adds synthetic demo fixtures for the S3 and EC2 checks, a fixture-backed
loader (DemoS3/DemoEc2) that exposes exactly the methods the checks call,
and the posture CLI (main/run) that ties run_all and render together for
both demo and live AWS runs.

Demo mode drives the real check code through fixture-backed clients rather
than a parallel implementation, so what it demonstrates is the same code a
live run executes. Demo metadata carries no timestamp, which keeps the
whole demo output reproducible byte for byte.

All fixture data is synthetic: obviously fake account ids, example.com-style
bucket names, and RFC 5737 documentation-range IP addresses. No real account
data appears anywhere.

Test plan:

  • pytest (33 passed, including 5 new CLI tests)
  • ruff check . (clean)
  • posture --demo and posture --demo --json run via the console entry point

Demo mode drives the real check code through fixture-backed clients rather
than a parallel implementation, so what it demonstrates is the same code a
live run executes. Demo metadata carries no timestamp, which keeps the
whole demo output reproducible byte for byte.
@heath-zulu
heath-zulu merged commit 07ea7a2 into main Aug 14, 2026
1 check passed
@heath-zulu
heath-zulu deleted the task-5-demo-cli branch August 14, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant