From a95fc2a3023a1088e2798672e8b22bd1fe75c10a Mon Sep 17 00:00:00 2001 From: Ping Xiao Date: Wed, 27 Jan 2021 17:11:06 +0800 Subject: [PATCH] [TD-2648] update script for docker cluster --- tests/pytest/cluster/clusterEnvSetup/basic.py | 26 +++++++++++++++++++ .../clusterEnvSetup/docker-compose.yml | 6 ++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 tests/pytest/cluster/clusterEnvSetup/basic.py diff --git a/tests/pytest/cluster/clusterEnvSetup/basic.py b/tests/pytest/cluster/clusterEnvSetup/basic.py new file mode 100644 index 0000000000..10ba91ab06 --- /dev/null +++ b/tests/pytest/cluster/clusterEnvSetup/basic.py @@ -0,0 +1,26 @@ +################################################################### +# 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 os +import random + +class ClusterTestcase: + + + def run(self): + os.system("./buildClusterEnv.sh -n 3 -v 2.0.14.1") + os.system("yes|taosdemo -h 172.27.0.7 -n 100 -t 100 -x") + os.system("python3 ../../concurrent_inquiry.py -H 172.27.0.7 -T 4 -t 4 -l 10") + +clusterTest = ClusterTestcase() +clusterTest.run() \ No newline at end of file diff --git a/tests/pytest/cluster/clusterEnvSetup/docker-compose.yml b/tests/pytest/cluster/clusterEnvSetup/docker-compose.yml index 33deff8d1e..c45a09582b 100644 --- a/tests/pytest/cluster/clusterEnvSetup/docker-compose.yml +++ b/tests/pytest/cluster/clusterEnvSetup/docker-compose.yml @@ -39,7 +39,7 @@ services: networks: taos_update_net: ipv4_address: 172.27.0.7 - command: bash -c "taosd && tail -f /dev/null" + command: taosd td2.0-node2: build: @@ -78,7 +78,7 @@ services: networks: taos_update_net: ipv4_address: 172.27.0.8 - command: bash -c "taosd && tail -f /dev/null" + command: taosd td2.0-node3: build: @@ -117,7 +117,7 @@ services: networks: taos_update_net: ipv4_address: 172.27.0.9 - command: bash -c "taosd && tail -f /dev/null" + command: taosd networks: taos_update_net: -- GitLab