[Plugins] Class-based scenario DummyFailure
This adds the first class-based scenario. Change-Id: Ia1a0ea6988b21f792070ac15e425dc52441ff4c2 Implements: class-based-scenarios
This commit is contained in:
parent
5251ec2d5e
commit
b362db49a0
@ -672,6 +672,26 @@
|
||||
action_3: 4.0
|
||||
action_4: 5.0
|
||||
|
||||
dummy.failure:
|
||||
-
|
||||
args:
|
||||
sleep: 0.2
|
||||
from_iteration: 5
|
||||
to_iteration: 15
|
||||
each: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
||||
sla:
|
||||
failure_rate:
|
||||
min: 25
|
||||
max: 25
|
||||
|
||||
FakePlugin.testplugin:
|
||||
-
|
||||
runner:
|
||||
|
23
samples/tasks/scenarios/dummy/dummy-failure.json
Normal file
23
samples/tasks/scenarios/dummy/dummy-failure.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"dummy.failure": [
|
||||
{
|
||||
"args": {
|
||||
"sleep": 0.2,
|
||||
"from_iteration": 5,
|
||||
"to_iteration": 10,
|
||||
"each": 2
|
||||
},
|
||||
"runner": {
|
||||
"type": "constant",
|
||||
"times": 20,
|
||||
"concurrency": 5
|
||||
},
|
||||
"context": {
|
||||
"users": {
|
||||
"tenants": 1,
|
||||
"users_per_tenant": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
16
samples/tasks/scenarios/dummy/dummy-failure.yaml
Normal file
16
samples/tasks/scenarios/dummy/dummy-failure.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
dummy.failure:
|
||||
-
|
||||
args:
|
||||
sleep: 0.2
|
||||
from_iteration: 5
|
||||
to_iteration: 10
|
||||
each: 2
|
||||
runner:
|
||||
type: "constant"
|
||||
times: 20
|
||||
concurrency: 5
|
||||
context:
|
||||
users:
|
||||
tenants: 1
|
||||
users_per_tenant: 1
|
Loading…
x
Reference in New Issue
Block a user