test: update integration tests to work with embedded templates and static assets #222
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Issue #231 tracks implementing
go:embedfor templates and static assets. Oncego:embedis merged, the integration tests ininternal/handlers/integration_test.gomay need updating if they rely on template files being read from disk paths.What to do
go test -race ./...after merging feat: implement go:embed for templates and static assets to fix distroless container paths (#231)template.ParseFiles("internal/templates/...")directly or rely on file paths, update them to use the embedded FSgo testpasses without needing to run from a specific working directoryAcceptance Criteria
go test -race ./...passes from the repo rootgo test -race ./...passes from any subdirectoryos.Openortemplate.ParseFileswith relative pathsDepends on
Sprint planning: Adding
blockedlabel — this issue depends on #231 (implement go:embed). Integration tests can only be updated once the embedded FS approach is implemented.