Ensure consistent naming of sample scenarios
Rename sample scenario files so that dash(-) used consistently instead of underscore (_) Change-Id: I8e4ccabfc16b32a12a091e6b168b12d25643b028
This commit is contained in:
parent
212ea08a9d
commit
a19c1acea3
20
samples/tasks/runners/constant/constant-for-duration.json
Normal file
20
samples/tasks/runners/constant/constant-for-duration.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant_for_duration",
|
||||
"concurrency": 5,
|
||||
"duration": 30
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/runners/constant/constant-for-duration.yaml
Normal file
13
samples/tasks/runners/constant/constant-for-duration.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 5
|
||||
runner:
|
||||
type: "constant_for_duration"
|
||||
concurrency: 5
|
||||
duration: 30
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
21
samples/tasks/runners/constant/constant-timeout.json
Normal file
21
samples/tasks/runners/constant/constant-timeout.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"Dummy.dummy": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 10
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 20,
|
||||
"concurrency": 5,
|
||||
"timeout": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
14
samples/tasks/runners/constant/constant-timeout.yaml
Normal file
14
samples/tasks/runners/constant/constant-timeout.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
Dummy.dummy:
|
||||
-
|
||||
args:
|
||||
sleep: 10
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
timeout: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_cinder": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_cinder:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_glance": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_glance:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_heat": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_heat:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_monasca": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_monasca:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_neutron": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_neutron:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Authenticate.validate_nova": [
|
||||
{
|
||||
"args": {
|
||||
"repetitions": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 5
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Authenticate.validate_nova:
|
||||
-
|
||||
args:
|
||||
repetitions: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 5
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"CeilometerEvents.create_user_and_get_event": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerEvents.create_user_and_get_event:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"CeilometerEvents.create_user_and_list_event_types": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerEvents.create_user_and_list_event_types:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"CeilometerEvents.create_user_and_list_events": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerEvents.create_user_and_list_events:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"CeilometerTraits.create_user_and_list_trait_descriptions": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerTraits.create_user_and_list_trait_descriptions:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"CeilometerTraits.create_user_and_list_traits": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
CeilometerTraits.create_user_and_list_traits:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy_exception_probability": [
|
||||
{
|
||||
"args": {
|
||||
"exception_probability": 0.5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 1000,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy_exception_probability:
|
||||
-
|
||||
args:
|
||||
exception_probability: 0.5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 1000
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
20
samples/tasks/scenarios/dummy/dummy-exception.json
Normal file
20
samples/tasks/scenarios/dummy/dummy-exception.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy_exception": [
|
||||
{
|
||||
"args": {
|
||||
"size_of_message": 5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 20,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/dummy/dummy-exception.yaml
Normal file
13
samples/tasks/scenarios/dummy/dummy-exception.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy_exception:
|
||||
-
|
||||
args:
|
||||
size_of_message: 5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
20
samples/tasks/scenarios/dummy/dummy-output.json
Normal file
20
samples/tasks/scenarios/dummy/dummy-output.json
Normal file
@ -0,0 +1,20 @@
|
||||
{
|
||||
"Dummy.dummy_output": [
|
||||
{
|
||||
"args": {
|
||||
"random_range": 25
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 50,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
13
samples/tasks/scenarios/dummy/dummy-output.yaml
Normal file
13
samples/tasks/scenarios/dummy/dummy-output.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
Dummy.dummy_output:
|
||||
-
|
||||
args:
|
||||
random_range: 25
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 50
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
22
samples/tasks/scenarios/dummy/dummy-random-action.json
Normal file
22
samples/tasks/scenarios/dummy/dummy-random-action.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"Dummy.dummy_random_action": [
|
||||
{
|
||||
"args": {
|
||||
"atomics_num": 5,
|
||||
"sleep_min": 0,
|
||||
"sleep_max": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
15
samples/tasks/scenarios/dummy/dummy-random-action.yaml
Normal file
15
samples/tasks/scenarios/dummy/dummy-random-action.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
Dummy.dummy_random_action:
|
||||
-
|
||||
args:
|
||||
atomics_num: 5
|
||||
sleep_min: 0
|
||||
sleep_max: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
@ -0,0 +1,14 @@
|
||||
{
|
||||
"Dummy.dummy_random_fail_in_atomic": [
|
||||
{
|
||||
"args": {
|
||||
"exception_probability": 0.5
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
Dummy.dummy_random_fail_in_atomic:
|
||||
-
|
||||
args:
|
||||
exception_probability: 0.5
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
@ -0,0 +1,26 @@
|
||||
{
|
||||
"Dummy.dummy_timed_atomic_actions": [
|
||||
{
|
||||
"args": {
|
||||
"number_of_actions": 1,
|
||||
"sleep_factor": 1
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 5
|
||||
},
|
||||
"sla": {
|
||||
"max_avg_duration_per_atomic": {
|
||||
"action_0": 1.0
|
||||
}
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
Dummy.dummy_timed_atomic_actions:
|
||||
-
|
||||
args:
|
||||
number_of_actions: 1
|
||||
sleep_factor: 1
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 5
|
||||
sla:
|
||||
max_avg_duration_per_atomic:
|
||||
action_0: 1.0
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
23
samples/tasks/scenarios/glance/list-images.json
Normal file
23
samples/tasks/scenarios/glance/list-images.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"GlanceImages.list_images": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
},
|
||||
"images": {
|
||||
"image_url": "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img",
|
||||
"image_type": "qcow2",
|
||||
"image_container": "bare",
|
||||
"images_per_tenant": 4
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
samples/tasks/scenarios/glance/list-images.yaml
Normal file
16
samples/tasks/scenarios/glance/list-images.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
GlanceImages.list_images:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
images:
|
||||
image_url: "http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img"
|
||||
image_type: "qcow2"
|
||||
image_container: "bare"
|
||||
images_per_tenant: 4
|
@ -0,0 +1,24 @@
|
||||
{
|
||||
"HeatStacks.create_and_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template",
|
||||
"parameters": {
|
||||
"num_instances": 2
|
||||
},
|
||||
"files": ["samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"]
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 3,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
---
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-server-with-volume.yaml.template"
|
||||
parameters:
|
||||
num_instances: 2
|
||||
files: ["samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"]
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 3
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 3
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"HeatStacks.create_and_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-constraint.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"HeatStacks.create_and_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/server-with-ports.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 3
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"HeatStacks.create_and_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
HeatStacks.create_and_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/server-with-volume.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 3
|
@ -2,7 +2,7 @@
|
||||
"HeatStacks.create_check_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,7 +2,7 @@
|
||||
HeatStacks.create_check_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,7 +2,7 @@
|
||||
"HeatStacks.create_snapshot_restore_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,7 +2,7 @@
|
||||
HeatStacks.create_snapshot_restore_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -0,0 +1,39 @@
|
||||
{
|
||||
"HeatStacks.create_stack_and_list_output": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"HeatStacks.create_stack_and_list_output_via_API": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
---
|
||||
HeatStacks.create_stack_and_list_output:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
|
||||
HeatStacks.create_stack_and_list_output_via_API:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -2,7 +2,7 @@
|
||||
"HeatStacks.create_stack_and_scale": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/autoscaling_group.yaml.template",
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template",
|
||||
"output_key": "scaling_url",
|
||||
"delta": 1
|
||||
},
|
||||
|
@ -2,7 +2,7 @@
|
||||
HeatStacks.create_stack_and_scale:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/autoscaling_group.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/autoscaling-group.yaml.template"
|
||||
output_key: "scaling_url"
|
||||
delta: 1
|
||||
runner:
|
||||
|
@ -0,0 +1,41 @@
|
||||
{
|
||||
"HeatStacks.create_stack_and_show_output": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template",
|
||||
"output_key": "val1"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"HeatStacks.create_stack_and_show_output_via_API": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template",
|
||||
"output_key": "val1"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 1
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
---
|
||||
HeatStacks.create_stack_and_show_output:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
output_key: "val1"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
|
||||
HeatStacks.create_stack_and_show_output_via_API:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group-with-outputs.yaml.template"
|
||||
output_key: "val1"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 1
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -2,7 +2,7 @@
|
||||
"HeatStacks.create_suspend_resume_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,7 +2,7 @@
|
||||
HeatStacks.create_suspend_resume_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_add.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_add.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-add.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_delete.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_delete.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-delete.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource_group.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_resource_group_increase.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource_group.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_resource_group_increase.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-resource-group-increase.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/autoscaling_policy.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_autoscaling_policy_inplace.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/autoscaling_policy.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_autoscaling_policy_inplace.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/autoscaling-policy.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-autoscaling-policy-inplace.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource_group.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_resource_group_reduce.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/resource-group.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource_group.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_resource_group_reduce.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/resource-group.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-resource-group-reduce.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -2,8 +2,8 @@
|
||||
"HeatStacks.create_update_delete_stack": [
|
||||
{
|
||||
"args": {
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random_strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated_random_strings_replace.yaml.template"
|
||||
"template_path": "samples/tasks/scenarios/heat/templates/random-strings.yaml.template",
|
||||
"updated_template_path": "samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
|
@ -2,8 +2,8 @@
|
||||
HeatStacks.create_update_delete_stack:
|
||||
-
|
||||
args:
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random_strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated_random_strings_replace.yaml.template"
|
||||
template_path: "samples/tasks/scenarios/heat/templates/random-strings.yaml.template"
|
||||
updated_template_path: "samples/tasks/scenarios/heat/templates/updated-random-strings-replace.yaml.template"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
|
@ -0,0 +1,46 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
parameters:
|
||||
flavor:
|
||||
type: string
|
||||
default: m1.tiny
|
||||
constraints:
|
||||
- custom_constraint: nova.flavor
|
||||
image:
|
||||
type: string
|
||||
default: cirros-0.3.4-x86_64-uec
|
||||
constraints:
|
||||
- custom_constraint: glance.image
|
||||
scaling_adjustment:
|
||||
type: number
|
||||
default: 1
|
||||
max_size:
|
||||
type: number
|
||||
default: 5
|
||||
constraints:
|
||||
- range: {min: 1}
|
||||
|
||||
|
||||
resources:
|
||||
asg:
|
||||
type: OS::Heat::AutoScalingGroup
|
||||
properties:
|
||||
resource:
|
||||
type: OS::Nova::Server
|
||||
properties:
|
||||
image: { get_param: image }
|
||||
flavor: { get_param: flavor }
|
||||
min_size: 1
|
||||
desired_capacity: 3
|
||||
max_size: { get_param: max_size }
|
||||
|
||||
scaling_policy:
|
||||
type: OS::Heat::ScalingPolicy
|
||||
properties:
|
||||
adjustment_type: change_in_capacity
|
||||
auto_scaling_group_id: {get_resource: asg}
|
||||
scaling_adjustment: { get_param: scaling_adjustment }
|
||||
|
||||
outputs:
|
||||
scaling_url:
|
||||
value: {get_attr: [scaling_policy, alarm_url]}
|
@ -0,0 +1,17 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
resources:
|
||||
test_group:
|
||||
type: OS::Heat::AutoScalingGroup
|
||||
properties:
|
||||
desired_capacity: 0
|
||||
max_size: 0
|
||||
min_size: 0
|
||||
resource:
|
||||
type: OS::Heat::RandomString
|
||||
test_policy:
|
||||
type: OS::Heat::ScalingPolicy
|
||||
properties:
|
||||
adjustment_type: change_in_capacity
|
||||
auto_scaling_group_id: { get_resource: test_group }
|
||||
scaling_adjustment: 1
|
@ -0,0 +1,13 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: Test template for rally create-update-delete scenario
|
||||
|
||||
resources:
|
||||
test_string_one:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
||||
test_string_two:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,44 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template that creates a resource group with servers and volumes.
|
||||
The template allows to create a lot of nested stacks with standard
|
||||
configuration: nova instance, cinder volume attached to that instance
|
||||
|
||||
parameters:
|
||||
|
||||
num_instances:
|
||||
type: number
|
||||
description: number of instances that should be created in resource group
|
||||
constraints:
|
||||
- range: {min: 1}
|
||||
instance_image:
|
||||
type: string
|
||||
default: cirros-0.3.4-x86_64-uec
|
||||
instance_volume_size:
|
||||
type: number
|
||||
description: Size of volume to attach to instance
|
||||
default: 1
|
||||
constraints:
|
||||
- range: {min: 1, max: 1024}
|
||||
instance_flavor:
|
||||
type: string
|
||||
description: Type of the instance to be created.
|
||||
default: m1.tiny
|
||||
instance_availability_zone:
|
||||
type: string
|
||||
description: The Availability Zone to launch the instance.
|
||||
default: nova
|
||||
|
||||
resources:
|
||||
group_of_volumes:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: {get_param: num_instances}
|
||||
resource_def:
|
||||
type: templates/server-with-volume.yaml.template
|
||||
properties:
|
||||
image: {get_param: instance_image}
|
||||
volume_size: {get_param: instance_volume_size}
|
||||
flavor: {get_param: instance_flavor}
|
||||
availability_zone: {get_param: instance_availability_zone}
|
@ -0,0 +1,21 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
description: Template for testing caching.
|
||||
|
||||
parameters:
|
||||
count:
|
||||
type: number
|
||||
default: 40
|
||||
delay:
|
||||
type: number
|
||||
default: 0.1
|
||||
|
||||
resources:
|
||||
rg:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: {get_param: count}
|
||||
resource_def:
|
||||
type: OS::Heat::TestResource
|
||||
properties:
|
||||
constraint_prop_secs: {get_param: delay}
|
@ -0,0 +1,37 @@
|
||||
heat_template_version: 2013-05-23
|
||||
parameters:
|
||||
attr_wait_secs:
|
||||
type: number
|
||||
default: 0.5
|
||||
|
||||
resources:
|
||||
rg:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: 10
|
||||
resource_def:
|
||||
type: OS::Heat::TestResource
|
||||
properties:
|
||||
attr_wait_secs: {get_param: attr_wait_secs}
|
||||
|
||||
outputs:
|
||||
val1:
|
||||
value: {get_attr: [rg, resource.0.output]}
|
||||
val2:
|
||||
value: {get_attr: [rg, resource.1.output]}
|
||||
val3:
|
||||
value: {get_attr: [rg, resource.2.output]}
|
||||
val4:
|
||||
value: {get_attr: [rg, resource.3.output]}
|
||||
val5:
|
||||
value: {get_attr: [rg, resource.4.output]}
|
||||
val6:
|
||||
value: {get_attr: [rg, resource.5.output]}
|
||||
val7:
|
||||
value: {get_attr: [rg, resource.6.output]}
|
||||
val8:
|
||||
value: {get_attr: [rg, resource.7.output]}
|
||||
val9:
|
||||
value: {get_attr: [rg, resource.8.output]}
|
||||
val10:
|
||||
value: {get_attr: [rg, resource.9.output]}
|
@ -0,0 +1,13 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: Test template for rally create-update-delete scenario
|
||||
|
||||
resources:
|
||||
test_group:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: 2
|
||||
resource_def:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,64 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
parameters:
|
||||
# set all correct defaults for parameters before launch test
|
||||
public_net:
|
||||
type: string
|
||||
default: public
|
||||
image:
|
||||
type: string
|
||||
default: cirros-0.3.4-x86_64-uec
|
||||
flavor:
|
||||
type: string
|
||||
default: m1.tiny
|
||||
cidr:
|
||||
type: string
|
||||
default: 11.11.11.0/24
|
||||
|
||||
resources:
|
||||
server:
|
||||
type: OS::Nova::Server
|
||||
properties:
|
||||
image: {get_param: image}
|
||||
flavor: {get_param: flavor}
|
||||
networks:
|
||||
- port: { get_resource: server_port }
|
||||
|
||||
router:
|
||||
type: OS::Neutron::Router
|
||||
properties:
|
||||
external_gateway_info:
|
||||
network: {get_param: public_net}
|
||||
|
||||
router_interface:
|
||||
type: OS::Neutron::RouterInterface
|
||||
properties:
|
||||
router_id: { get_resource: router }
|
||||
subnet_id: { get_resource: private_subnet }
|
||||
|
||||
private_net:
|
||||
type: OS::Neutron::Net
|
||||
|
||||
private_subnet:
|
||||
type: OS::Neutron::Subnet
|
||||
properties:
|
||||
network: { get_resource: private_net }
|
||||
cidr: {get_param: cidr}
|
||||
|
||||
port_security_group:
|
||||
type: OS::Neutron::SecurityGroup
|
||||
properties:
|
||||
name: default_port_security_group
|
||||
description: >
|
||||
Default security group assigned to port. The neutron default group is not
|
||||
used because neutron creates several groups with the same name=default and
|
||||
nova cannot chooses which one should it use.
|
||||
|
||||
server_port:
|
||||
type: OS::Neutron::Port
|
||||
properties:
|
||||
network: {get_resource: private_net}
|
||||
fixed_ips:
|
||||
- subnet: { get_resource: private_subnet }
|
||||
security_groups:
|
||||
- { get_resource: port_security_group }
|
@ -0,0 +1,39 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
parameters:
|
||||
# set all correct defaults for parameters before launch test
|
||||
image:
|
||||
type: string
|
||||
default: cirros-0.3.4-x86_64-uec
|
||||
flavor:
|
||||
type: string
|
||||
default: m1.tiny
|
||||
availability_zone:
|
||||
type: string
|
||||
description: The Availability Zone to launch the instance.
|
||||
default: nova
|
||||
volume_size:
|
||||
type: number
|
||||
description: Size of the volume to be created.
|
||||
default: 1
|
||||
constraints:
|
||||
- range: { min: 1, max: 1024 }
|
||||
description: must be between 1 and 1024 Gb.
|
||||
|
||||
resources:
|
||||
server:
|
||||
type: OS::Nova::Server
|
||||
properties:
|
||||
image: {get_param: image}
|
||||
flavor: {get_param: flavor}
|
||||
cinder_volume:
|
||||
type: OS::Cinder::Volume
|
||||
properties:
|
||||
size: { get_param: volume_size }
|
||||
availability_zone: { get_param: availability_zone }
|
||||
volume_attachment:
|
||||
type: OS::Cinder::VolumeAttachment
|
||||
properties:
|
||||
volume_id: { get_resource: cinder_volume }
|
||||
instance_uuid: { get_resource: server}
|
||||
mountpoint: /dev/vdc
|
@ -0,0 +1,23 @@
|
||||
heat_template_version: 2013-05-23
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template updates resource parameters without resource re-creation(replacement)
|
||||
in the stack defined by autoscaling_policy.yaml.template. It allows to measure
|
||||
performance of "pure" resource update operation only.
|
||||
|
||||
resources:
|
||||
test_group:
|
||||
type: OS::Heat::AutoScalingGroup
|
||||
properties:
|
||||
desired_capacity: 0
|
||||
max_size: 0
|
||||
min_size: 0
|
||||
resource:
|
||||
type: OS::Heat::RandomString
|
||||
test_policy:
|
||||
type: OS::Heat::ScalingPolicy
|
||||
properties:
|
||||
adjustment_type: change_in_capacity
|
||||
auto_scaling_group_id: { get_resource: test_group }
|
||||
scaling_adjustment: -1
|
@ -0,0 +1,19 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template updates the stack defined by random-strings.yaml.template with additional resource.
|
||||
|
||||
resources:
|
||||
test_string_one:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
||||
test_string_two:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
||||
test_string_three:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,11 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template deletes one resource from the stack defined by random-strings.yaml.template.
|
||||
|
||||
resources:
|
||||
test_string_one:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,19 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template deletes one resource from the stack defined by
|
||||
random-strings.yaml.template and re-creates it with the updated parameters
|
||||
(so-called update-replace). That happens because some parameters cannot be
|
||||
changed without resource re-creation. The template allows to measure performance
|
||||
of update-replace operation.
|
||||
|
||||
resources:
|
||||
test_string_one:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
||||
test_string_two:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 40
|
@ -0,0 +1,16 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template updates one resource from the stack defined by resource-group.yaml.template
|
||||
and adds children resources to that resource.
|
||||
|
||||
resources:
|
||||
test_group:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: 3
|
||||
resource_def:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,16 @@
|
||||
heat_template_version: 2014-10-16
|
||||
|
||||
description: >
|
||||
Test template for create-update-delete-stack scenario in rally.
|
||||
The template updates one resource from the stack defined by resource-group.yaml.template
|
||||
and deletes children resources from that resource.
|
||||
|
||||
resources:
|
||||
test_group:
|
||||
type: OS::Heat::ResourceGroup
|
||||
properties:
|
||||
count: 1
|
||||
resource_def:
|
||||
type: OS::Heat::RandomString
|
||||
properties:
|
||||
length: 20
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"KeystoneBasic.add_and_remove_user_role": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
KeystoneBasic.add_and_remove_user_role:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"KeystoneBasic.create_add_and_list_user_roles": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 3,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
KeystoneBasic.create_add_and_list_user_roles:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
||||
context:
|
||||
users:
|
||||
tenants: 3
|
||||
users_per_tenant: 2
|
@ -0,0 +1,12 @@
|
||||
{
|
||||
"KeystoneBasic.create_user_update_password": [
|
||||
{
|
||||
"args": {},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 100,
|
||||
"concurrency": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
---
|
||||
KeystoneBasic.create_user_update_password:
|
||||
-
|
||||
args: {}
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 100
|
||||
concurrency: 10
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"MuranoEnvironments.create_and_delete_environment": [
|
||||
{
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 10,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
---
|
||||
MuranoEnvironments.create_and_delete_environment:
|
||||
-
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 10
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
@ -0,0 +1,44 @@
|
||||
{
|
||||
"MuranoEnvironments.create_and_deploy_environment": [
|
||||
{
|
||||
"args": {
|
||||
"packages_per_env": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 2,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
},
|
||||
"murano_packages": {
|
||||
"app_package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip"
|
||||
},
|
||||
"roles": ["admin"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"args": {
|
||||
"packages_per_env": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 2,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 2
|
||||
},
|
||||
"murano_packages": {
|
||||
"app_package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
||||
},
|
||||
"roles": ["admin"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
---
|
||||
MuranoEnvironments.create_and_deploy_environment:
|
||||
-
|
||||
args:
|
||||
packages_per_env: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 2
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
murano_packages:
|
||||
app_package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip"
|
||||
roles:
|
||||
- "admin"
|
||||
-
|
||||
args:
|
||||
packages_per_env: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 2
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 2
|
||||
murano_packages:
|
||||
app_package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
||||
roles:
|
||||
- "admin"
|
@ -0,0 +1,20 @@
|
||||
{
|
||||
"MuranoPackages.import_and_delete_package": [
|
||||
{
|
||||
"args": {
|
||||
"package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
---
|
||||
MuranoPackages.import_and_delete_package:
|
||||
-
|
||||
args:
|
||||
package: "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 5
|
||||
concurrency: 2
|
||||
context:
|
||||
users:
|
||||
tenants: 2
|
||||
users_per_tenant: 1
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"MuranoPackages.import_and_filter_applications": [
|
||||
{
|
||||
"args": {
|
||||
"package": "rally-jobs/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/",
|
||||
"filter_query": {"category" : "Web"}
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 5,
|
||||
"concurrency": 2
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 2,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user