Fix tox job for stress tests.
This commit fixes the behavior of the tox stress job. To do this a
new json tests file was added for the tox job. This json file will
contain a list of all the actions that will get run as part of the
tox job. (and by extension the periodic jenkins stress test job) The
tox job is then updated to run each of the tests listed in the json
file for an hour each.
Part of: blueprint stress-tests
Change-Id: I5eb0652799601631e34cc2bbef836624d71bb3e7
diff --git a/tempest/stress/etc/stress-tox-job.json b/tempest/stress/etc/stress-tox-job.json
new file mode 100644
index 0000000..7c5626d
--- /dev/null
+++ b/tempest/stress/etc/stress-tox-job.json
@@ -0,0 +1,13 @@
+[{"action": "tempest.stress.actions.create_destroy_server.create_destroy",
+ "threads": 8,
+ "use_admin": false,
+ "use_isolated_tenants": false,
+ "kwargs": {}
+ },
+ {"action": "tempest.stress.actions.volume_create_delete.create_delete",
+ "threads": 4,
+ "use_admin": false,
+ "use_isolated_tenants": false,
+ "kwargs": {}
+ }
+]
diff --git a/tox.ini b/tox.ini
index 964dbca..ae1b11e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -65,9 +65,7 @@
sitepackages = True
setenv = VIRTUAL_ENV={envdir}
commands =
- python -m tempest/stress/run_stress tempest/stress/etc/sample-test.json -d 60
- python -m tempest/stress/run_stress tempest/stress/etc/volume-create-delete-test.json -d 60
-
+ python -m tempest/stress/run_stress tempest/stress/etc/stress-tox-job.json -d 3600
[testenv:venv]
commands = {posargs}