CD pipeline configure to testAT with repl=3 and consistency=QUORUM
@@ -23,23 +23,50 @@ hose {
'volumes':['jts:1.14.0'],
'env': [ 'MAX_HEAP=256M',
'START_JOLOKIA=true',
- 'JOLOKIA_OPTS="port=8000,host=*"'],
+ 'JOLOKIA_OPTS="port=8000,host=*"'
+ ],
+ 'sleep': 30,
+ 'healthcheck': 9042
+ ],
+ 'CASSANDRA': [
+ 'image': 'stratio/cassandra-lucene-index:%%VERSION',
+ 'volumes':['jts:1.14.0'],
+ 'env': [ 'MAX_HEAP=256M',
+ 'START_JOLOKIA=true',
+ 'JOLOKIA_OPTS="port=8000,host=*"',
+ 'SEEDS=%%CASSANDRA#0'
+ ],
+ 'sleep': 30,
+ 'healthcheck': 9042
+ ],
+ 'CASSANDRA': [
+ 'image': 'stratio/cassandra-lucene-index:%%VERSION',
+ 'volumes':['jts:1.14.0'],
+ 'env': [ 'MAX_HEAP=256M',
+ 'START_JOLOKIA=true',
+ 'JOLOKIA_OPTS="port=8000,host=*"',
+ 'SEEDS=%%CASSANDRA#0'
+ ],
'sleep': 30,
'healthcheck': 9042
]
],
]
+
ATPARAMETERS= """
| -Dit.host=%%CASSANDRA
- | -Dit.jmx_port=8000
| -Dit.monitor_service=jolokia
+ | -Dit.monitor_services_url=%%CASSANDRA#0:8000
+ | -Dit.replication=1
+ | -Dit.consistency=QUORUM
| -DJACOCO_SERVER=%%CASSANDRA"""
DEV = { config ->
doCompile(config)
doUT(config)
+ doUT(conf: config, parameters: '-Duser.timezone=UTC')
doPackage(config)
parallel(DOC: {
@@ -52,6 +79,18 @@ hose {
doDocker(config)
}, failFast: config.FAILFAST)
+ parallel(
+ AT_REPLICATION_1: {
doAT(config)
+ },
+ AT_REPLICATION_3: {
+ def replication3Parameters = [
+ 'it.replication': '3',
+ 'it.monitor_services_url' : '%%CASSANDRA#0:8000,%%CASSANDRA#1:8000,%%CASSANDRA#2:8000'
+ ]
+ doAT(conf: config, crossbuild: 'repl_3', parameters: doReplaceTokens(ATPARAMETERS, replication3Parameters))
+ },
+ failFast: config.FAILFAST
+ )
}
}
