Actions
action #71146
closed[os-autoinst][backends] Prevent undocumented test variables in backends / prevent use of external testapi methods
Description
Motivation¶
We have a test for undocumented test variables t/04-check_vars_docu.t but this one only checks for variables like $bmwqemu::vars
and not uses of get_var
or get_required_var
in our backends. Also it is a good practice to not use the external API from testapi.pm in any internal implementations.
Acceptance criteria¶
- AC1: use of
get_var
,check_var
,set_var
,get_required_var
is prevented in backends - AC2: undocumented test variables (or test variables used like
get_var('FOO')
) are prevented in backends
Suggestions¶
- Add a test, e.g. directly in t/04-check_vars_docu.t that fails if any
get_var('FOO')
or alike is encountered in backends, especially if FOO is not mentioned in docs/backend_vars.asciidoc
Updated by okurz about 4 years ago
- Copied from action #34303: Fix test for undocumented backend variables added
Updated by okurz over 2 years ago
- Status changed from Workable to Resolved
- Assignee set to okurz
- Target version changed from future to Ready
Actions