create-go-app / fiber-go-template

πŸ“ Production-ready backend template with Fiber Go Web Framework for Create Go App CLI.
https://github.com/create-go-app/cli/wiki
Apache License 2.0
960 stars 122 forks source link

Update dependencies, migrate to Fiber middlewares #199

Closed gaby closed 1 year ago

gaby commented 1 year ago

Hello, GoFiber maintainer here! This PR is to update all the dependencies and also migrate to the new middlewares for JWT, Swagger.

Ping @koddr

All the linters/checks pass, the only thing not passing is two of the unit-tests as reported in #179

=== RUN   TestPrivateRoutes
    private_routes_test.go:108: 
            Error Trace:    /home/ubuntu/Desktop/git/fix/fiber-go-template/pkg/routes/private_routes_test.go:108
            Error:          Not equal: 
                            expected: 400
                            actual  : 401
            Test:           TestPrivateRoutes
            Messages:       delete book without JWT and body
    private_routes_test.go:108: 
            Error Trace:    /home/ubuntu/Desktop/git/fix/fiber-go-template/pkg/routes/private_routes_test.go:108
            Error:          Not equal: 
                            expected: 404
                            actual  : 500
            Test:           TestPrivateRoutes
            Messages:       delete book with credentials
--- FAIL: TestPrivateRoutes (0.03s)
=== RUN   TestPublicRoutes
    public_routes_test.go:66: 
            Error Trace:    /home/ubuntu/Desktop/git/fix/fiber-go-template/pkg/routes/public_routes_test.go:66
            Error:          Not equal: 
                            expected: 404
                            actual  : 500
            Test:           TestPublicRoutes
            Messages:       get book by ID
--- FAIL: TestPublicRoutes (0.03s)
FAIL
    github.com/create-go-app/fiber-go-template/pkg/routes   coverage: 73.3% of statements
FAIL    github.com/create-go-app/fiber-go-template/pkg/routes   0.075s
FAIL
welcome[bot] commented 1 year ago

Thanks for opening this pull request! πŸŽ‰ Please check out our contributing guidelines.

welcome[bot] commented 1 year ago

Congrats on merging your first pull request! πŸŽ‰ We here at Create Go App are proud of you!