Skip to content

fix filter content type #83

fix filter content type

fix filter content type #83

GitHub Actions / Test report succeeded Jul 5, 2024 in 0s

158 passed, 0 failed and 0 skipped

Tests passed successfully

✅ unit-tests.xml

158 tests were completed in 79s with 158 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
github.com/pubgo/lava/clients/grpcc 0ms
github.com/pubgo/lava/clients/grpcc/grpcc_config 0ms
github.com/pubgo/lava/clients/grpcc/grpcc_lb/p2c 0ms
github.com/pubgo/lava/clients/grpcc/grpcc_resolver 0ms
github.com/pubgo/lava/clients/resty 1✅ 52ms
github.com/pubgo/lava/cmds/app 0ms
github.com/pubgo/lava/cmds/depcmd 0ms
github.com/pubgo/lava/cmds/ent 0ms
github.com/pubgo/lava/cmds/gencmd 0ms
github.com/pubgo/lava/cmds/grpcservercmd 0ms
github.com/pubgo/lava/cmds/healthcmd 0ms
github.com/pubgo/lava/cmds/httpservercmd 0ms
github.com/pubgo/lava/cmds/lava 0ms
github.com/pubgo/lava/cmds/migratecmd 0ms
github.com/pubgo/lava/cmds/versioncmd 0ms
github.com/pubgo/lava/core/annotation 0ms
github.com/pubgo/lava/core/debug 0ms
github.com/pubgo/lava/core/debug/debug 0ms
github.com/pubgo/lava/core/debug/healthy 0ms
github.com/pubgo/lava/core/debug/pprof 0ms
github.com/pubgo/lava/core/debug/process 0ms
github.com/pubgo/lava/core/debug/statsviz 0ms
github.com/pubgo/lava/core/debug/trace 0ms
github.com/pubgo/lava/core/debug/vars 0ms
github.com/pubgo/lava/core/debug/version 0ms
github.com/pubgo/lava/core/discovery 0ms
github.com/pubgo/lava/core/encoding 0ms
github.com/pubgo/lava/core/encoding/bytes 0ms
github.com/pubgo/lava/core/encoding/json 0ms
github.com/pubgo/lava/core/encoding/msgpack 0ms
github.com/pubgo/lava/core/encoding/protobuf 0ms
github.com/pubgo/lava/core/encoding/protojson 0ms
github.com/pubgo/lava/core/entmigrates 0ms
github.com/pubgo/lava/core/flags 0ms
github.com/pubgo/lava/core/healthy 0ms
github.com/pubgo/lava/core/lifecycle 0ms
github.com/pubgo/lava/core/logging 0ms
github.com/pubgo/lava/core/logging/logext/grpclog 1✅ 5ms
github.com/pubgo/lava/core/logging/logext/stdlog 1✅ 7ms
github.com/pubgo/lava/core/logging/logkey 0ms
github.com/pubgo/lava/core/metrics 0ms
github.com/pubgo/lava/core/metrics/drivers/prometheus 0ms
github.com/pubgo/lava/core/migrates 0ms
github.com/pubgo/lava/core/orm 0ms
github.com/pubgo/lava/core/orm/drivers/mysql 0ms
github.com/pubgo/lava/core/orm/drivers/postgres 0ms
github.com/pubgo/lava/core/orm/drivers/sqlite 0ms
github.com/pubgo/lava/core/orm/ormutil 0ms
github.com/pubgo/lava/core/pidfile 0ms
github.com/pubgo/lava/core/registry 0ms
github.com/pubgo/lava/core/registry/drivers/mdns 0ms
github.com/pubgo/lava/core/responses 1✅ 7ms
github.com/pubgo/lava/core/scheduler 0ms
github.com/pubgo/lava/core/service 0ms
github.com/pubgo/lava/core/signal 0ms
github.com/pubgo/lava/core/sqlmock 2✅ 19ms
github.com/pubgo/lava/core/tracing 0ms
github.com/pubgo/lava/internal/consts 0ms
github.com/pubgo/lava/internal/example/grpc 0ms
github.com/pubgo/lava/internal/example/grpc/internal/bootstrap 0ms
github.com/pubgo/lava/internal/example/grpc/internal/handlers/gid_handler 0ms
github.com/pubgo/lava/internal/example/grpc/internal/services/gid_client 0ms
github.com/pubgo/lava/internal/example/grpc/pkg/proto/gidpb 0ms
github.com/pubgo/lava/internal/example/grpc/scripts/client 5ms
github.com/pubgo/lava/internal/example/grpc/taskcmd 0ms
github.com/pubgo/lava/internal/example/tunnel 0ms
github.com/pubgo/lava/internal/logutil 1✅ 5ms
github.com/pubgo/lava/internal/middlewares/middleware_accesslog 0ms
github.com/pubgo/lava/internal/middlewares/middleware_metric 0ms
github.com/pubgo/lava/internal/middlewares/middleware_recovery 0ms
github.com/pubgo/lava/internal/middlewares/middleware_service_info 0ms
github.com/pubgo/lava/lava 0ms
github.com/pubgo/lava/pkg/cmdutil 0ms
github.com/pubgo/lava/pkg/fasttemplate 0ms
github.com/pubgo/lava/pkg/fiber_builder 0ms
github.com/pubgo/lava/pkg/gateway 0ms
github.com/pubgo/lava/pkg/gateway/internal/routex 151✅ 11ms
github.com/pubgo/lava/pkg/grpc_builder 0ms
github.com/pubgo/lava/pkg/grpcutil 0ms
github.com/pubgo/lava/pkg/httputil 0ms
github.com/pubgo/lava/pkg/k8sutil 0ms
github.com/pubgo/lava/pkg/netutil 0ms
github.com/pubgo/lava/pkg/proto/errcodepb 0ms
github.com/pubgo/lava/pkg/proto/lavapbv1 0ms
github.com/pubgo/lava/pkg/proto/metadatapb 0ms
github.com/pubgo/lava/pkg/wsproxy 0ms
github.com/pubgo/lava/pkg/wsutil 0ms
github.com/pubgo/lava/servers/grpcs 0ms
github.com/pubgo/lava/servers/https 0ms
github.com/pubgo/lava/servers/https/httprouter 0ms
github.com/pubgo/lava/servers/tasks 0ms
github.com/pubgo/lava/servers/wss 0ms
github.com/pubgo/lava/services/errorservice 0ms
github.com/pubgo/lava/services/metadata 0ms

✅ 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/internal/routex

✅ TestPath_SafeLiterals
✅ TestRouteTrie_Insert
✅ TestRouteTrie_FindTarget//bob/lob/law/GET
✅ TestPath_ParsePathTemplate//my%2fcool-blog~about%2Cstuff%5Bwat%5D/{var={abc=%2F%2A}/{def=%2F%2A/**}}:baz
✅ 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
✅ 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//v1/{Name=shelves/*/books/*}
✅ 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//foo/bar:baz/buzz
✅ 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-}
✅ TestPath_ParsePathTemplate//{-}
✅ TestPath_ParsePathTemplate//{_}
✅ TestPath_ParsePathTemplate//{field.1}
✅ TestPath_ParsePathTemplate//{1}
✅ TestPath_ParsePathTemplate
✅ 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
✅ TestPath_Escaping/foo%2fbar
✅ TestPath_Escaping/foo%2Fbar#01
✅ TestPath_Escaping/foo%252Fbar
✅ TestPath_Escaping/foo%2Fbar
✅ TestPath_Escaping