Feat: add grpc gateway http rule #77
GitHub Actions / Test report
succeeded
Jun 30, 2024 in 0s
159 passed, 1 failed and 0 skipped
❌ unit-tests.xml
160 tests were completed in 80s with 159 passed, 1 failed and 0 skipped.
✅ github.com/pubgo/lava/clients/resty
✅ TestParams
✅ github.com/pubgo/lava/core/logging/logext/grpclog
✅ TestName
✅ github.com/pubgo/lava/core/logging/logext/stdlog
✅ TestName
✅ github.com/pubgo/lava/core/responses
✅ TestResponse
✅ github.com/pubgo/lava/core/sqlmock
✅ TestAnyTime
✅ TestMock
✅ github.com/pubgo/lava/internal/logutil
✅ TestName
❌ github.com/pubgo/lava/pkg/gateway
❌ TestMain
FAIL github.com/pubgo/lava/pkg/gateway [build failed]
✅ github.com/pubgo/lava/pkg/gateway/internal/routertree
✅ TestName
✅ github.com/pubgo/lava/pkg/gateway/internal/routex
✅ TestPath_ParsePathTemplate//my%2fcool-blog~about%2Cstuff%5Bwat%5D/{var={abc=%2F%2A}/{def=%2F%2A/**}}:baz
✅ TestPath_ParsePathTemplate//v1/{Name=shelves/*/books/*}
✅ TestPath_SafeLiterals
✅ TestPath_ParsePathTemplate//foo%2Fbar/%2A/%2A%2a/{starstar=%2A%2a/**}:%2c
✅ TestPath_ParsePathTemplate//foo/blah/{longest_var={long_var.a={medium.a={short.aa}/*/{short.ab}/foo}/*}/{long_var.b={medium.b={short.ba}/*/{short.bb}/foo}/{last=**}}}:details
✅ TestPath_ParsePathTemplate//foo/bob/{book_id={author}/{isbn}/*}/details
✅ TestPath_ParsePathTemplate//foo/bar/*/{thing.id}/{cat=**}:cancel
✅ TestPath_ParsePathTemplate//foo/bar/*/{thing.id}/{cat=**}:do
✅ TestPath_ParsePathTemplate//foo/bar/*/{thing.id}/{cat=**}
✅ TestPath_ParsePathTemplate//foo/bar/{Name}/baz/{child.id}/buzz/{child.thing.id}
✅ TestPath_ParsePathTemplate//foo/bar/{Name}/baz/{child}
✅ TestPath_ParsePathTemplate//foo/bar/{Name}
✅ TestPath_ParsePathTemplate//foo/bar/baz/buzz
✅ TestPath_ParsePathTemplate//v3/{Name=events/*}:cancel
✅ TestPath_ParsePathTemplate//v3/events:clear
✅ TestPath_ParsePathTemplate//v1:watch
✅ TestPath_ParsePathTemplate//v1/{book.Name=shelves/*/books/*}
✅ TestPath_ParsePathTemplate//v1/{parent=shelves/*}/books
✅ TestPath_ParsePathTemplate//foo/bar:baz/buzz
✅ TestPath_ParsePathTemplate//f/bar
✅ TestPath_ParsePathTemplate//{a}/{a}
✅ TestPath_ParsePathTemplate//foo/**/bar
✅ TestPath_ParsePathTemplate//foo/bar/***
✅ TestPath_ParsePathTemplate//foo/bar*
✅ TestPath_ParsePathTemplate//foo/bar%55:baz%1
✅ TestPath_ParsePathTemplate//{hello}/world
✅ TestPath_ParsePathTemplate//foo/bar:baz%12xyz%abcde
✅ TestPath_ParsePathTemplate//foo/{bar/baz}/buzz
✅ TestPath_ParsePathTemplate//{field-}
✅ TestPath_ParsePathTemplate//foo/bar/
✅ TestPath_ParsePathTemplate/foo/bar/baz
✅ TestPath_ParsePathTemplate//foo/bar/baz_buzz
✅ TestPath_ParsePathTemplate//foo/bar/baz?abc=def
✅ TestPath_ParsePathTemplate//{field.1}
✅ TestPath_ParsePathTemplate//{-}
✅ TestPath_ParsePathTemplate//{_}
✅ TestPath_ParsePathTemplate//{1}
✅ TestPath_ParsePathTemplate
✅ TestRouteTrie_FindTarget//bob/lob/law/GET
✅ TestRouteTrie_Insert
✅ TestPath_Escaping/foo
✅ TestRouteTrie_FindTarget//foo/bar/baz/%2f/%2A/%2f/GET
✅ TestRouteTrie_FindTarget//Verb/GET
✅ TestRouteTrie_FindTarget//Verb:/GET
✅ TestRouteTrie_FindTarget//trailing/:slash/GET
✅ TestRouteTrie_FindTarget//trailing:slash/GET
✅ TestRouteTrie_FindTarget//foo/blah/A/B/C/foo/D/E/F/G/foo/H/I/J/K/L/M:details/GET
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details:do/GET
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details/GET
✅ TestRouteTrie_FindTarget/foo/bar/baz/123/buzz/buzz:blah/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:cancel/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/fizz/buzz/frob/nitz:do/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:do/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/GET
✅ TestRouteTrie_FindTarget//foo/bar/1/baz/2/buzz/3/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/baz/buzz/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/buzz/GET
✅ TestRouteTrie_FindTarget//foo/bob/lob/law/GET
✅ TestRouteTrie_FindTarget//foo/bar/baz/GET
✅ TestRouteTrie_FindTarget//bob/lob/law/PUT
✅ TestRouteTrie_FindTarget//bob/lob/law/DELETE
✅ TestRouteTrie_FindTarget//bob/lob/law/POST
✅ TestRouteTrie_FindTarget//bob/lob/law
✅ TestPath_Escaping/foo%2fbar
✅ TestPath_Escaping/foo%2Fbar#01
✅ TestPath_Escaping/foo%252Fbar
✅ TestPath_Escaping/foo%2Fbar
✅ TestPath_Escaping
✅ TestRouteTrie_FindTarget//foo/bar/baz/%2f/%2A/%2f/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/%2f/%2A/%2f/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/%2f/%2A/%2f/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/%2f/%2A/%2f
✅ TestRouteTrie_FindTarget//Verb/PUT
✅ TestRouteTrie_FindTarget//Verb/DELETE
✅ TestRouteTrie_FindTarget//Verb/POST
✅ TestRouteTrie_FindTarget//Verb
✅ TestRouteTrie_FindTarget//Verb:/PUT
✅ TestRouteTrie_FindTarget//Verb:/DELETE
✅ TestRouteTrie_FindTarget//Verb:/POST
✅ TestRouteTrie_FindTarget//Verb:
✅ TestRouteTrie_FindTarget//trailing/:slash/PUT
✅ TestRouteTrie_FindTarget//trailing/:slash/DELETE
✅ TestRouteTrie_FindTarget//trailing/:slash/POST
✅ TestRouteTrie_FindTarget//trailing/:slash
✅ TestRouteTrie_FindTarget//trailing:slash/PUT
✅ TestRouteTrie_FindTarget//trailing:slash/DELETE
✅ TestRouteTrie_FindTarget//trailing:slash/POST
✅ TestRouteTrie_FindTarget//trailing:slash
✅ TestRouteTrie_FindTarget//foo/blah/A/B/C/foo/D/E/F/G/foo/H/I/J/K/L/M:details/PUT
✅ TestRouteTrie_FindTarget//foo/blah/A/B/C/foo/D/E/F/G/foo/H/I/J/K/L/M:details/DELETE
✅ TestRouteTrie_FindTarget//foo/blah/A/B/C/foo/D/E/F/G/foo/H/I/J/K/L/M:details/POST
✅ TestRouteTrie_FindTarget//foo/blah/A/B/C/foo/D/E/F/G/foo/H/I/J/K/L/M:details
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details:do/PUT
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details:do/DELETE
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details:do/POST
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details:do
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details/PUT
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details/DELETE
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details/POST
✅ TestRouteTrie_FindTarget//foo/bob/bar/baz/123/details
✅ TestRouteTrie_FindTarget/foo/bar/baz/123/buzz/buzz:blah/PUT
✅ TestRouteTrie_FindTarget/foo/bar/baz/123/buzz/buzz:blah/DELETE
✅ TestRouteTrie_FindTarget/foo/bar/baz/123/buzz/buzz:blah/POST
✅ TestRouteTrie_FindTarget/foo/bar/baz/123/buzz/buzz:blah
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:cancel/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:cancel/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:cancel/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:cancel
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/fizz/buzz/frob/nitz:do/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/fizz/buzz/frob/nitz:do/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/fizz/buzz/frob/nitz:do/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/fizz/buzz/frob/nitz:do
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:do/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:do/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:do/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz:do
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/buzz
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/buzz
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/123/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/123
✅ TestRouteTrie_FindTarget//foo/bar/1/baz/2/buzz/3/PUT
✅ TestRouteTrie_FindTarget//foo/bar/1/baz/2/buzz/3/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/1/baz/2/buzz/3/POST
✅ TestRouteTrie_FindTarget//foo/bar/1/baz/2/buzz/3
✅ TestRouteTrie_FindTarget//foo/bar/baz/baz/buzz/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/baz/buzz/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/baz/buzz/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/baz/buzz
✅ TestRouteTrie_FindTarget//foo/bar/baz/buzz/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/buzz/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/buzz/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz/buzz
✅ TestRouteTrie_FindTarget//foo/bob/lob/law/PUT
✅ TestRouteTrie_FindTarget//foo/bob/lob/law/DELETE
✅ TestRouteTrie_FindTarget//foo/bob/lob/law/POST
✅ TestRouteTrie_FindTarget//foo/bob/lob/law
✅ TestRouteTrie_FindTarget//foo/bar/baz/PUT
✅ TestRouteTrie_FindTarget//foo/bar/baz/DELETE
✅ TestRouteTrie_FindTarget//foo/bar/baz/POST
✅ TestRouteTrie_FindTarget//foo/bar/baz
✅ TestRouteTrie_FindTarget
Annotations
Check failure on line 0 in unit-tests.xml
github-actions / Test report
github.com/pubgo/lava/pkg/gateway ► TestMain
Failed test found in:
unit-tests.xml
Error:
FAIL github.com/pubgo/lava/pkg/gateway [build failed]
Raw output
FAIL github.com/pubgo/lava/pkg/gateway [build failed]
Loading