dubbo-kubernetes
dubbo-kubernetes copied to clipboard
#84 feat: add test in console
add test in console using rpc reflection
If you have any question about the initialization process or cases writing. Please let me know.
基于gRPC reflection进行服务测试,基本流程如下:
- 通过reflection获取信息,包括但不限于:
- service name list
- method name list
- describe string(proto定义)
- template string(输入/输出 json 模版)
- 基于接口信息 invoke,支持unary,client stream,server stream,bi-stream模式,input format is json
应用侧需要:
- 对于gRPC应用,需要开启grpc reflection
- 对于dubbo应用,triple协议目前已经默认开启了reflection,并且与grpc reflection兼容,故可以通过grpc reflection获取接口信息(对于 dubbo go应用,测试于 d2ed4f534bdfb14f59f795297c896cf18bb72cd4,更早的版本可能会不支持 reflection/不兼容grpc reflection)
Codecov Report
Attention: Patch coverage is 37.18593%
with 125 lines
in your changes are missing coverage. Please review.
Project coverage is 45.19%. Comparing base (
4f53bb5
) to head (a8bc95d
). Report is 75 commits behind head on master.
:exclamation: Current head a8bc95d differs from pull request most recent head 417a801. Consider uploading reports for the commit 417a801 to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #159 +/- ##
==========================================
+ Coverage 44.91% 45.19% +0.27%
==========================================
Files 280 281 +1
Lines 17302 17357 +55
Branches 41 41
==========================================
+ Hits 7772 7845 +73
+ Misses 8705 8665 -40
- Partials 825 847 +22
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
LGTM. BTW, pls fix the lint problem.
I dont find lint problem, and I exec command 'make lint' in local which result is sussessful.
I'm confused. I don't know what the problem is. 🤔️
LGTM. BTW, pls fix the lint problem.
I dont find lint problem, and I exec command 'make lint' in local which result is sussessful.
I'm confused. I don't know what the problem is. 🤔️
cc @chickenlj .
IMO, you can running the command /home/runner/golangci-lint-1.56.1-linux-amd64/golangci-lint run --out-format=github-actions --timeout=30m -v --disable-all --enable=gofumpt --enable=govet --enable=staticcheck --enable=ineffassign --enable=misspell
in local machine, maybe find some questions. @dawnzzz 🤔️
IMO, you can running the command
/home/runner/golangci-lint-1.56.1-linux-amd64/golangci-lint run --out-format=github-actions --timeout=30m -v --disable-all --enable=gofumpt --enable=govet --enable=staticcheck --enable=ineffassign --enable=misspell
in local machine, maybe find some questions. @dawnzzz 🤔️
Thank you for your help, but running the command locally without errors...
@dawnzzz Above is where the lint error is reported.