Skip to content

test(bait): add per-canary template correctness tests#35

Open
peg wants to merge 1 commit intomainfrom
test/bait-templates
Open

test(bait): add per-canary template correctness tests#35
peg wants to merge 1 commit intomainfrom
test/bait-templates

Conversation

@peg
Copy link
Copy Markdown
Owner

@peg peg commented Mar 25, 2026

Adds template validation tests for precision and high-tier canaries:

  • TestAWSProcTemplate — credential_process, role_arn, source_profile, no giveaway strings
  • TestSSHTemplate — ProxyCommand, Host, callback URL
  • TestK8sTemplate — server URL, current-context, valid structure
  • TestGitTemplate — credential section, helper line
  • TestTokenURLFormat — callback URL matches manifest token ID for all precision canaries

Add template-specific tests for awsproc, ssh, k8s, and git canary types,
plus a cross-type token URL format test. Extends testParams() to handle
the new types.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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