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

sunnianjun 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 9a5d23abde3 Add e2e test for export metadata to file DistSQL (#32440)
9a5d23abde3 is described below

commit 9a5d23abde3786700f7abbf0428ec3440fa8c9c6
Author: jiangML <[email protected]>
AuthorDate: Fri Aug 9 16:36:23 2024 +0800

    Add e2e test for export metadata to file DistSQL (#32440)
---
 .../empty_rules/export_metadata_to_file.xml        | 25 ++++++++++++++++++++++
 .../test/resources/cases/ral/e2e-ral-export.xml    | 23 ++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git 
a/test/e2e/sql/src/test/resources/cases/ral/dataset/empty_rules/export_metadata_to_file.xml
 
b/test/e2e/sql/src/test/resources/cases/ral/dataset/empty_rules/export_metadata_to_file.xml
new file mode 100644
index 00000000000..49ff51384b6
--- /dev/null
+++ 
b/test/e2e/sql/src/test/resources/cases/ral/dataset/empty_rules/export_metadata_to_file.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="id" ignore-assert-data="true" />
+        <column name="create_time" ignore-assert-data="true" />
+        <column name="cluster_info" />
+    </metadata>
+    <row values=" | | Successfully exported to:'/tmp/metadata.json'" />
+</dataset>
diff --git a/test/e2e/sql/src/test/resources/cases/ral/e2e-ral-export.xml 
b/test/e2e/sql/src/test/resources/cases/ral/e2e-ral-export.xml
new file mode 100644
index 00000000000..7bbc2bf9192
--- /dev/null
+++ b/test/e2e/sql/src/test/resources/cases/ral/e2e-ral-export.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ 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.
+  -->
+
+<e2e-test-cases>
+    <test-case sql="EXPORT METADATA TO FILE '/tmp/metadata.json'">
+        <assertion expected-data-file="export_metadata_to_file.xml" />
+    </test-case>
+</e2e-test-cases>

Reply via email to