addr = "127.0.0.1:54321"
instance_count = 3

[instance]
	[instance.server]
	count=3

[[test_cmd]]
cmd = "start"
instances = ["server1"]
dir = "./instances"
args = "nohup ./bin/tidb-server --store=tikv -L=info --socket='' --path=127.0.0.1:42379 -P=5001 --status=8001 &"
#probe function url
probe = "http://127.0.0.1:9090/probe/server/start/leader?result=pass&&timeout=1&&serv_id=0"

[[test_cmd]]
cmd = "start"
instances = ["server2"]
dir = "./instances"
args = "nohup ./bin/tidb-server --store=tikv -L=info --socket='' --path=127.0.0.1:42379 -P=5002 --status=8002 &"
probe = "http://127.0.0.1:9090/probe/server/start/follower?result=pass&&timeout=1&&serv_id=1"

[[test_cmd]]
cmd = "start"
instances = ["server3"]
dir = "./instances"
args = "nohup ./bin/tidb-server --store=tikv -L=info --socket='' --path=127.0.0.1:42379 -P=5003 --status=8003 &"
probe = "http://127.0.0.1:9090/probe/server/start/follower?result=pass&&timeout=1&&serv_id=2"

[[test_cmd]]
cmd = "cleanup"
instances = ["server1"]

[[test_cmd]]
cmd = "cleanup"
instances = ["server2"]

[[test_cmd]]
cmd = "cleanup"
instances = ["server3"]

[[test_cmd]]
cmd = "stop"
instances = ["server1"]

[[test_cmd]]
cmd = "stop"
instances = ["server2"]

[[test_cmd]]
cmd = "stop"
instances = ["server3"]

[[test_cmd]]
cmd = "shutdown"
instances = ["server1"]

[[test_cmd]]
cmd = "shutdown"
instances = ["server2"]

[[test_cmd]]
cmd = "shutdown"
instances = ["server3"]
