From 29b1d354d0cf5a0e82a16463def52795afc5132c Mon Sep 17 00:00:00 2001 From: Hui Li <52318143+plum-lihui@users.noreply.github.com> Date: Mon, 20 Dec 2021 10:12:30 +0800 Subject: [PATCH] Delete basic.py del example file --- tests/system-test/1-insert/0-sql/basic.py | 67 ----------------------- 1 file changed, 67 deletions(-) delete mode 100644 tests/system-test/1-insert/0-sql/basic.py diff --git a/tests/system-test/1-insert/0-sql/basic.py b/tests/system-test/1-insert/0-sql/basic.py deleted file mode 100644 index 3604224c51..0000000000 --- a/tests/system-test/1-insert/0-sql/basic.py +++ /dev/null @@ -1,67 +0,0 @@ -################################################################### -# Copyright (c) 2016 by TAOS Technologies, Inc. -# All rights reserved. -# -# This file is proprietary and confidential to TAOS Technologies. -# No part of this file may be reproduced, stored, transmitted, -# disclosed or used in any form or by any means other than as -# expressly provided by the written permission from Jianhui Tao -# -################################################################### - -# -*- coding: utf-8 -*- - -import sys -from util.log import * -from util.cases import * -from util.sql import * - - -class TDTestCase: - def caseDescription(self): - ''' - case1: insert 倒序插入 - case2: 语法解析错误同时meta请求也发出去了导致callback中处理逻辑失效 - case3: [TD-XXXX]insert语句在values之间加入多个逗号 - ''' - return - def init(self, conn, logSql): - tdLog.debug("start to execute %s" % __file__) - tdSql.init(conn.cursor(), logSql) - - def run(self): - tdSql.prepare() - - ret = tdSql.execute('create table tb (ts timestamp, speed int)') - - insertRows = 10 - tdLog.info("insert %d rows" % (insertRows)) - for i in range(0, insertRows): - ret = tdSql.execute( - 'insert into tb values (now + %dm, %d)' % - (i, i)) - - tdLog.info("insert earlier data") - tdSql.execute('insert into tb values (now - 5m , 10)') - tdSql.execute('insert into tb values (now - 6m , 10)') - tdSql.execute('insert into tb values (now - 7m , 10)') - tdSql.execute('insert into tb values (now - 8m , 10)') - - tdSql.query("select * from tb") - tdSql.checkRows(insertRows + 4) - - # test case for https://jira.taosdata.com:18080/browse/TD-3716: - tdSql.error("insert into tb(now, 1)") - # test case for TD-10717 - tdSql.error("insert into tb values(now,1),,(now+1s,1)") - tdSql.execute("insert into tb values(now+2s,1),(now+3s,1),(now+4s,1)") - tdSql.query("select * from tb") - tdSql.checkRows(insertRows + 4 +3) - - def stop(self): - tdSql.close() - tdLog.success("%s successfully executed" % __file__) - - -tdCases.addWindows(__file__, TDTestCase()) -tdCases.addLinux(__file__, TDTestCase()) -- GitLab