Add slave test Software Release.
[slapos.git] / software / test-slave-instance-deployment / instance-default.cfg
1 [buildout]
2 parts =
3   publish-connection-informations
4   request-slave-instance
5 eggs-directory = ${buildout:eggs-directory}
6 develop-eggs-directory = ${buildout:develop-eggs-directory}
7 offline = true
8
9 [slap-configuration]
10 recipe = slapos.cookbook:slapconfiguration.serialised
11 computer = $${slap-connection:computer-id}
12 partition = $${slap-connection:partition-id}
13 url = $${slap-connection:server-url}
14 key = $${slap-connection:key-file}
15 cert = $${slap-connection:cert-file}
16
17 [request-test-instance]
18 # Deploy a dummy instance
19 <= slap-connection
20 recipe = slapos.cookbook:request
21 name = Test Root Instance
22 software-url = $${slap-connection:software-release-url}
23 software-type = test
24 return = foo slave-instance-list
25
26 [request-slave-instance]
27 # Deploy a dummy instance
28 <= slap-connection
29 recipe = slapos.cookbook:request
30 name = Test Root Instance - Slave
31 software-url = $${slap-connection:software-release-url}
32 software-type = test
33 slave = true
34 sla = instance_guid
35 sla-instance_guid = $${request-test-instance:instance-guid}
36 return = foo
37
38 [publish-connection-informations]
39 recipe = slapos.cookbook:publish
40 note = test-instance-guid should be equal to XXX, test-instance-state should be equal to started, test-instance-slave-instance-list should be NOT empty, and root-instance-slave-instance-list SHOULD be empty, slave-instance-parameter should NOT be empty.
41 test-instance-guid = $${request-test-instance:instance-guid}
42 test-instance-state = $${request-test-instance:instance-state}
43 test-instance-slave-instance-list = $${request-test-instance:connection-slave-instance-list}
44 root-instance-slave-instance-list = $${slap-configuration:slave-instance-list}
45 slave-instance-parameter = $${request-slave-instance:connection-foo}