4e21f7115b
Updated the logic in ptptracking_start.py to handle a case where the application is upgraded but helm overrides are not present. If helm overrides are present, there is no change in behaviour. If helm overrides are absent, attempt to locate ptp4l and phc2sys configs in known locations and start with those. Print log messages indicating that the configs were auto detected and that helm overrides can be set if auto-detection is incorrect or unsuccessful. Bonus fix: corrected the tox path used to auto detect unit tests, as this was missed when moving from notificationservice-base to notificationservice-base-v2 Test-plan: PASS: Build and deploy application tarball PASS: Pods start correctly when overrides are present and when they are absent Story: 2010538 Task: 47740 Signed-off-by: Cole Walker <cole.walker@windriver.com> Change-Id: I25df407effbffc03e444573233058f3d3180e706
68 lines
1.8 KiB
INI
68 lines
1.8 KiB
INI
[tox]
|
|
envlist = linters,py36
|
|
minversion = 2.3
|
|
skipsdist = True
|
|
sitepackages=False
|
|
|
|
[testenv]
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv =
|
|
VIRTUAL_ENV={envdir}
|
|
OS_STDOUT_CAPTURE=1
|
|
OS_STDERR_CAPTURE=1
|
|
OS_DEBUG=1
|
|
OS_LOG_CAPTURE=1
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
allowlist_externals =
|
|
bash
|
|
|
|
[testenv:py36]
|
|
basepython = python3.6
|
|
setenv =
|
|
TESTPATH=./notificationservice-base-v2/docker/ptptrackingfunction/trackingfunctionsdk/tests/
|
|
commands =
|
|
unit2 discover -s ./notificationservice-base-v2/docker/ptptrackingfunction
|
|
deps =
|
|
-r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
|
|
[testenv:bashate]
|
|
# Treat all E* codes as Errors rather than warnings using: -e 'E*'
|
|
commands =
|
|
bash -c "find {toxinidir} \
|
|
-not \( -type d -name .?\* -prune \) \
|
|
-type f \
|
|
-not -name \*~ \
|
|
-not -name \*.md \
|
|
-name \*.sh \
|
|
-print0 | xargs -r -n 1 -0 bashate -v \
|
|
-e 'E*'"
|
|
|
|
[testenv:linters]
|
|
commands =
|
|
{[testenv:bashate]commands}
|
|
|
|
[testenv:docs]
|
|
basepython = python3
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf doc/build
|
|
sphinx-build -a -E -W -d doc/build/doctrees -b html doc/source doc/build/html
|
|
allowlist_externals = rm
|
|
|
|
[testenv:api-ref]
|
|
basepython = python3
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -rf api-ref/build
|
|
sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html
|
|
allowlist_externals = rm
|
|
|
|
[testenv:pylint]
|
|
basepython = python3
|
|
description = Dummy environment to allow pylint to be run in subdir tox
|