blob: 04db849f46eb70ebb43b9399fde4f761b11a0ddd [file] [log] [blame]
Andrea Frittoli (andreaf)7d5445d2017-10-03 18:43:05 +01001Run Tempest
2
Luigi Toscanob7746662020-04-17 13:31:00 +02003The result of the tempest run is stored in the `tempest_run_result`
4variable (through the `register` statement).
5
Andrea Frittoli (andreaf)7d5445d2017-10-03 18:43:05 +01006**Role Variables**
7
8.. zuul:rolevar:: devstack_base_dir
9 :default: /opt/stack
10
11 The devstack base directory.
12
13.. zuul:rolevar:: tempest_concurrency
14 :default: 0
15
16 The number of parallel test processes.
17
Luigi Toscanoe8a1f532017-11-16 15:22:07 +010018.. zuul:rolevar:: tempest_test_regex
19 :default: ''
20
21 A regular expression used to select the tests.
Michel Peterson515edd42017-12-21 17:22:49 +020022
Luigi Toscanoe8a1f532017-11-16 15:22:07 +010023 It works only when used with some specific tox environments
Lukáš Piwowarskibe19f212022-10-07 13:47:11 +020024 ('all', 'all-site-packages').
Luigi Toscanoe8a1f532017-11-16 15:22:07 +010025
Martin Kopec4af65402020-02-05 14:57:10 +000026 In the following example only api scenario and third party tests
27 will be executed.
Michel Peterson515edd42017-12-21 17:22:49 +020028
29 ::
30 vars:
Martin Kopec4af65402020-02-05 14:57:10 +000031 tempest_test_regex: (tempest\.(api|scenario|thirdparty)).*$
Michel Peterson515edd42017-12-21 17:22:49 +020032
Michel Petersonef1a16d2018-02-23 20:20:22 +020033.. zuul:rolevar:: tempest_test_blacklist
34
Martin Kopecdc844232020-12-24 15:57:53 +000035 DEPRECATED option, please use tempest_test_exclude_list instead.
36
37.. zuul:rolevar:: tempest_test_exclude_list
38
39 Specifies an excludelist file to skip tests that are not needed.
Michel Petersonef1a16d2018-02-23 20:20:22 +020040
41 Pass a full path to the file.
42
Andreas Jaegerba2f4792018-01-12 16:48:52 +010043.. zuul:rolevar:: tox_envlist
Andrea Frittoli (andreaf)7d5445d2017-10-03 18:43:05 +010044 :default: smoke
45
46 The Tempest tox environment to run.
Chandan Kumara9445042018-02-26 10:22:29 +000047
48.. zuul:rolevar:: tempest_black_regex
49 :default: ''
50
Martin Kopecdc844232020-12-24 15:57:53 +000051 DEPRECATED option, please use tempest_exclude_regex instead.
52
53.. zuul:rolevar:: tempest_exclude_regex
54 :default: ''
55
Chandan Kumara9445042018-02-26 10:22:29 +000056 A regular expression used to skip the tests.
57
58 It works only when used with some specific tox environments
Lukáš Piwowarskibe19f212022-10-07 13:47:11 +020059 ('all', 'all-site-packages').
Chandan Kumara9445042018-02-26 10:22:29 +000060
Chandan Kumara9445042018-02-26 10:22:29 +000061 ::
62 vars:
Martin Kopecdc844232020-12-24 15:57:53 +000063 tempest_exclude_regex: (tempest.api.identity).*$
Sergey Vilgelm2979bff2018-11-06 10:34:03 -060064
65.. zuul:rolevar:: tox_extra_args
66 :default: ''
67
68 String of extra command line options to pass to tox.
69
70 Here is an example of running tox with --sitepackages option:
71
72 ::
73 vars:
74 tox_extra_args: --sitepackages
Dmitry Tantsur5952f852019-08-29 14:06:12 +020075
76.. zuul:rolevar:: tempest_test_timeout
77 :default: ''
78
79 The timeout (in seconds) for each test.
Ghanshyam56149022020-02-05 15:53:26 -060080
81.. zuul:rolevar:: stable_constraints_file
82 :default: ''
83
Ghanshyam Mannd9b6d7c2022-05-28 18:57:54 -050084 Upper constraints file to be used for stable branch till stable/victoria.
Ghanshyam56149022020-02-05 15:53:26 -060085
86.. zuul:rolevar:: tempest_tox_environment
87 :default: ''
88
89 Environment variable to set for run-tempst task.
90
91 Env variables set in this variable will be combined with some more
92 defaults env variable set at runtime.