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

jianglongtao 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 f9267e650cc Add some integration test case for DistSQL RAL (#23265)
f9267e650cc is described below

commit f9267e650cca8cdab1c2e39b7a30ce100a7c0f23
Author: Zichao <[email protected]>
AuthorDate: Tue Jan 3 14:22:21 2023 +1300

    Add some integration test case for DistSQL RAL (#23265)
---
 .../empty_rules/cluster/show_compute_node_info.xml | 30 ++++++++++++++++++++++
 .../empty_rules/cluster/show_compute_node_mode.xml | 25 ++++++++++++++++++
 .../standalone/show_compute_node_info.xml          | 30 ++++++++++++++++++++++
 .../standalone/show_compute_node_mode.xml          | 25 ++++++++++++++++++
 .../cases/ral/ral-integration-test-cases.xml       |  8 ++++++
 5 files changed, 118 insertions(+)

diff --git 
a/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_info.xml
 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_info.xml
new file mode 100644
index 00000000000..945ec62befe
--- /dev/null
+++ 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_info.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<dataset>
+    <metadata>
+        <column name="instance_id" assertion="false" />
+        <column name="host" assertion="false" />
+        <column name="port" />
+        <column name="status" />
+        <column name="mode_type" />
+        <column name="worker_id" />
+        <column name="labels" />
+        <column name="version" assertion="false"/>
+    </metadata>
+    <row values=" | | 3307| OK| Cluster| 0| |" />
+</dataset>
diff --git 
a/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_mode.xml
 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_mode.xml
new file mode 100644
index 00000000000..52f9c3bc8df
--- /dev/null
+++ 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/cluster/show_compute_node_mode.xml
@@ -0,0 +1,25 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<dataset>
+    <metadata>
+        <column name="type" />
+        <column name="repository" assertion="false" />
+        <column name="props" assertion="false"/>
+    </metadata>
+    <row values="Cluster| | " />
+</dataset>
diff --git 
a/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_info.xml
 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_info.xml
new file mode 100644
index 00000000000..12e5b672b84
--- /dev/null
+++ 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_info.xml
@@ -0,0 +1,30 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<dataset>
+    <metadata>
+        <column name="instance_id" assertion="false" />
+        <column name="host" assertion="false" />
+        <column name="port" />
+        <column name="status" />
+        <column name="mode_type" />
+        <column name="worker_id" />
+        <column name="labels" />
+        <column name="version" assertion="false"/>
+    </metadata>
+    <row values=" | | 3307| OK| Standalone| 0| |" />
+</dataset>
diff --git 
a/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_mode.xml
 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_mode.xml
new file mode 100644
index 00000000000..e86c0cab27e
--- /dev/null
+++ 
b/test/e2e/suite/src/test/resources/cases/ral/dataset/empty_rules/standalone/show_compute_node_mode.xml
@@ -0,0 +1,25 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<dataset>
+    <metadata>
+        <column name="type" />
+        <column name="repository" assertion="false" />
+        <column name="props" assertion="false"/>
+    </metadata>
+    <row values="Standalone| | " />
+</dataset>
diff --git 
a/test/e2e/suite/src/test/resources/cases/ral/ral-integration-test-cases.xml 
b/test/e2e/suite/src/test/resources/cases/ral/ral-integration-test-cases.xml
index 844a2baa417..d69471bc7bc 100644
--- a/test/e2e/suite/src/test/resources/cases/ral/ral-integration-test-cases.xml
+++ b/test/e2e/suite/src/test/resources/cases/ral/ral-integration-test-cases.xml
@@ -133,5 +133,13 @@
             <destroy-sql sql="SET DIST VARIABLE sql_show = false;" />
         </assertion>
     </test-case>
+    
+    <test-case sql="SHOW COMPUTE NODE INFO">
+        <assertion expected-data-file="show_compute_node_info.xml" />
+    </test-case>
+    
+    <test-case sql="SHOW COMPUTE NODE MODE">
+        <assertion expected-data-file="show_compute_node_mode.xml" />
+    </test-case>
 </integration-test-cases>
 

Reply via email to