mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
add proxy tests decorator to pytest conftest
This commit is contained in:
parent
0a621dd0ec
commit
e0f7cc1447
2 changed files with 11 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,6 +11,7 @@ MANIFEST
|
|||
*.wpr
|
||||
*.wpu
|
||||
*.DS_Store
|
||||
.pytest_cache
|
||||
|
||||
# virtualenv
|
||||
# - ignores directories of a virtualenv when you create it right on
|
||||
|
|
|
@ -102,6 +102,14 @@ def pytest_addoption(parser):
|
|||
'SSH server on your machine. In certain environments, this '
|
||||
'may be insecure! Default: False'
|
||||
)
|
||||
test_selection_group.addoption(
|
||||
'--proxy',
|
||||
'--proxy-tests',
|
||||
dest='ssh',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Run proxy tests'
|
||||
)
|
||||
test_selection_group.addoption(
|
||||
'--run-destructive',
|
||||
action='store_true',
|
||||
|
@ -640,7 +648,8 @@ def test_daemon(request):
|
|||
('sysinfo', request.config.getoption('--sysinfo')),
|
||||
('no_colors', request.config.getoption('--no-colors')),
|
||||
('output_columns', request.config.getoption('--output-columns')),
|
||||
('ssh', request.config.getoption('--ssh')))
|
||||
('ssh', request.config.getoption('--ssh')),
|
||||
('proxy', request.config.getoption('--proxy')))
|
||||
options = namedtuple('options', [n for n, v in values])(*[v for n, v in values])
|
||||
fake_parser = namedtuple('parser', 'options')(options)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue