diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2023-04-24 07:35:16 +0000 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2023-04-24 07:35:16 +0000 |
commit | a537bdc760e550c5c62c545bdf142d39c6504d40 (patch) | |
tree | 3fb1b8cca70220ad46045ddc0fb466f8d21d6d0c | |
parent | d57b6a817552fa6a850213a7abffbc91dd465156 (diff) |
[Secrity] Add missing templates files into package
After migration to use pyproject.toml I forget to add templates into package.
There is also change needed to use new package name on jinja env loading
Issue-ID: TEST-394
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Ia9f2a26f00f83f92a9a6d01f25e663bddf1fa098
-rw-r--r-- | test/security/check_versions/pyproject.toml | 3 | ||||
-rw-r--r-- | test/security/check_versions/versions/reporting.py | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/security/check_versions/pyproject.toml b/test/security/check_versions/pyproject.toml index a9b5c540e..2c235c7b8 100644 --- a/test/security/check_versions/pyproject.toml +++ b/test/security/check_versions/pyproject.toml @@ -19,3 +19,6 @@ build-backend = "setuptools.build_meta" [project.entry-points."xtesting.testcase"] versions = "versions.k8s_bin_versions_inspector_test_case:Inspector" + +[tool.setuptools.package-data] +versions = ["templates/*.j2"] diff --git a/test/security/check_versions/versions/reporting.py b/test/security/check_versions/versions/reporting.py index 43ef26db8..9053600c2 100644 --- a/test/security/check_versions/versions/reporting.py +++ b/test/security/check_versions/versions/reporting.py @@ -244,7 +244,7 @@ class OnapVersionsReporting: # Create reporting page jinja_env = Environment( autoescape=select_autoescape(["html"]), - loader=PackageLoader("onap_check_versions"), + loader=PackageLoader("versions"), ) page_info = { "title": "ONAP Integration versions reporting", |