apache / dubbo-admin

The ops and reference implementation for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
3.99k stars 2.17k forks source link

[ISSUE #1143]: mock service provider #1144

Closed ev1lQuark closed 1 year ago

ev1lQuark commented 1 year ago

What is the purpose of the change

Fix: #1143

Refer to Admin Service Mock Function Introduction - Architecture Design, complete the last link of the service mock function on the admin side: MockServiceProvider

参照Admin 服务 Mock 功能简介-架构设计,完成 admin 一侧服务 mock 功能的最后一环:MockServiceProvider

Brief changelog

feat: mock service provider

Verifying this change

I have test this dubbo provider by a test consumer demo, it worked as expected.

已经通过消费者 demo 测试了这个 dubbo 提供者,能够如预期工作。

Follow this checklist to help us incorporate your contribution quickly and easily:

codecov-commenter commented 1 year ago

Codecov Report

Merging #1144 (0f8d329) into refactor-with-go (e631dc2) will decrease coverage by 0.07%. The diff coverage is 14.28%.

@@                 Coverage Diff                  @@
##           refactor-with-go    #1144      +/-   ##
====================================================
- Coverage             50.51%   50.45%   -0.07%     
====================================================
  Files                    99       99              
  Lines                  4989     4995       +6     
  Branches                 41       41              
====================================================
  Hits                   2520     2520              
- Misses                 2210     2216       +6     
  Partials                259      259              
Impacted Files Coverage Δ
pkg/admin/services/mock_rule_service_impl.go 34.14% <14.28%> (-5.86%) :arrow_down:

... and 2 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information