aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vnfreq/test_pkg_reqs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vnfreq/test_pkg_reqs.py')
-rw-r--r--tests/vnfreq/test_pkg_reqs.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/vnfreq/test_pkg_reqs.py b/tests/vnfreq/test_pkg_reqs.py
index b83a860..0ab8b8c 100644
--- a/tests/vnfreq/test_pkg_reqs.py
+++ b/tests/vnfreq/test_pkg_reqs.py
@@ -50,3 +50,15 @@ def test_R77707(mocker, tmpdir):
check_result('R-77707', reader, None,
'Package component sub/non-existing not found in manifest file')
+
+def test_R04298(mocker, tmpdir):
+ p1 = tmpdir.mkdir('tests').join('script.sh')
+ p1.write("#!/bin/sh")
+ reader = mocker.Mock()
+ reader.destination = str(tmpdir)
+ reader.entry_tests_dir = "tests"
+ check_result('R-04298', reader, None, None)
+
+ p1.remove()
+ check_result('R-04298', reader, None,
+ 'No testing scripts found')