Scan only "onap" namespace for non-SSL endpoints 14/115414/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 26 Nov 2020 07:45:09 +0000 (08:45 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Thu, 26 Nov 2020 07:45:49 +0000 (08:45 +0100)
Issue-ID: INT-1582
Change-Id: I88847c239016d972c4cdf95c46ad89749643d323
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
security/onap_security/security_tests.py

index d0b25ac..4c7af29 100644 (file)
@@ -130,7 +130,7 @@ class OnapSecurityNonSSLPorts(SecurityTesting):
        tunnels."""
     def __init__(self, **kwargs):
         super(OnapSecurityNonSSLPorts, self).__init__(**kwargs)
-        self.cmd = ['/usr/local/bin/sslendpoints', '-xfail', '/nonssl_xfail.txt']
+        self.cmd = ['/usr/local/bin/sslendpoints', '-namespace', 'onap', '-xfail', '/nonssl_xfail.txt']
         self.error_string = "Public non-SSL endpoints still found"