From 9999596278aa37455e95ca52503b1b4d2e43dfda Mon Sep 17 00:00:00 2001 From: tomchon Date: Mon, 13 Dec 2021 01:58:04 +0800 Subject: [PATCH] [TD-11849]:modify testcase about taosdemo of auto_create_table --- .../insert-drop-exist-auto-N00.json | 12 +++---- .../insert-drop-exist-auto-Y00.json | 12 +++---- .../stmt/insert-drop-exist-auto-N00-stmt.json | 36 +++++++++---------- .../stmt/insert-drop-exist-auto-Y00-stmt.json | 24 ++++++------- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json b/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json index 0a4f8a0df2..2c3b8c6f81 100644 --- a/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json +++ b/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-N00.json @@ -32,7 +32,7 @@ "update": 0 }, "super_tables": [{ - "name": "stb", + "name": "stb1", "child_table_exists":"no", "auto_create_table": "123", "childtable_count": 20, @@ -56,7 +56,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb2", "child_table_exists":"no", "auto_create_table": "no", "childtable_count": 20, @@ -80,7 +80,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb3", "child_table_exists":"no", "auto_create_table": "yes", "childtable_count": 20, @@ -104,7 +104,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb4", "child_table_exists":"yes", "auto_create_table": "123", "childtable_count": 20, @@ -128,7 +128,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb5", "child_table_exists":"yes", "auto_create_table": "no", "childtable_count": 20, @@ -152,7 +152,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb6", "child_table_exists":"yes", "auto_create_table": "yes", "childtable_count": 20, diff --git a/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json b/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json index 7b90980445..f8fe21a6c4 100644 --- a/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json +++ b/tests/pytest/tools/taosdemoAllTest/insert-drop-exist-auto-Y00.json @@ -32,7 +32,7 @@ "update": 0 }, "super_tables": [{ - "name": "stb", + "name": "stb1", "child_table_exists":"no", "auto_create_table": "123", "childtable_count": 20, @@ -56,7 +56,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb2", "child_table_exists":"no", "auto_create_table": "no", "childtable_count": 20, @@ -80,7 +80,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb3", "child_table_exists":"no", "auto_create_table": "yes", "childtable_count": 20, @@ -104,7 +104,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb4", "child_table_exists":"yes", "auto_create_table": "123", "childtable_count": 20, @@ -128,7 +128,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb5", "child_table_exists":"yes", "auto_create_table": "no", "childtable_count": 20, @@ -152,7 +152,7 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb6", "child_table_exists":"yes", "auto_create_table": "yes", "childtable_count": 20, diff --git a/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json b/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json index 98770a9fc8..2712f88593 100644 --- a/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json +++ b/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-N00-stmt.json @@ -32,14 +32,14 @@ "update": 0 }, "super_tables": [{ - "name": "stb", + "name": "stb1", "child_table_exists":"no", "auto_create_table": "123", "childtable_count": 20, "childtable_prefix": "NN123_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -56,14 +56,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb2", "child_table_exists":"no", "auto_create_table": "no", "childtable_count": 20, "childtable_prefix": "NNN_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -80,14 +80,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb3", "child_table_exists":"no", "auto_create_table": "yes", "childtable_count": 20, "childtable_prefix": "NNY_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -104,14 +104,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb4", "child_table_exists":"yes", "auto_create_table": "123", "childtable_count": 20, "childtable_prefix": "NY123_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -128,14 +128,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb5", "child_table_exists":"yes", "auto_create_table": "no", "childtable_count": 20, "childtable_prefix": "NYN_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -152,14 +152,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb6", "child_table_exists":"yes", "auto_create_table": "yes", "childtable_count": 20, "childtable_prefix": "NYY_", "batch_create_tbl_num": 100, - "data_source": "rand", - "insert_mode": "stmt", + "data_source": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, diff --git a/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json b/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json index 9646f3dd23..f8fe21a6c4 100644 --- a/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json +++ b/tests/pytest/tools/taosdemoAllTest/stmt/insert-drop-exist-auto-Y00-stmt.json @@ -32,14 +32,14 @@ "update": 0 }, "super_tables": [{ - "name": "stb", + "name": "stb1", "child_table_exists":"no", "auto_create_table": "123", "childtable_count": 20, "childtable_prefix": "YN123_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -56,14 +56,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb2", "child_table_exists":"no", "auto_create_table": "no", "childtable_count": 20, "childtable_prefix": "YNN_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -80,14 +80,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb3", "child_table_exists":"no", "auto_create_table": "yes", "childtable_count": 20, "childtable_prefix": "YNY_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -104,14 +104,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb4", "child_table_exists":"yes", "auto_create_table": "123", "childtable_count": 20, "childtable_prefix": "YY123_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -128,14 +128,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb5", "child_table_exists":"yes", "auto_create_table": "no", "childtable_count": 20, "childtable_prefix": "YYN_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, @@ -152,14 +152,14 @@ "columns": [{"type": "INT"}], "tags": [{"type": "TINYINT"}] },{ - "name": "stb", + "name": "stb6", "child_table_exists":"yes", "auto_create_table": "yes", "childtable_count": 20, "childtable_prefix": "YYY_", "batch_create_tbl_num": 100, "data_source": "rand", - "insert_mode": "stmt", + "insert_mode": "taosc", "insert_rows": 5, "childtable_limit": 40, "childtable_offset":0, -- GitLab