bug fix case name for VNFonboarding 93/27293/2
authorMorgan Richomme <morgan.richomme@orange.com>
Fri, 20 Jan 2017 09:51:50 +0000 (10:51 +0100)
committerMorgan Richomme <morgan.richomme@orange.com>
Fri, 20 Jan 2017 13:30:50 +0000 (14:30 +0100)
the case paramter was not provided to the anstraction class

Change-Id: I42ba63a3b4fd20f6d076f20369fed56715237640
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
functest/core/vnf_base.py
functest/opnfv_tests/vnf/aaa/aaa.py
functest/opnfv_tests/vnf/ims/cloudify_ims.py
functest/opnfv_tests/vnf/ims/opera_ims.py
functest/opnfv_tests/vnf/ims/orchestra_ims.py

index 9d8b6dc..4d01985 100644 (file)
@@ -35,6 +35,7 @@ class VnfOnBoardingBase(base.TestcaseBase):
         self.details['orchestrator'] = {}
         self.details['vnf'] = {}
         self.details['test_vnf'] = {}
+        self.images = {}
         try:
             self.tenant_name = CONST.__getattribute__(
                 'vnf_{}_tenant_name'.format(self.case_name))
@@ -44,7 +45,7 @@ class VnfOnBoardingBase(base.TestcaseBase):
             raise Exception("Unknown VNF case=" + self.case_name)
 
         try:
-            self.tenant_images = CONST.__getattribute__(
+            self.images = CONST.__getattribute__(
                 'vnf_{}_tenant_images'.format(self.case_name))
         except:
             self.logger.warn("No tenant image defined for this VNF")
index 8898b9f..f1c265f 100644 (file)
@@ -21,8 +21,7 @@ class AaaVnf(vnf_base.VnfOnBoardingBase):
     logger = ft_logger.Logger("VNF AAA").getLogger()
 
     def __init__(self):
-        super(AaaVnf, self).__init__()
-        self.case_name = "aaa"
+        super(AaaVnf, self).__init__(case="aaa")
 
     def deploy_orchestrator(self):
         self.logger.info("No VNFM needed to deploy a free radius here")
index e584519..13a5af4 100644 (file)
@@ -25,7 +25,8 @@ from orchestrator_cloudify import Orchestrator
 
 class ImsVnf(vnf_base.VnfOnBoardingBase):
 
-    def __init__(self, project='functest', case='', repo='', cmd=''):
+    def __init__(self, project='functest', case='cloudify_ims',
+                 repo='', cmd=''):
         super(ImsVnf, self).__init__(project, case, repo, cmd)
         self.logger = ft_logger.Logger("vIMS").getLogger()
         self.case_dir = os.path.join(CONST.functest_test, 'vnf/ims/')
index fa8f9ec..073a56c 100644 (file)
@@ -21,7 +21,8 @@ from functest.utils.constants import CONST
 
 class ImsVnf(vnf_base.VnfOnBoardingBase):
 
-    def __init__(self, project='functest', case='', repo='', cmd=''):
+    def __init__(self, project='functest', case='opera_ims',
+                 repo='', cmd=''):
         super(ImsVnf, self).__init__(project, case, repo, cmd)
         self.logger = ft_logger.Logger("vIMS").getLogger()
         self.case_dir = os.path.join(CONST.functest_test, 'vnf/ims/')
index ebd6c9b..28f37f0 100644 (file)
@@ -21,7 +21,8 @@ from functest.utils.constants import CONST
 
 class ImsVnf(vnf_base.VnfOnBoardingBase):
 
-    def __init__(self, project='functest', case='', repo='', cmd=''):
+    def __init__(self, project='functest', case='orchestra_ims',
+                 repo='', cmd=''):
         super(ImsVnf, self).__init__(project, case, repo, cmd)
         self.logger = ft_logger.Logger("vIMS").getLogger()
         self.case_dir = os.path.join(CONST.functest_test, 'vnf/ims/')