From 72daedc2fd5b29c051f97a059442243ed8f9dfbe Mon Sep 17 00:00:00 2001 From: Chris Zhai Date: Tue, 14 May 2024 17:20:55 +0800 Subject: [PATCH] update test cases --- tests/army/community/query/show.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/army/community/query/show.py b/tests/army/community/query/show.py index 2fbfd6cdfb..980e60387a 100644 --- a/tests/army/community/query/show.py +++ b/tests/army/community/query/show.py @@ -102,6 +102,22 @@ class TDTestCase(TBase): allRows = self.insert_rows * self.childtable_count tdSql.checkFirstValue(sql, allRows) + def checkShowTags(self): + # verification for TD-29904 + tdSql.error("show tags from t100000", expectErrInfo='Fail to get table info, error: Table does not exist') + + sql = "show tags from child1" + tdSql.query(sql) + tdSql.checkRows(5) + + sql = f"show tags from child1 from {self.db}" + tdSql.query(sql) + tdSql.checkRows(5) + + sql = f"show tags from {self.db}.child1" + tdSql.query(sql) + tdSql.checkRows(5) + def checkShow(self): # not support sql = "show accounts;" @@ -129,8 +145,7 @@ class TDTestCase(TBase): ] tdSql.executes(sqls) - # verification for TD-29904 - tdSql.error("show tags from t100000", expectErrInfo='Fail to get table info, error: Table does not exist') + self.checkShowTags() # run