mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add TCP transport nox sessions
This commit is contained in:
parent
680b3e586a
commit
535e7a7135
1 changed files with 86 additions and 2 deletions
88
noxfile.py
88
noxfile.py
|
@ -272,7 +272,7 @@ def _runtests(session, coverage, transport, cmd_args):
|
|||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-parametrized')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
@nox.parametrize('transport', ['zeromq', 'raet'])
|
||||
@nox.parametrize('transport', ['zeromq', 'raet', 'tcp'])
|
||||
@nox.parametrize('crypto', [None, 'm2crypto', 'pycryptodomex'])
|
||||
def runtests_parametrized(session, coverage, transport, crypto):
|
||||
# Install requirements
|
||||
|
@ -308,6 +308,20 @@ def runtests(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-tcp')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_tcp(session, coverage):
|
||||
'''
|
||||
runtests.py session with TCP transport and default crypto
|
||||
'''
|
||||
session.notify(
|
||||
'runtests-parametrized-{}(coverage={}, crypto=None, transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-zeromq')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_zeromq(session, coverage):
|
||||
|
@ -350,6 +364,20 @@ def runtests_m2crypto(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-tcp-m2crypto')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_tcp_m2crypto(session, coverage):
|
||||
'''
|
||||
runtests.py session with TCP transport and m2crypto
|
||||
'''
|
||||
session.notify(
|
||||
'runtests-parametrized-{}(coverage={}, crypto=\'m2crypto\', transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-zeromq-m2crypto')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_zeromq_m2crypto(session, coverage):
|
||||
|
@ -392,6 +420,20 @@ def runtests_pycryptodomex(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-tcp-pycryptodomex')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_tcp_pycryptodomex(session, coverage):
|
||||
'''
|
||||
runtests.py session with TCP transport and pycryptodomex
|
||||
'''
|
||||
session.notify(
|
||||
'runtests-parametrized-{}(coverage={}, crypto=\'pycryptodomex\', transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='runtests-zeromq-pycryptodomex')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def runtests_zeromq_pycryptodomex(session, coverage):
|
||||
|
@ -422,7 +464,7 @@ def runtests_raet_pycryptodomex(session, coverage):
|
|||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-parametrized')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
@nox.parametrize('transport', ['zeromq', 'raet'])
|
||||
@nox.parametrize('transport', ['zeromq', 'raet', 'tcp'])
|
||||
@nox.parametrize('crypto', [None, 'm2crypto', 'pycryptodomex'])
|
||||
def pytest_parametrized(session, coverage, transport, crypto):
|
||||
# Install requirements
|
||||
|
@ -462,6 +504,20 @@ def pytest(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-tcp')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_tcp(session, coverage):
|
||||
'''
|
||||
pytest session with TCP transport and default crypto
|
||||
'''
|
||||
session.notify(
|
||||
'pytest-parametrized-{}(coverage={}, crypto=None, transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-zeromq')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_zeromq(session, coverage):
|
||||
|
@ -504,6 +560,20 @@ def pytest_m2crypto(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-tcp-m2crypto')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_tcp_m2crypto(session, coverage):
|
||||
'''
|
||||
pytest session with TCP transport and m2crypto
|
||||
'''
|
||||
session.notify(
|
||||
'pytest-parametrized-{}(coverage={}, crypto=\'m2crypto\', transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-zeromq-m2crypto')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_zeromq_m2crypto(session, coverage):
|
||||
|
@ -546,6 +616,20 @@ def pytest_pycryptodomex(session, coverage):
|
|||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-tcp-pycryptodomex')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_tcp_pycryptodomex(session, coverage):
|
||||
'''
|
||||
pytest session with TCP transport and pycryptodomex
|
||||
'''
|
||||
session.notify(
|
||||
'pytest-parametrized-{}(coverage={}, crypto=\'pycryptodomex\', transport=\'tcp\')'.format(
|
||||
session.python,
|
||||
coverage
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name='pytest-zeromq-pycryptodomex')
|
||||
@nox.parametrize('coverage', [False, True])
|
||||
def pytest_zeromq_pycryptodomex(session, coverage):
|
||||
|
|
Loading…
Add table
Reference in a new issue