Mayank Patel 6d3ebf4dc6 Add Node Interface metrics exporter app to StarlingX
This commit contains integration of node interface metrics microservice
,python plugin and custom helm chart for metrics exporter app. As per
requirement node interface metrics pod run on worker node.

This builds a deb format package that contains the .tgz file that can be
installed on the controller using the system application tool.

Test plan:
PASSED: Build process is successful with creation of debian package.
PASSED: Extract the content of the debian package and check if the helm
chart tar file is present.
PASSED: AIO-SX app successfully uploaded, applied, removed and deleted
        using the 'system application' commands.
PASSED: AIO-DX app successfully uploaded, applied, removed and deleted
        using the 'system application' commands.
PASSED: STANDARD app successfully uploaded, applied, removed and deleted
        using the 'system application' commands. Verified pods are
        running on compute node only.
PASSED: After delete All  the helm chart has been removed as well all
        K8s resources.
PASSED: Update application version from 1.0-1 to 1.0-2

Story: 2010918
Task: 48885
Change-Id: I93d7494b04be16c808a6ad6af115659f8298ee10
Signed-off-by: Mayank Patel <mayank.patel@windriver.com>
2023-12-04 15:49:18 +00:00

53 lines
1.3 KiB
INI

[tox]
envlist = linters
minversion = 4.0
skipsdist = True
sitepackages=False
[testenv]
basepython = python3
install_command = pip install -U \
{opts} {packages} \
-c{env:TOX_CONSTRAINTS_FILE:https://opendev.org/starlingx/root/raw/branch/master/build-tools/requirements/debian/upper-constraints.txt}
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:linters]
commands =
{[testenv:bashate]commands}
[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:flake8]
basepython = python3
description = Dummy environment to allow flake8 to be run in subdir tox
[testenv:pylint]
basepython = python3
description = Dummy environment to allow pylint to be run in subdir tox
[testenv:bandit]
basepython = python3
description = Dummy environment to allow bandit to be run in subdir tox