add ci
This commit is contained in:
parent
2cf657c767
commit
444014f6ac
|
@ -279,6 +279,19 @@ class TDTestCase:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def checkSnapshot1VgroupBtmeta(self):
|
||||||
|
buildPath = tdCom.getBuildPath()
|
||||||
|
cfgPath = tdCom.getClientCfgPath()
|
||||||
|
cmdStr = '%s/build/bin/tmq_taosx_ci -c %s -sv 1 -dv 1 -s -bt'%(buildPath, cfgPath)
|
||||||
|
tdLog.info(cmdStr)
|
||||||
|
os.system(cmdStr)
|
||||||
|
|
||||||
|
self.checkJson(cfgPath, "tmq_taosx_tmp_snapshot")
|
||||||
|
self.checkData()
|
||||||
|
self.checkDropData(False)
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
def checkSnapshot1VgroupTable(self):
|
def checkSnapshot1VgroupTable(self):
|
||||||
buildPath = tdCom.getBuildPath()
|
buildPath = tdCom.getBuildPath()
|
||||||
cfgPath = tdCom.getClientCfgPath()
|
cfgPath = tdCom.getClientCfgPath()
|
||||||
|
@ -291,6 +304,18 @@ class TDTestCase:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def checkSnapshot1VgroupTableBtmeta(self):
|
||||||
|
buildPath = tdCom.getBuildPath()
|
||||||
|
cfgPath = tdCom.getClientCfgPath()
|
||||||
|
cmdStr = '%s/build/bin/tmq_taosx_ci -c %s -sv 1 -dv 1 -s -t -bt'%(buildPath, cfgPath)
|
||||||
|
tdLog.info(cmdStr)
|
||||||
|
os.system(cmdStr)
|
||||||
|
|
||||||
|
self.checkJson(cfgPath, "tmq_taosx_tmp_snapshot")
|
||||||
|
self.checkDataTable()
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
def checkSnapshotMultiVgroups(self):
|
def checkSnapshotMultiVgroups(self):
|
||||||
buildPath = tdCom.getBuildPath()
|
buildPath = tdCom.getBuildPath()
|
||||||
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s'%(buildPath)
|
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s'%(buildPath)
|
||||||
|
@ -302,6 +327,17 @@ class TDTestCase:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def checkSnapshotMultiVgroupsBtmeta(self):
|
||||||
|
buildPath = tdCom.getBuildPath()
|
||||||
|
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s -bt'%(buildPath)
|
||||||
|
tdLog.info(cmdStr)
|
||||||
|
os.system(cmdStr)
|
||||||
|
|
||||||
|
self.checkData()
|
||||||
|
self.checkDropData(False)
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
def checkSnapshotMultiVgroupsWithDropTable(self):
|
def checkSnapshotMultiVgroupsWithDropTable(self):
|
||||||
buildPath = tdCom.getBuildPath()
|
buildPath = tdCom.getBuildPath()
|
||||||
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s -d'%(buildPath)
|
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s -d'%(buildPath)
|
||||||
|
@ -312,6 +348,16 @@ class TDTestCase:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def checkSnapshotMultiVgroupsWithDropTableBtmeta(self):
|
||||||
|
buildPath = tdCom.getBuildPath()
|
||||||
|
cmdStr = '%s/build/bin/tmq_taosx_ci -sv 2 -dv 4 -s -d -bt'%(buildPath)
|
||||||
|
tdLog.info(cmdStr)
|
||||||
|
os.system(cmdStr)
|
||||||
|
|
||||||
|
self.checkDropData(True)
|
||||||
|
|
||||||
|
return
|
||||||
|
|
||||||
def consumeTest(self):
|
def consumeTest(self):
|
||||||
tdSql.execute(f'create database if not exists d1 vgroups 1')
|
tdSql.execute(f'create database if not exists d1 vgroups 1')
|
||||||
tdSql.execute(f'use d1')
|
tdSql.execute(f'use d1')
|
||||||
|
@ -472,6 +518,11 @@ class TDTestCase:
|
||||||
|
|
||||||
self.checkSnapshotMultiVgroupsWithDropTable()
|
self.checkSnapshotMultiVgroupsWithDropTable()
|
||||||
|
|
||||||
|
self.checkSnapshot1VgroupBtmeta()
|
||||||
|
self.checkSnapshot1VgroupTableBtmeta()
|
||||||
|
self.checkSnapshotMultiVgroupsBtmeta()
|
||||||
|
self.checkSnapshotMultiVgroupsWithDropTableBtmeta()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
tdSql.close()
|
tdSql.close()
|
||||||
tdLog.success(f"{__file__} successfully executed")
|
tdLog.success(f"{__file__} successfully executed")
|
||||||
|
|
Loading…
Reference in New Issue