aboutsummaryrefslogtreecommitdiffstats
path: root/test/security/check_versions/tests/test_main.py
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/test_main.py
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/test_main.py')
-rw-r--r--test/security/check_versions/tests/test_main.py4
1 files changed, 0 insertions, 4 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"],