Add create-update-delete stack scenario
The create-update-delete stack scenario executes the following actions with using Heat: - creates the new stack (with some resources) - updates the stack and stack resoruces with the new template - deletes the stack. Unit-tests for the changes above are also included into patch. Patch also adds rally test cases for stack create-update-delete stack scenario (because rally tests require test scenario to be used by test case samples): Case 1: - Heat creates a new stack - Heat updates the stack with adding additional resource to the stack - Heat deletes the stack Case 2: - Heat creates a stack - Heat updates the stack with deleting some resource from the stack - Heat deletes the stack. Change-Id: I4c0ff24d0651434450a281a62670f1bd6c2a0000
This commit is contained in:
parent
15abe719ac
commit
07727d2a4f
13
rally-jobs/extra/random_strings.yaml.template
Normal file
13
rally-jobs/extra/random_strings.yaml.template
Normal file
@ -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
|
19
rally-jobs/extra/updated_random_strings_add.yaml.template
Normal file
19
rally-jobs/extra/updated_random_strings_add.yaml.template
Normal file
@ -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
|
11
rally-jobs/extra/updated_random_strings_delete.yaml.template
Normal file
11
rally-jobs/extra/updated_random_strings_delete.yaml.template
Normal file
@ -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
|
@ -475,7 +475,7 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: '/home/jenkins/.rally/extra/server_with_volume.yaml.template'
|
template_path: "/home/jenkins/.rally/extra/server_with_volume.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 2
|
times: 2
|
||||||
@ -488,6 +488,39 @@
|
|||||||
failure_rate:
|
failure_rate:
|
||||||
max: 0
|
max: 0
|
||||||
|
|
||||||
|
HeatStacks.create_update_delete_stack:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
||||||
|
updated_template_path: "/home/jenkins/.rally/extra/updated_random_strings_add.yaml.template"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: 6
|
||||||
|
concurrency: 3
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
||||||
|
sla:
|
||||||
|
failure_rate:
|
||||||
|
max: 0
|
||||||
|
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
||||||
|
updated_template_path: "/home/jenkins/.rally/extra/updated_random_strings_delete.yaml.template"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: 6
|
||||||
|
concurrency: 3
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
||||||
|
sla:
|
||||||
|
failure_rate:
|
||||||
|
max: 0
|
||||||
|
|
||||||
Authenticate.keystone:
|
Authenticate.keystone:
|
||||||
-
|
-
|
||||||
runner:
|
runner:
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"HeatStacks.create_update_delete_stack": [
|
||||||
|
{
|
||||||
|
"args": {
|
||||||
|
"template_path": "templates/random_strings.yaml.template",
|
||||||
|
"updated_template_path": "templates/updated_random_strings_add.yaml.template"
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"type": "constant",
|
||||||
|
"times": 10,
|
||||||
|
"concurrency": 2
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"users": {
|
||||||
|
"tenants": 2,
|
||||||
|
"users_per_tenant": 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
HeatStacks.create_update_delete_stack:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "templates/random_strings.yaml.template"
|
||||||
|
updated_template_path: "templates/updated_random_strings_add.yaml.template"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: 10
|
||||||
|
concurrency: 2
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"HeatStacks.create_update_delete_stack": [
|
||||||
|
{
|
||||||
|
"args": {
|
||||||
|
"template_path": "templates/random_strings.yaml.template",
|
||||||
|
"updated_template_path": "templates/updated_random_strings_delete.yaml.template"
|
||||||
|
},
|
||||||
|
"runner": {
|
||||||
|
"type": "constant",
|
||||||
|
"times": 10,
|
||||||
|
"concurrency": 2
|
||||||
|
},
|
||||||
|
"context": {
|
||||||
|
"users": {
|
||||||
|
"tenants": 2,
|
||||||
|
"users_per_tenant": 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
HeatStacks.create_update_delete_stack:
|
||||||
|
-
|
||||||
|
args:
|
||||||
|
template_path: "templates/random_strings.yaml.template"
|
||||||
|
updated_template_path: "templates/updated_random_strings_delete.yaml.template"
|
||||||
|
runner:
|
||||||
|
type: "constant"
|
||||||
|
times: 10
|
||||||
|
concurrency: 2
|
||||||
|
context:
|
||||||
|
users:
|
||||||
|
tenants: 2
|
||||||
|
users_per_tenant: 3
|
Loading…
Reference in New Issue
Block a user