Merge "Integrate BAROMETER feature test case"
[functest.git] / functest / opnfv_tests / features / barometer.py
1 #!/usr/bin/python
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8
9
10 import functest.core.feature_base as base
11 import functest.utils.functest_logger as ft_logger
12
13 from baro_tests import collectd
14
15
16 class BarometerCollectd(base.FeatureBase):
17     '''
18     Class for executing barometercollectd testcase.
19     '''
20
21     def __init__(self):
22         super(BarometerCollectd, self).__init__(project='barometer',
23                                                 case='barometercollectd',
24                                                 repo='dir_repo_barometer')
25         self.logger = ft_logger.Logger("BarometerCollectd").getLogger()
26
27     def execute(self):
28         return collectd.main(self.logger)