You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by ra...@apache.org on 2021/09/23 09:54:30 UTC

[dubbo-spi-extensions] branch master updated: [ISSUE #69] add the readme file to dubbo-mock-extensions. (#70)

This is an automated email from the ASF dual-hosted git repository.

ranke pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-spi-extensions.git


The following commit(s) were added to refs/heads/master by this push:
     new f39181a  [ISSUE #69] add the readme file to dubbo-mock-extensions. (#70)
f39181a is described below

commit f39181a71a45608a63fa09d4962be08b09f1add5
Author: brotherlu-xcq <12...@qq.com>
AuthorDate: Thu Sep 23 17:53:58 2021 +0800

    [ISSUE #69] add the readme file to dubbo-mock-extensions. (#70)
---
 dubbo-mock-extensions/README.md    | 19 +++++++++++++++++++
 dubbo-mock-extensions/README_ch.md | 20 ++++++++++++++++++++
 2 files changed, 39 insertions(+)

diff --git a/dubbo-mock-extensions/README.md b/dubbo-mock-extensions/README.md
new file mode 100644
index 0000000..3d9823c
--- /dev/null
+++ b/dubbo-mock-extensions/README.md
@@ -0,0 +1,19 @@
+# Dubbo Mock Extension
+[中文](README_ch.md)
+> Dubbo Mock Extension is a module provided to [dubbo](https://github.com/apache/dubbo) users to simulate returning data without a service provider. It only needs to cooperate with [dubbo-admin](https: //github.com/apache/dubbo-admin) can easily simulate the returned data without a service provider. 
+> During the development process, there is no need to wait for the service provider to complete the development and deployment of the service provider before subsequent development and testing can be carried out, which reduces the obstruction caused by the dependence on the service provider and improves the development efficiency.
+
+## How to use.
+- Add the dependency.
+```xml
+<denpendency>
+    <groupId>org.apache.dubbo.extensions</groupId>
+    <artifactId>dubbo-mock-admin</artifactId>
+    <version>last</version>
+</denpendency>
+```
+- enable the mock flag.
+Add the ``` -Denable.dubbo.admin.mock=true ``` into your JVM parameter to enable this function.
+
+- config the mock rule.
+Config mock rule in Dubbo Admin, Service Mock tab.
diff --git a/dubbo-mock-extensions/README_ch.md b/dubbo-mock-extensions/README_ch.md
new file mode 100644
index 0000000..8f0a2a0
--- /dev/null
+++ b/dubbo-mock-extensions/README_ch.md
@@ -0,0 +1,20 @@
+# Dubbo Mock Extension
+[English](README.md)
+> Dubbo Mock Extension是提供给[dubbo](https://github.com/apache/dubbo)用户用于在没有服务提供者的情况下模拟返回数据的模块,只需要配合[dubbo-admin](https://github.com/apache/dubbo-admin)就可以在没有服务提供者的情况下轻松模拟返回数据。
+> 在开发过程中无需等待服务提供方将服务提供者实现开发和部署完成才能进行后续开发和测试,减少对服务提供者的依赖造成的阻塞,提升开发效率。
+
+## 如何使用
+- 引入依赖
+```xml
+<denpendency>
+    <groupId>org.apache.dubbo.extensions</groupId>
+    <artifactId>dubbo-mock-admin</artifactId>
+    <version>last</version>
+</denpendency>
+```
+
+- 开启模拟返回开关
+将``` -Denable.dubbo.admin.mock=true ```添加到JVM启动参数中。
+
+- 配置模拟规则
+在[dubbo-admin](https://github.com/apache/dubbo-admin)的服务Mock菜单栏进行模拟规则的配置。