8000 🧪 Fix Kind E2E audit scenario failures by abahmed · Pull Request #520 · abahmed/kwatch · GitHub
[go: up one dir, main page]

Skip to content

🧪 Fix Kind E2E audit scenario failures - #520

Merged
abahmed merged 1 commit into
mainfrom
fix/e2e-audit-scenarios
Sep 26, 2026
Merged

abahmed merged 1 commit into
mainfrom
fix/e2e-audit-scenarios

Conversation

@abahmed
@abahmed abahmed commented Sep 25, 2026
Copy link
Copy Markdown
Owner

Summary

  • Match audit entries using either the short resource name or the recorded namespace/name form.
  • Make the invalid-startup fixture comply with Kind's restricted PodSecurity profile.
  • Tolerate a short leader transition during invalid live-configuration checks.
  • Make the missing-ServiceAccount scenario create, remove, and requeue the Pod so it exercises the intended monitor path.
  • Bind the Kind scheduler health endpoint beyond loopback so control-plane recovery can be probed through the Kubernetes API.

Validation

  • go test -tags=e2e ./test/e2e/harness
  • go test -tags=e2e ./test/e2e/scenarios -run '^$'
  • go test ./...
  • make line-check
  • make test-layout-check
  • git diff --check

The changes address failures observed in real-cluster run 36129615481, where the expected incidents were emitted but namespaced audit records did not match the scenario assertions.

@abahmed
abahmed merged commit fb3bb7b into main Sep 26, 2026
9 checks passed
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

0