#!/usr/bin/env bats # Unit tests for encryption-validation.sh hook # Reference: PRD.md FR-001 (Full Disk Encryption) @test "encryption-validation.sh exists and is executable" { [ -f "/workspace/config/hooks/installed/encryption-validation.sh" ] [ -x "/workspace/config/hooks/installed/encryption-validation.sh" ] } @test "Validation checks for LUKS2 format" { grep -q "LUKS\|luks" /workspace/config/hooks/installed/encryption-validation.sh } @test "Validation checks for encryption status" { grep -q "crypt\|Crypt" /workspace/config/hooks/installed/encryption-validation.sh } @test "Validation script uses set -e for error handling" { grep -q "set -e" /workspace/config/hooks/installed/encryption-validation.sh }