You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Correct privacy template test - use privacy-logrotate.j2 not 99-privacy-enhanced.j2
## Issue Resolution
### Template Name Confusion Fixed
- **Problem**: Test expected `99-privacy-enhanced.j2` template (which shouldn't exist)
- **Reality**: Task uses `privacy-logrotate.j2` template to create `/etc/logrotate.d/99-privacy-enhanced` file
- **Solution**: Updated test to use correct template name `privacy-logrotate.j2`
### Implementation Details
- **✅ Correct Flow**: `privacy-logrotate.j2` → `/etc/logrotate.d/99-privacy-enhanced`
- **❌ Wrong Expectation**: Looking for `99-privacy-enhanced.j2` template file
- **✅ Fixed**: Test now validates the actual template that creates the logrotate config
### Enhanced Test Coverage
- **Added privacy-logrotate.j2** to active template tests
- **Updated test variables** with missing logrotate parameters:
- `rotate_count: 3`
- `daily_rotation: True`
- **Added proper validation** for logrotate template content:
- Rotation count configuration
- Max age settings
- Syslog rotation rules
### Why This Matters
The original question "Why is this intentionally unimplemented?" was correct - there was no good reason for the template to be missing. The actual issue was:
1. **The template exists** (`privacy-logrotate.j2`)
2. **The test was wrong** (looking for non-existent `99-privacy-enhanced.j2`)
3. **The functionality works** (creates `/etc/logrotate.d/99-privacy-enhanced` correctly)
## Test Results
- ✅ **4/4 privacy tests passing**
- ✅ **Complete template coverage** for all implemented privacy templates
- ✅ **Proper logrotate validation** with realistic test parameters
This resolves the template gap feedback completely - all privacy templates that should exist are now properly tested.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments