Skip to content

chore(tests): move issue7 acceptance check into tests/ as pytest - #124

Merged
rrskris merged 2 commits into
kaaval:mainfrom
donkk11:chore/move-issue7-acceptance-to-tests
Aug 13, 2026
Merged

rrskris merged 2 commits into
kaaval:mainfrom
donkk11:chore/move-issue7-acceptance-to-tests

Conversation

@donkk11

@donkk11 donkk11 commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #108 per @rrskris's review — moved check_issue7_acceptance.py into tests/test_issue7_acceptance.py as a proper pytest case, parametrized across the 5 output modes, so it runs in CI instead of only when someone remembers to invoke it by hand.

Same assertions and fixture as the original (restored the explicit assert ..., value diagnostic messages after an independent second-model review flagged their absence). Verified locally against current main — 6/6 passing.

Thanks again for catching the live-mode RBAC gap, and for running the acceptance check yourself rather than trusting the PR description.

@rrskris

rrskris commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

The only thing blocking this is DCO, and it's a mechanical fix — nothing wrong with the code.

Neither of your two commits carries a Signed-off-by: trailer, so --amend -s won't be enough (that only reaches the last one). Sign off both:

git checkout chore/move-issue7-acceptance-to-tests
git rebase --signoff HEAD~2
git push --force-with-lease

The trailer has to match your commit author identity — KK Nkama <[email protected]> — which --signoff handles for you as long as your user.name/user.email are still set the same way. DCO re-runs on push and everything else here is already green.

On the change itself

The substance is right, and I want to name the specific thing you did well: you took a review note about a hand-run script and turned it into something CI enforces, rather than just moving the file. Parametrizing across the 5 output modes is more than the note asked for.

Restoring the assert diagnostic messages was the right call too. A bare assert x == y in a converted script is the classic way a test gets less useful than the thing it replaced — you'd still know it failed, but not what the value was. Good that your second reviewer caught it and better that you didn't wave it off as cosmetic.

Note that #7 is now closed — your #108 implemented it, and I closed it today with the verification recorded. This PR doesn't need re-scoping; it's test-harness hygiene and stands on its own regardless of the issue state.

After this

You've now done a CLI feature (#81), an RBAC rule (#108), and a test-infrastructure cleanup — that's a wider range than most people get to in three PRs. Two that fit how you work, and nobody else is on either:

  • Publish the GitHub Action to the Marketplace #34 — publish the GitHub Action to the Marketplace. area/cli, and the natural continuation of your --version/JUnit work. The final publish step needs my account, but the prep (action metadata, versioning/tagging story, README usage block) is the actual work and it's all yours.
  • Expose a Prometheus /metrics endpoint #3 — expose a Prometheus /metrics endpoint. Self-contained, and it's the piece that makes Kaaval observable in a real cluster rather than just runnable.

Comment on either and I'll assign it same-day so nobody doubles up on you. Sign off the commits and I'll merge this as soon as DCO goes green.

donkk11 added 2 commits August 7, 2026 15:13
Per @rrskris's review on kaaval#108: check_issue7_acceptance.py was a standalone
script that only ran when someone remembered to invoke it by hand. Moved
its logic into tests/test_issue7_acceptance.py so it runs in CI like
everything else. Same assertions, same fixtures, now parametrized across
the 5 output modes instead of a manual loop.

Verified locally against current main (6/6 passed):
  ./.venv/bin/pytest tests/test_issue7_acceptance.py -v

Signed-off-by: KK Nkama <[email protected]>
Codex (independent bridge verifier) caught that the pytest conversion
dropped the original script's assert-message values (assert ..., sev /
assert ..., kinds), reducing failure diagnostics. Restored them.

Verified locally (6/6 passed):
  ./.venv/bin/pytest tests/test_issue7_acceptance.py -v

Signed-off-by: KK Nkama <[email protected]>
@donkk11
donkk11 force-pushed the chore/move-issue7-acceptance-to-tests branch from 5967cc4 to 9302f9a Compare August 7, 2026 13:13
@rrskris
rrskris merged commit e554b7d into kaaval:main Aug 13, 2026
7 checks passed
rrskris added a commit that referenced this pull request Aug 13, 2026
Adds release-notes entries for the five contributor PRs merged today:
Grype ingestion (#123, @Diyaaa-12), combo-escalation remediation and rule
catalog (#133, @Maqbool61), the combination-takeover fixture (#152,
@Maqbool61), the Postgres-unreachable test skip (#151, @HeaTTap — first
contribution), and the CIS 5.1.6 acceptance check moving into CI (#124,
@donkk11). Also records the fixture-comment correction from #157.

Signed-off-by: Vamshi Krishna Santhapuri <[email protected]>
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.

2 participants