Merge pull request #27861 from shuizhilong/3.0

add a test case to verify TS-5349
This commit is contained in:
Feng Chao 2024-09-13 16:28:41 +08:00 committed by GitHub
commit b29bc45021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
from frame.log import *
from frame.cases import *
from frame.sql import *
from frame.caseBase import *
from frame import *
from frame.autogen import *
'''
TS-5349: https://jira.taosdata.com:18080/browse/TS-5349
查询 performance_schema.perf_queries , 再查询 information_schema.perf_queries,
正常情况下在 information_schema 中不存在表 perf_queries
'''
class TDTestCase(TBase):
def run(self):
tdSql.query("select * from performance_schema.perf_queries;")
tdLog.info("Table [perf_queries] exist in schema [performance_schema]")
tdSql.error("select * from information_schema.perf_queries;")
tdLog.success(f"{__file__} successfully executed")
tdCases.addLinux(__file__, TDTestCase())
tdCases.addWindows(__file__, TDTestCase())

View File

@ -42,6 +42,7 @@
,,y,army,./pytest.sh python3 ./test.py -f query/fill/fill_compare_asc_desc.py
,,y,army,./pytest.sh python3 ./test.py -f query/last/test_last.py
,,y,army,./pytest.sh python3 ./test.py -f query/window/base.py
,,y,army,./pytest.sh python3 ./test.py -f query/sys/tb_perf_queries_exist_test.py -N 3
#
# system test