You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by xi...@apache.org on 2021/01/19 12:18:09 UTC

[shardingsphere] branch master updated: Remove useless sql-case page (#9095)

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

xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b6686b  Remove useless sql-case page (#9095)
9b6686b is described below

commit 9b6686bec4229da05f322f37b23f86a9eb775bcc
Author: Liang Zhang <te...@163.com>
AuthorDate: Tue Jan 19 20:17:46 2021 +0800

    Remove useless sql-case page (#9095)
---
 .../test-engine/integration-test-engine.cn.md      |   4 +--
 .../test-engine/integration-test-engine.en.md      |   4 +--
 .../features/test-engine/parse-test-engine.cn.md   |   4 +--
 .../features/test-engine/parse-test-engine.en.md   |   4 +--
 .../features/test-engine/performance-test.cn.md    |   4 +--
 .../features/test-engine/performance-test.en.md    |   4 +--
 .../features/test-engine/rewrite-test-engine.cn.md |   4 +--
 .../features/test-engine/rewrite-test-engine.en.md |   4 +--
 .../content/features/test-engine/sql-case.cn.md    |  30 ---------------------
 .../content/features/test-engine/sql-case.en.md    |  28 -------------------
 docs/document/static/img/test-engine/sql-case.jpg  | Bin 216388 -> 0 bytes
 11 files changed, 16 insertions(+), 74 deletions(-)

diff --git a/docs/document/content/features/test-engine/integration-test-engine.cn.md b/docs/document/content/features/test-engine/integration-test-engine.cn.md
index a8180fa..57aea00 100644
--- a/docs/document/content/features/test-engine/integration-test-engine.cn.md
+++ b/docs/document/content/features/test-engine/integration-test-engine.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.2. </b>"
+pre = "<b>3.9.1. </b>"
 title = "整合测试引擎"
-weight = 2
+weight = 1
 +++
 
 SQL解析单元测试全面覆盖SQL占位符和字面量维度。
diff --git a/docs/document/content/features/test-engine/integration-test-engine.en.md b/docs/document/content/features/test-engine/integration-test-engine.en.md
index cbdb5c9..3739d9f 100644
--- a/docs/document/content/features/test-engine/integration-test-engine.en.md
+++ b/docs/document/content/features/test-engine/integration-test-engine.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.2. </b>"
+pre = "<b>3.9.1. </b>"
 title = "Integration Test Engine"
-weight = 2
+weight = 1
 +++
 
 The SQL parsing unit test covers both SQL placeholder and literal dimension. 
diff --git a/docs/document/content/features/test-engine/parse-test-engine.cn.md b/docs/document/content/features/test-engine/parse-test-engine.cn.md
index 2d203da..5bef4c4 100644
--- a/docs/document/content/features/test-engine/parse-test-engine.cn.md
+++ b/docs/document/content/features/test-engine/parse-test-engine.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.3. </b>"
+pre = "<b>3.9.2. </b>"
 title = "SQL解析测试引擎"
-weight = 3
+weight = 2
 +++
 
 ## 数据准备
diff --git a/docs/document/content/features/test-engine/parse-test-engine.en.md b/docs/document/content/features/test-engine/parse-test-engine.en.md
index cb74eb2..488512b 100644
--- a/docs/document/content/features/test-engine/parse-test-engine.en.md
+++ b/docs/document/content/features/test-engine/parse-test-engine.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.3. </b>"
+pre = "<b>3.9.2. </b>"
 title = "SQL Parse Test Engine"
-weight = 3
+weight = 2
 +++
 
 ## Prepare Data
diff --git a/docs/document/content/features/test-engine/performance-test.cn.md b/docs/document/content/features/test-engine/performance-test.cn.md
index b2a3e35..0b23e22 100644
--- a/docs/document/content/features/test-engine/performance-test.cn.md
+++ b/docs/document/content/features/test-engine/performance-test.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.5. </b>"
+pre = "<b>3.9.4. </b>"
 title = "性能测试"
-weight = 5
+weight = 4
 +++
 
 ## 目标
diff --git a/docs/document/content/features/test-engine/performance-test.en.md b/docs/document/content/features/test-engine/performance-test.en.md
index 6c36667..6c375e3 100644
--- a/docs/document/content/features/test-engine/performance-test.en.md
+++ b/docs/document/content/features/test-engine/performance-test.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.5. </b>"
+pre = "<b>3.9.4. </b>"
 title = "Performance Test"
-weight = 5
+weight = 4
 +++
 
 ## Target
diff --git a/docs/document/content/features/test-engine/rewrite-test-engine.cn.md b/docs/document/content/features/test-engine/rewrite-test-engine.cn.md
index 705c51e..95e01ba 100644
--- a/docs/document/content/features/test-engine/rewrite-test-engine.cn.md
+++ b/docs/document/content/features/test-engine/rewrite-test-engine.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.4. </b>"
+pre = "<b>3.9.3. </b>"
 title = "SQL改写测试引擎"
-weight = 4
+weight = 3
 +++
 
 ## 目标
diff --git a/docs/document/content/features/test-engine/rewrite-test-engine.en.md b/docs/document/content/features/test-engine/rewrite-test-engine.en.md
index be96a5b..8f8a597 100644
--- a/docs/document/content/features/test-engine/rewrite-test-engine.en.md
+++ b/docs/document/content/features/test-engine/rewrite-test-engine.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.9.4. </b>"
+pre = "<b>3.9.3. </b>"
 title = "SQL Rewrite Test Engine"
-weight = 4
+weight = 3
 +++
 
 ## Target
diff --git a/docs/document/content/features/test-engine/sql-case.cn.md b/docs/document/content/features/test-engine/sql-case.cn.md
deleted file mode 100644
index da24315..0000000
--- a/docs/document/content/features/test-engine/sql-case.cn.md
+++ /dev/null
@@ -1,30 +0,0 @@
-+++
-pre = "<b>3.9.1. </b>"
-title = "SQL测试用例"
-weight = 1
-+++
-
-## 目标
-
-SQL测试用例的代码位于 `sharding-sql-test` 模块下。该测试用例的作用主要有两个:
-  
-  1. 通过单元测试,测试通配符的替换以及 `SQLCasesLoader` 的稳定性。
-  2. 将SQL测试用例中 `resources` 下定义的所有 SQL 共享给其他项目。
-
-待测试的 SQL 存放在 `/sharding-sql-test/src/main/resources/sql/sharding/SQL-TYPE/*.xml`文件中。例如:
-
-```xml
-<sql-cases>
-    <sql-case id="select_constant_without_table" value="SELECT 1 as a" />
-    <sql-case id="select_with_same_table_name_and_alias" value="SELECT t_order.* FROM t_order t_order WHERE user_id = ? AND order_id = ?" />
-    <sql-case id="select_with_same_table_name_and_alias_column_with_owner" value="SELECT t_order.order_id,t_order.user_id,status FROM t_order t_order WHERE t_order.user_id = ? AND order_id = ?" db-types="MySQL,H2"/>
-</sql-cases>
-```
-
-开发者通过该文件指定待断言的 SQL 以及该 SQL 所适配的数据库类型。将 `sharding-sql-test` 提取为单独的模块,以保证每个 SQL 用例可以在不同模块的测试引擎中共享。
-
-### 流程
-
-如下图为 SQL 测试用例的数据流程:
-
-![测试引擎](https://shardingsphere.apache.org/document/current/img/test-engine/sql-case.jpg)
diff --git a/docs/document/content/features/test-engine/sql-case.en.md b/docs/document/content/features/test-engine/sql-case.en.md
deleted file mode 100644
index 008716c..0000000
--- a/docs/document/content/features/test-engine/sql-case.en.md
+++ /dev/null
@@ -1,28 +0,0 @@
-+++
-pre = "<b>3.9.1. </b>"
-title = "SQL Case"
-weight = 1
-+++
-
-## Target
-
-The code for SQL case is in module `sharding-sql-test`.There are two targets for this module:
-  
-  1. Test the wildcard replacement by unit test.
-  2. Share the SQL resource in `resources` folder.
-
-```xml
-<sql-cases>
-    <sql-case id="select_constant_without_table" value="SELECT 1 as a" />
-    <sql-case id="select_with_same_table_name_and_alias" value="SELECT t_order.* FROM t_order t_order WHERE user_id = ? AND order_id = ?" />
-    <sql-case id="select_with_same_table_name_and_alias_column_with_owner" value="SELECT t_order.order_id,t_order.user_id,status FROM t_order t_order WHERE t_order.user_id = ? AND order_id = ?" db-types="MySQL,H2"/>
-</sql-cases>
-```
-
-Developer setup the SQL for assertion and database type during on the configuration file. And these SQLs could share in different test engine, that's why we extract the `sharding-sql-test` as a stand alone module.
-
-### Process
-
-Following is the data handling process in SQL case :
-
-![Test Engine](https://shardingsphere.apache.org/document/current/img/test-engine/sql-case.jpg)
diff --git a/docs/document/static/img/test-engine/sql-case.jpg b/docs/document/static/img/test-engine/sql-case.jpg
deleted file mode 100644
index af1eb56..0000000
Binary files a/docs/document/static/img/test-engine/sql-case.jpg and /dev/null differ