Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Steven Gueguen
slapos
Commits
69224510
Commit
69224510
authored
Nov 24, 2014
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: add dedicated buildout profile for erp5testnode.
parent
9a3dcc60
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
7 deletions
+38
-7
software/slaprunner/common.cfg
software/slaprunner/common.cfg
+1
-1
software/slaprunner/instance-for-erp5testnode.cfg.in
software/slaprunner/instance-for-erp5testnode.cfg.in
+5
-0
software/slaprunner/instance-resilient-test.cfg.jinja2
software/slaprunner/instance-resilient-test.cfg.jinja2
+17
-6
software/slaprunner/software-for-erp5testnode.cfg
software/slaprunner/software-for-erp5testnode.cfg
+15
-0
No files found.
software/slaprunner/common.cfg
View file @
69224510
...
@@ -90,7 +90,7 @@ mode = 0644
...
@@ -90,7 +90,7 @@ mode = 0644
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
url = ${:_profile_base_location_}/instance-resilient-test.cfg.jinja2
download-only = true
download-only = true
md5sum =
105c7c427def7b2643b7480b2bada3a5
md5sum =
b95b230bcdd7d4eaf9452f73156b27e8
filename = instance-resilient-test.cfg.jinja2
filename = instance-resilient-test.cfg.jinja2
mode = 0644
mode = 0644
...
...
software/slaprunner/instance-for-erp5testnode.cfg.in
0 → 100644
View file @
69224510
[buildout]
extends = ${template:output}
[switch_softwaretype]
default = $${:test}
software/slaprunner/instance-resilient-test.cfg.jinja2
View file @
69224510
...
@@ -5,8 +5,9 @@ develop-eggs-directory = {{ develop_eggs_directory }}
...
@@ -5,8 +5,9 @@ develop-eggs-directory = {{ develop_eggs_directory }}
offline = true
offline = true
parts =
parts =
deploy-resiliency-test
request-resilient-instance
request-resilient-instance
deploy-unit-test
deploy-scalability-test
deploy-standalone-resiliency-test
deploy-standalone-resiliency-test
[directory]
[directory]
...
@@ -21,18 +22,27 @@ log = ${:var}/log/
...
@@ -21,18 +22,27 @@ log = ${:var}/log/
services = ${:etc}/service/
services = ${:etc}/service/
scripts = ${:etc}/run/
scripts = ${:etc}/run/
[deploy-
resilienc
y-test]
[deploy-
scalabilit
y-test]
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
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}
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}
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_root
instance_name='${request-resilient-instance:name}'
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
root_
instance_name='${request-resilient-instance:name}'
command-line = {{ bin_directory }}/runResiliency
Test
${:testnode-parameters} ${:test-parameters}
command-line = {{ bin_directory }}/runResiliency
ScalabilityTestNode
${:testnode-parameters} ${:test-parameters}
wrapper-path = ${directory:scripts}/runResiliencyTestSuite
wrapper-path = ${directory:scripts}/runResiliencyTestSuite
[deploy-unit-test]
recipe = collective.recipe.template
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 root_instance_name='${request-resilient-instance:name}'
input = inline:
#!/bin/sh
exec {{ bin_directory }}/runResiliencyUnitTestTestNode $@ ${:test-parameters}
output = ${directory:bin}/runTestSuite
mode = 755
[deploy-standalone-resiliency-test]
[deploy-standalone-resiliency-test]
# Used to manually run the resilient test if we don't have a running testnode.
# Used to manually run the resilient test if we don't have a running testnode.
recipe = slapos.cookbook:wrapper
recipe = slapos.cookbook:wrapper
test-suite-title = slaprunner
test-suite-title = slaprunner
command-line = {{ bin_directory }}/runStandaloneResiliencyTest
--test-suite-title=${:test-suite-title} ${deploy-resilienc
y-test:test-parameters}
command-line = {{ bin_directory }}/runStandaloneResiliencyTest
Suite --test-suite-title=${:test-suite-title} ${deploy-scalabilit
y-test:test-parameters}
wrapper-path = ${directory:bin}/runStandaloneResiliencyTestSuite
wrapper-path = ${directory:bin}/runStandaloneResiliencyTestSuite
[request-resilient-instance]
[request-resilient-instance]
...
@@ -45,7 +55,8 @@ name = Resilient Instance (Root Instance)
...
@@ -45,7 +55,8 @@ name = Resilient Instance (Root Instance)
config-{{ key }} = {{ dumps(value) }}
config-{{ key }} = {{ dumps(value) }}
{% endfor -%}
{% endfor -%}
config-resiliency-backup-periodicity = */6 * * * *
config-resiliency-backup-periodicity = */6 * * * *
config-resilient-clone-number = 2
config-resilient-clone-number = 1
config-ignore-known-hosts-file = true
# XXX hardcoded
# XXX hardcoded
#config-frontend-domain = google.com
#config-frontend-domain = google.com
# XXX Hack to deploy Root Instance on the same computer as the type-test Instance
# XXX Hack to deploy Root Instance on the same computer as the type-test Instance
...
...
software/slaprunner/software-for-erp5testnode.cfg
0 → 100644
View file @
69224510
[buildout]
extends = development.cfg
parts += template-erp5testnode
# Change default software-type to be "test", so that it can be run using erp5testnode.
[template-erp5testnode]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-for-erp5testnode.cfg.in
md5sum = 59a13145d3df30f38442ce172330dfb3
output = ${buildout:directory}/template.cfg
mode = 0644
[template]
output = ${buildout:directory}/template-original.cfg
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment