From ae0b4c0426b96480b0cd16dded13fdfdb6fcc0be Mon Sep 17 00:00:00 2001 From: cpwu Date: Mon, 13 Jun 2022 18:20:11 +0800 Subject: [PATCH] fix case --- tests/system-test/1-insert/create_retentions.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tests/system-test/1-insert/create_retentions.py b/tests/system-test/1-insert/create_retentions.py index bde499d91a..313c643822 100644 --- a/tests/system-test/1-insert/create_retentions.py +++ b/tests/system-test/1-insert/create_retentions.py @@ -67,11 +67,19 @@ class TDTestCase: ] @property - def create_stable_sql_err(self): + def create_stable_sql_current(self): return [ f"create stable stb1 ({PRIMARY_COL} timestamp, {INT_COL} int) tags (tag1 int) rollup(avg) delay 5", ] + def test_create_stb(self): + tdSql.execute("use db2") + for err_sql in self.create_stable_sql_err: + tdSql.error(err_sql) + for cur_sql in self.create_stable_sql_current: + tdSql.execute(cur_sql) + tdSql.query("show stables") + tdSql.checkRows(len(self.create_stable_sql_current)) def test_create_databases(self): for err_sql in self.create_databases_sql_err: @@ -84,6 +92,7 @@ class TDTestCase: def all_test(self): self.test_create_databases() + self.test_create_stb() def __create_tb(self): tdSql.prepare() -- GitLab