🧪 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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user