mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Migrate the package download tests to onedir
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
6759096148
commit
f661bda53b
3 changed files with 14 additions and 12 deletions
17
noxfile.py
17
noxfile.py
|
@ -1842,20 +1842,15 @@ def test_upgrade_pkgs_onedir(session, classic):
|
|||
_pkg_test(session, cmd_args, test_type, onedir=True)
|
||||
|
||||
|
||||
@nox.session(python=_PYTHON_VERSIONS, name="test-download-pkgs")
|
||||
def test_download_pkgs(session):
|
||||
@nox.session(
|
||||
python=str(ONEDIR_PYTHON_PATH),
|
||||
name="test-download-pkgs",
|
||||
venv_params=["--system-site-packages"],
|
||||
)
|
||||
def test_download_pkgs_onedir(session):
|
||||
"""
|
||||
pytest pkg download tests session
|
||||
"""
|
||||
test_type = "pkg_download"
|
||||
# Install requirements
|
||||
if _upgrade_pip_setuptools_and_wheel(session):
|
||||
requirements_file = os.path.join(
|
||||
"requirements", "static", "ci", _get_pydir(session), "pkgtests.txt"
|
||||
)
|
||||
|
||||
install_command = ["--progress-bar=off", "-r", requirements_file]
|
||||
session.install(*install_command, silent=PIP_INSTALL_SILENT)
|
||||
|
||||
cmd_args = ["pkg/tests/download/test_pkg_download.py"] + session.posargs
|
||||
_pkg_test(session, cmd_args, test_type, onedir=True)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
cherrypy
|
||||
pytest-salt-factories==1.0.0rc17
|
||||
docker
|
||||
|
|
|
@ -29,6 +29,8 @@ distro==1.8.0
|
|||
# via
|
||||
# -r requirements/base.txt
|
||||
# pytest-skip-markers
|
||||
docker==5.0.3
|
||||
# via -r requirements/static/ci/pkgtests.in
|
||||
exceptiongroup==1.1.0
|
||||
# via pytest
|
||||
filelock==3.9.0
|
||||
|
@ -128,7 +130,9 @@ pyzmq==25.0.0
|
|||
# -r requirements/zeromq.txt
|
||||
# pytest-salt-factories
|
||||
requests==2.28.2
|
||||
# via -r requirements/base.txt
|
||||
# via
|
||||
# -r requirements/base.txt
|
||||
# docker
|
||||
six==1.16.0
|
||||
# via cheroot
|
||||
tempora==5.2.0
|
||||
|
@ -144,6 +148,8 @@ urllib3==1.26.14
|
|||
# via requests
|
||||
virtualenv==20.17.1
|
||||
# via pytest-salt-factories
|
||||
websocket-client==1.5.1
|
||||
# via docker
|
||||
zc.lockfile==2.0
|
||||
# via cherrypy
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue