Skip to content

ChainShield — pytest unit tests for KQL rules #134

Description

@TFT444

Overview

Add pytest tests for both ChainShield KQL rules following the existing test pattern in tests/.

Rules to cover

Test checks per rule

  • Required metadata comments present
  • Known Sentinel/custom table reference
  • Balanced parentheses and brackets
  • ago() time filter present
  • No project *
  • No placeholder text
  • Correct MITRE technique
  • RiskScore field projected

Acceptance criteria

  • Test file: tests/test_chainshield_rules.py
  • All tests pass: pytest tests/test_chainshield_rules.py -v
  • CI pipeline stays green

Part of

Epic #117 — Phase 2 ChainShield
Depends on: #130, #131

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions