PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/pysystests/tests/view/testcfg.py

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