slarunner: cron periodicity fixed for tests
[slapos.git] / software / slaprunner / instance-resilient-test.cfg.jinja2
1 [buildout]
2
3 eggs-directory = {{ eggs_directory }}
4 develop-eggs-directory = {{ develop_eggs_directory }}
5 offline = true
6
7 parts =
8   deploy-resiliency-test
9   request-resilient-instance
10   deploy-standalone-resiliency-test
11
12 [directory]
13 recipe = slapos.cookbook:mkdirectory
14 home = ${buildout:directory}
15 etc = ${:home}/etc/
16 var = ${:home}/var/
17 srv = ${:home}/srv/
18 bin = ${:home}/bin/
19 tmp = ${:home}/tmp/
20 log = ${:var}/log/
21 services = ${:etc}/service/
22 scripts = ${:etc}/run/
23
24 [deploy-resiliency-test]
25 recipe = slapos.cookbook:wrapper
26 testnode-parameters = --test-result-path={{ slapparameter_dict.get('test-result-path') }} --revision={{ slapparameter_dict.get('test-suite-revision') }} --node-title={{ slapparameter_dict.get('scalability-launcher-title') }} --test-suite={{ slapparameter_dict.get('test-suite') }} --test-suite-master-url={{ slapparameter_dict.get('test-suite-master-url') }} --log-path=${directory:log}
27 test-parameters = server_url=${slap-connection:server-url} key_file=${slap-connection:key-file} cert_file=${slap-connection:cert-file} computer_id=${slap-connection:computer-id} partition_id=${slap-connection:partition-id} software=${slap-connection:software-release-url} namebase=runner slaprunner_rootinstance_name='${request-resilient-instance:name}'
28 command-line = {{ bin_directory }}/runResiliencyTest ${:testnode-parameters} ${:test-parameters}
29 wrapper-path = ${directory:scripts}/runResiliencyTestSuite
30
31 [deploy-standalone-resiliency-test]
32 # Used to manually run the resilient test if we don't have a running testnode.
33 recipe = slapos.cookbook:wrapper
34 test-suite-title = slaprunner
35 command-line = {{ bin_directory }}/runStandaloneResiliencyTest --test-suite-title=${:test-suite-title} ${deploy-resiliency-test:test-parameters}
36 wrapper-path = ${directory:bin}/runStandaloneResiliencyTestSuite
37
38 [request-resilient-instance]
39 <= slap-connection
40 recipe = slapos.cookbook:request
41 software-url = ${slap-connection:software-release-url}
42 software-type = resilient
43 name = Resilient Instance (Root Instance)
44 {% set cluster_parameter_dict = slapparameter_dict.get('cluster', {}) -%}
45 config = resiliency-backup-periodicity frontend-domain cloud9-frontend-domain {{ cluster_parameter_dict.keys() | join(' ') }}
46 {% for key, value in cluster_parameter_dict.items() -%}
47 config-{{ key }} = {{ dumps(value) }}
48 {% endfor -%}
49 config-resiliency-backup-periodicity = * * * * *
50 # XXX hardcoded
51 config-frontend-domain = google.com
52 config-cloud9-frontend-domain = google.com
53 return = backend_url
54
55 [slap-parameter]