Remove cert authent in basic_clamp 20/117520/6
authormrichomme <morgan.richomme@orange.com>
Thu, 4 Feb 2021 17:56:12 +0000 (18:56 +0100)
committerMichal Jagiello <michal.jagiello@t-mobile.pl>
Thu, 18 Mar 2021 06:49:06 +0000 (06:49 +0000)
Clamp can now be reached using a basic/auth
The Cert is no more needed
This is much simpler to deal with and integrate in CI

Issue-ID: INT-1819

Signed-off-by: mrichomme <morgan.richomme@orange.com>
Change-Id: I9325c2d37826feed6148cd509717c6788639938d

src/onaptests/configuration/basic_clamp_settings.py
src/onaptests/steps/loop/clamp.py

index 1781c54..d2f38a0 100644 (file)
@@ -1,8 +1,6 @@
 import sys
 from yaml import load
 
-from pathlib import Path
-
 from .settings import * # pylint: disable=W0614
 
 """ Specific Basic clamp settings."""
@@ -32,7 +30,6 @@ OPERATIONAL_POLICIES = [
   }
 ]
 
-CERT = (Path.cwd() / 'cert.pem', Path.cwd() / 'cert.key')
 # SERVICE_NAME = "ubuntu18agent"
 
 # if a yaml file is define, retrieve info from this yaml files
index 9ae5a5f..e781bd2 100644 (file)
@@ -29,7 +29,7 @@ class ClampStep(YamlTemplateBaseStep):
         super().__init__(cleanup=cleanup)
         self._yaml_template: dict = None
         self.add_step(OnboardClampStep(cleanup=cleanup))
-        Clamp(cert=settings.CERT)
+        Clamp()
         self.loop_instance = None
 
     @property
@@ -95,8 +95,7 @@ class ClampStep(YamlTemplateBaseStep):
         """Instantite a closed loopin CLAMP."""
         loop = InstantiateLoop(template=loop_template,
                                loop_name=loop_name,
-                               operational_policies=operational_policies,
-                               cert=settings.CERT)
+                               operational_policies=operational_policies)
         return loop.instantiate_loop()
 
     def loop_counter(self, action: str) -> None: