Files
Charon/backend/test_output.txt
GitHub Actions 9eb0f31e75 chore: Refactor patch coverage remediation plan and create dedicated spec file
- Moved the existing patch coverage remediation plan from `current_spec.md` to a new file `patch_coverage_spec.md` for better organization and focus on security remediation.
- Updated the goal to emphasize restoring Codecov patch coverage to green by ensuring 100% of modified lines are executed by tests.
- Defined two workstreams: one for fixing patch coverage in specific backend files and another for updating prevention measures in instructions and agent files.
- Added a detailed missing files table to track Codecov patch report line ranges and corresponding test strategies.
- Included guidance on handling partial patch lines and common patterns for missed coverage.
- Specified a remediation plan with a test-first approach and per-file testing strategies for targeted coverage improvements.
- Updated relevant instructions and agent files to enforce patch coverage requirements and improve validation processes.
2026-01-10 03:06:07 +00:00

46 lines
3.8 KiB
Plaintext

=== RUN TestResetPasswordCommand_Succeeds
time="2026-01-10T03:00:26Z" level=info msg="SQLite database connected with WAL mode enabled" journal_mode=wal
time="2026-01-10T03:00:26Z" level=info msg="SQLite database integrity check passed"
--- PASS: TestResetPasswordCommand_Succeeds (0.15s)
=== RUN TestMigrateCommand_Succeeds
time="2026-01-10T03:00:27Z" level=info msg="SQLite database connected with WAL mode enabled" journal_mode=wal
time="2026-01-10T03:00:27Z" level=info msg="SQLite database integrity check passed"
time="2026-01-10T03:00:27Z" level=info msg="SQLite database connected with WAL mode enabled" journal_mode=wal
time="2026-01-10T03:00:27Z" level=info msg="SQLite database integrity check passed"
--- PASS: TestMigrateCommand_Succeeds (0.08s)
=== RUN TestStartupVerification_MissingTables
time="2026-01-10T03:00:27Z" level=info msg="SQLite database connected with WAL mode enabled" journal_mode=wal
time="2026-01-10T03:00:27Z" level=info msg="SQLite database integrity check passed"
time="2026-01-10T03:00:27Z" level=info msg="SQLite database connected with WAL mode enabled" journal_mode=wal
time="2026-01-10T03:00:27Z" level=info msg="SQLite database integrity check passed"
main_test.go:171: Missing table for model *models.SecurityConfig
main_test.go:171: Missing table for model *models.SecurityDecision
main_test.go:171: Missing table for model *models.SecurityAudit
main_test.go:171: Missing table for model *models.SecurityRuleSet
main_test.go:171: Missing table for model *models.CrowdsecPresetEvent
main_test.go:171: Missing table for model *models.CrowdsecConsoleEnrollment
--- PASS: TestStartupVerification_MissingTables (0.05s)
PASS
coverage: 0.0% of statements
ok github.com/Wikid82/charon/backend/cmd/api 0.310s coverage: 0.0% of statements
=== RUN TestSeedMain_Smoke
{"level":"info","msg":"✓ Database migrated successfully","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created remote server: Local Docker Registry (localhost:5000)","server":"Local Docker Registry","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created remote server: Development API Server (192.168.1.100:8080)","server":"Development API Server","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created remote server: Staging Web App (staging.internal:3000)","server":"Staging Web App","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created remote server: Database Admin (localhost:8081)","server":"Database Admin","time":"2026-01-10T03:00:27Z"}
{"host":"app.local.dev","level":"info","msg":"✓ Created proxy host: app.local.dev -\u003e http://localhost:3000","time":"2026-01-10T03:00:27Z"}
{"host":"api.local.dev","level":"info","msg":"✓ Created proxy host: api.local.dev -\u003e http://192.168.1.100:8080","time":"2026-01-10T03:00:27Z"}
{"host":"docker.local.dev","level":"info","msg":"✓ Created proxy host: docker.local.dev -\u003e http://localhost:5000","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created setting: app_name = Charon","setting":"app_name","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created setting: default_scheme = http","setting":"default_scheme","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created setting: enable_ssl_by_default = false","setting":"enable_ssl_by_default","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":"✓ Created default user: admin@localhost","time":"2026-01-10T03:00:27Z","user":"admin@localhost"}
{"level":"info","msg":"\n✓ Database seeding completed successfully!","time":"2026-01-10T03:00:27Z"}
{"level":"info","msg":" You can now start the application and see sample data.","time":"2026-01-10T03:00:27Z"}
--- PASS: TestSeedMain_Smoke (0.31s)
PASS
coverage: 63.2% of statements
ok github.com/Wikid82/charon/backend/cmd/seed 0.322s coverage: 63.2% of statements
? github.com/Wikid82/charon/backend/integration [no test files]