Merge "Put domain name in CONST"
[functest.git] / functest / opnfv_tests / vnf / aaa / aaa.py
1 #!/usr/bin/env python
2
3 # Copyright (c) 2016 Orange and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9
10 import logging
11
12 import functest.core.vnf as vnf
13
14
15 class AaaVnf(vnf.VnfOnBoarding):
16     """AAA VNF sample"""
17
18     logger = logging.getLogger(__name__)
19
20     def __init__(self, **kwargs):
21         if "case_name" not in kwargs:
22             kwargs["case_name"] = "aaa"
23         super(AaaVnf, self).__init__(**kwargs)
24
25     def deploy_orchestrator(self):
26         self.logger.info("No VNFM needed to deploy a free radius here")
27         return True
28
29     def deploy_vnf(self):
30         self.logger.info("Freeradius VNF deployment")
31         # find a way to deploy freeradius and tester (heat,manual, ..)
32         deploy_vnf = {'status': 'PASS', 'version': 'xxxx'}
33         self.details['deploy_vnf'] = deploy_vnf
34         return True
35
36     def test_vnf(self):
37         self.logger.info("Run test towards freeradius")
38         # once the freeradius is deployed..make some tests
39         test_vnf = {'status': 'PASS', 'version': 'xxxx'}
40         self.details['test_vnf'] = test_vnf
41         return True