aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/check_versions/tests
diff options
context:
space:
mode:
authorMichal Jagiello <michal.jagiello@t-mobile.pl>2023-04-19 09:53:38 +0000
committerMichal Jagiello <michal.jagiello@t-mobile.pl>2023-04-19 09:58:02 +0000
commit6e88d548362b32a15a094fdf8d83f082107c7962 (patch)
tree8603bba306091d8a323ac4ed32920bc075998af5 /test/security/check_versions/tests
parentc57b24365c08afe394e52808d55e9b70ac878205 (diff)
Fix security versions script
That script was usused on security versions tests, so I updated it with the latest changes from repo which was really used, created needed files and after we merge it we could use that on security tests. Issue-ID: TEST-394 Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl> Change-Id: I8e5daa7d43e2723bbe3308cf85b1cae2b2f587ad
Diffstat (limited to 'test/security/check_versions/tests')
-rw-r--r--test/security/check_versions/tests/test_main.py4
-rw-r--r--test/security/check_versions/tests/test_verify_versions_acceptability.py4
2 files changed, 0 insertions, 8 deletions
diff --git a/test/security/check_versions/tests/test_main.py b/test/security/check_versions/tests/test_main.py
index 0dff0b230..37ad45ee3 100644
--- a/test/security/check_versions/tests/test_main.py
+++ b/test/security/check_versions/tests/test_main.py
@@ -7,9 +7,7 @@ import yaml
def exec_main(pod_name_trimmer, acceptable_data):
-
with tempfile.NamedTemporaryFile() as output_temp, tempfile.NamedTemporaryFile() as acceptable_temp:
-
with open(acceptable_temp.name, "w") as stream:
yaml.safe_dump(acceptable_data, stream)
@@ -61,7 +59,6 @@ def exec_main(pod_name_trimmer, acceptable_data):
def test_main(pod_name_trimmer):
-
acceptable_data = {
"python": ["2.7.5", "3.6.6", "3.8.4"],
"java": ["11.0.5", "11.0.8"],
@@ -73,7 +70,6 @@ def test_main(pod_name_trimmer):
def test_main_neg(pod_name_trimmer):
-
acceptable_data = {
"python": ["3.6.6", "3.8.4"],
"java": ["11.0.5", "11.0.8"],
diff --git a/test/security/check_versions/tests/test_verify_versions_acceptability.py b/test/security/check_versions/tests/test_verify_versions_acceptability.py
index 5e2f0d2c8..1cb931679 100644
--- a/test/security/check_versions/tests/test_verify_versions_acceptability.py
+++ b/test/security/check_versions/tests/test_verify_versions_acceptability.py
@@ -7,7 +7,6 @@ import pathlib
def exec_verify_versions_acceptability(containers):
-
config = {
"python": ["1.1.1", "2.2.2"],
"java": ["3.3.3"],
@@ -23,7 +22,6 @@ def exec_verify_versions_acceptability(containers):
def test_verify_versions_acceptability():
-
containers = [
kbvi.ContainerInfo("a", "b", "c", None, kbvi.ContainerVersions([], [])),
kbvi.ContainerInfo(
@@ -37,7 +35,6 @@ def test_verify_versions_acceptability():
def test_verify_versions_acceptability_neg_1():
-
containers = [
kbvi.ContainerInfo("a", "b", "c", None, kbvi.ContainerVersions(["3.3.3"], []))
]
@@ -48,7 +45,6 @@ def test_verify_versions_acceptability_neg_1():
def test_verify_versions_acceptability_neg_2():
-
containers = [
kbvi.ContainerInfo("a", "b", "c", None, kbvi.ContainerVersions([], ["1.1.1"]))
]