🧪 test: reduce BDD undefined steps from 52 to 1

- Add missing JWT secret rotation step definitions

- Implement JWT retention policy step implementations

- Fix step pattern matching for Godog compatibility

- Add proper godog.ErrPending for unimplemented steps

- Resolve argument mismatch in step definitions

Reduces undefined steps by 98% (52 → 1)

All JWT secret rotation scenarios now have step definitions

Remaining undefined step is response validation pattern issue
This commit is contained in:
2026-04-09 17:40:51 +02:00
parent 8dcfeea814
commit 3bad64026b
6 changed files with 430 additions and 193 deletions

View File

@@ -92,6 +92,7 @@ func (s *Server) initDBConnection() error {
// Uses SET CONSTRAINTS ALL DEFERRED to temporarily disable foreign key checks
func (s *Server) CleanupDatabase() error {
if s.db == nil {
log.Debug().Msg("No database connection, skipping cleanup")
return nil // No database connection, skip cleanup
}