Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ########################################################
- ~/repos/functest/functest/opnfv_tests/features/barometer.py
- ########################################################
- #!/usr/bin/python
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- import functest.core.feature_base as base
- class Barometercollectd(base.FeatureBase):
- def __init__(self):
- super(Barometercollectd, self).__init__(project='barometer',
- case='barometercollectd',
- repo='dir_repo_barometer')
- self.cmd = 'cd %s && python ./tests/barometer_collectd.py' % self.repo
- ########################################################
- ~/repos/functest/functest/ci/config_functest.yaml
- ########################################################
- general:
- dir:
- # Relative to the path where the repo is cloned:
- vping: functest/opnfv_tests/openstack/vping
- dir_odl: functest/opnfv_tests/sdn/odl
- rally: functest/opnfv_tests/openstack/rally
- tempest_cases: functest/opnfv_tests/openstack/tempest/custom_tests
- dir_onos: functest/opnfv_tests/sdn/onos/teston
- dir_onos_sfc: functest/opnfv_tests/sdn/onos/sfc
- # Absolute path
- home: /home/opnfv
- repos: /home/opnfv/repos
- repo_functest: /home/opnfv/repos/functest
- dir_repo_rally: /home/opnfv/repos/rally
- repo_tempest: /home/opnfv/repos/tempest
- dir_repo_releng: /home/opnfv/repos/releng
- repo_vims_test: /home/opnfv/repos/vnfs/vims-test
- repo_sdnvpn: /home/opnfv/repos/sdnvpn
- repo_sfc: /home/opnfv/repos/sfc
- dir_repo_onos: /home/opnfv/repos/onos
- repo_promise: /home/opnfv/repos/promise
- repo_barometer: /home/opnfv/repos/barometer <-------- ADD THIS LINE ONLY
- ########################################################
- ~/repos/functest/functest/ci/testcases.yaml
- ########################################################
- ADD A TEST CASE IN THE FEATURES SECTION
- -
- name: barometer
- criteria: 'success_rate == 100%'
- blocking: false
- description: >-
- Test suite from Barometer project.
- dependencies:
- installer: '' <--- HERE YOU NEED TO SPECIFY THE DEPENDENCIES FOR THE INSTALLERS/SCENARIOS
- scenario: ''
- run:
- module: 'functest.opnfv_tests.features.barometer'
- class: 'Barometercollectd'
Advertisement
Add Comment
Please, Sign In to add comment