/pysystests/tests/view/testcfg.py
Python | 83 lines | 79 code | 1 blank | 3 comment | 1 complexity | aa1e95fc6226d6b41e422fb9b7484153 MD5 | raw file
- #TODO: allow workers to pull this from cache
- RABBITMQ_IP = "10.1.2.77"
- RABBITMQ_LOG_LOCATION = ""
- CB_CLUSTER_TAG = "view"
- # Add location of cluster's .ini(from where this script is run) for installation
- CLUSTER_INI = "yourinipathfile"
- CLUSTER_RAM_QUOTA = "21000"
- # Add cluster setup json path, templates in triple quoted strings
- #SETUP_JSON = "/root/n1ql_sysTest/testrunner/pysystests/tests/n1ql/n1ql_setup.js"
- SETUP_JSON = "/yourDirectory/testrunner/pysystests/tests/view_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 512""",
- r"""--name "template512" --kvpair '"email":"$str10@couchbase.com" ' '"city":"$str5"' '"list":["$int1","$str1","$flo1"]' \
- '"map":{"sample" : "$str3", "complex" : "$flo1", "val" : "$int2"}' '"num":"$int"' '"flo":"$flo"' '"st":"$str"' \
- '"li":"$lis"' '"di":"$dic"' '"b":"$boo"' --size 512"""]
- # Add main system test json path and doc templates in triple quoted strings
- TEST_JSON = "yourDirectory/testrunner/pysystests/tests/views_ssd_linux.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""",
- r"""--name "template512" --kvpair '"email":"$str10@couchbase.com" ' '"city":"$str5"' '"list":["$int1","$str1","$flo1"]' \
- '"map":{"sample" : "$str3", "complex" : "$flo1", "val" : "$int2"}' '"num":"$int"' '"flo":"$flo"' '"st":"$str"' \
- '"li":"$lis"' '"di":"$dic"' '"b":"$boo"' --size 512"""]
- OBJECT_CACHE_IP = "127.0.0.1"
- OBJECT_CACHE_PORT = "11911"
- # Add CBMonitor IP, absolute dir path and log location
- SERIESLY_IP = '127.0.0.1'
- SERIESLY_LOCATION = "/opt/go/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 = "addpassword"
- COUCHBASE_OS = "windows" # linux|windows|unix
- COUCHBASE_SSH_USER = "root"
- COUCHBASE_SSH_PASSWORD = "addpassword"
- SSH_USER = "root"
- SSH_PASSWORD = "couchbase"
- WORKERS = ['127.0.0.1']
- # valid configs ["kv","query","admin"] or ["all"]
- WORKER_CONFIGS = ["all"]
- WORKER_PYSYSTESTS_PATH = "yourDirectory/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", "127.0.0.1.2"]
- # 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"