feat(tests): add integration tests for publish functionality and enhance error handling

This commit is contained in:
Avinash Sridhar 2025-05-26 12:00:25 -04:00 • committed by Toby Padilla
commit d0a0adf620

View file

@ -9,10 +9,11 @@ import (
// Common database errors
var (
ErrNotFound = errors.New("record not found")
ErrAlreadyExists = errors.New("record already exists")
ErrInvalidInput = errors.New("invalid input")
ErrDatabase = errors.New("database error")
ErrNotFound = errors.New("record not found")
ErrAlreadyExists = errors.New("record already exists")
ErrInvalidInput = errors.New("invalid input")
ErrDatabase = errors.New("database error")
ErrInvalidVersion = errors.New("invalid version: cannot publish older version after newer version")
)
// Database defines the interface for database operations on MCPRegistry entries