-
Notifications
You must be signed in to change notification settings - Fork 52
/
testcfg.py
77 lines (63 loc) · 2.79 KB
/
testcfg.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#TODO: allow workers to pull this from cache
RABBITMQ_IP = "127.0.0.1"
RABBITMQ_LOG_LOCATION = ""
CB_CLUSTER_TAG = "default"
# Add location of cluster's .ini(from where this script is run) for installation
CLUSTER_INI = ""
CLUSTER_RAM_QUOTA = ""
# Add cluster setup json path, templates in triple quoted strings
SETUP_JSON = "tests/simple_setup.js"
SETUP_TEMPLATES = [r"""--name "default" --kvpair '"email":"$str10@couchbase.com" ' \
'"city":"$str5"' '"list":["$int1","$str1","$fl o1"]' '"map":{"sample" : "$str3", "complex" : "$fl o1", "val" : "$int2"}' \
'"num":"$int"' '"fl o":"$fl o"' '"st":"$str"' '"li":"$lis"' '"di":"$dic"' '"b":"$boo"' --size 128 256 512"""]
# Add main system test json path and doc templates in triple quoted strings
TEST_JSON = "tests/simple.js"
TEST_TEMPLATES = [r"""--name "default" --kvpair '"email":"$str10@couchbase.com" ' \
'"city":"$str5"' '"list":["$int1","$str1","$fl o1"]' '"map":{"sample" : "$str3", "complex" : "$fl o1", "val" : "$int2"}' \
'"num":"$int"' '"fl o":"$fl o"' '"st":"$str"' '"li":"$lis"' '"di":"$dic"' '"b":"$boo"' --size 128 256 512"""]
OBJECT_CACHE_IP = "127.0.0.1"
OBJECT_CACHE_PORT = "11911"
# Add CBMonitor IP, absolute dir path and log location
SERIESLY_IP = ''
SERIESLY_LOCATION = "/opt/gocode/bin"
CBMONITOR_HOME_DIR = "/root/cbmonitor"
SERIESLY_DB_LOCATION = "/root/db"
# Must-fill params
COUCHBASE_IP = '127.0.0.1'
COUCHBASE_PORT = '8091'
COUCHBASE_USER = "Administrator"
COUCHBASE_PWD = "password"
COUCHBASE_OS = "linux" # linux|windows|unix
COUCHBASE_SSH_USER = "root"
COUCHBASE_SSH_PASSWORD = "couchbase"
SSH_USER = "root"
SSH_PASSWORD = "couchbase"
WORKERS = ['127.0.0.1']
# valid configs ["kv","query","admin"] or ["all"]
WORKER_CONFIGS = ["all"]
WORKER_PYSYSTESTS_PATH = "/root/systest-worker/testrunner/pysystests"
# CHANGE THIS! to match all clusters will be managed by this worker
# ex. CLUSTER_IPS = ["127.0.0.1:9000","127.0.0.1:9001","127.0.0.1:9002","127.0.0.1:9003"]
CLUSTER_IPS = ["127.0.0.1:8091"]
# xdcr config
"""
" pointer information to remote sites
" remote1 = name for remote site
" RABBITMQ_IP = broker managing remote site (can be same as local broker if using different vhosts)
" this should equal RABBITMQ_IP of remote site
" CB_CLUSTER_TAG = represents vhost watched by workers remote site.
" this should equal CB_CLUSTER_TAG of remote site
" COUCHBASE_IP/PORT = IP/PORT of a couchbase node in remote site
"
" ex.
" REMOTE_SITES = {"remote1" : {"RABBITMQ_IP" : "10.0.0.5",
" "CB_CLUSTER_TAG" : "default",
" "COUCHBASE_IP" : "10.0.0.10",
" "COUCHBASE_PORT" : "9000"}}
"""
LOGDIR = "logs" # relative to current dir
#Backup Config
ENABLE_BACKUPS = False
BACKUP_DIR = "/tmp/backup"
BACKUP_NODE_IP = "127.0.0.1"
BACKUP_NODE_SSH_USER = "root"