jolausa

Untitled

Feb 14th, 2017
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. ########################################################
  2. ~/repos/functest/functest/opnfv_tests/features/barometer.py
  3. ########################################################
  4.  
  5. #!/usr/bin/python
  6. #
  7. # Licensed under the Apache License, Version 2.0 (the "License");
  8. # you may not use this file except in compliance with the License.
  9. # You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13. import functest.core.feature_base as base
  14.  
  15. class Barometercollectd(base.FeatureBase):
  16. def __init__(self):
  17. super(Barometercollectd, self).__init__(project='barometer',
  18. case='barometercollectd',
  19. repo='dir_repo_barometer')
  20. self.cmd = 'cd %s && python ./tests/barometer_collectd.py' % self.repo
  21.  
  22.  
  23.  
  24. ########################################################
  25. ~/repos/functest/functest/ci/config_functest.yaml
  26. ########################################################
  27.  
  28. general:
  29. dir:
  30. # Relative to the path where the repo is cloned:
  31. vping: functest/opnfv_tests/openstack/vping
  32. dir_odl: functest/opnfv_tests/sdn/odl
  33. rally: functest/opnfv_tests/openstack/rally
  34. tempest_cases: functest/opnfv_tests/openstack/tempest/custom_tests
  35. dir_onos: functest/opnfv_tests/sdn/onos/teston
  36. dir_onos_sfc: functest/opnfv_tests/sdn/onos/sfc
  37.  
  38. # Absolute path
  39. home: /home/opnfv
  40. repos: /home/opnfv/repos
  41. repo_functest: /home/opnfv/repos/functest
  42. dir_repo_rally: /home/opnfv/repos/rally
  43. repo_tempest: /home/opnfv/repos/tempest
  44. dir_repo_releng: /home/opnfv/repos/releng
  45. repo_vims_test: /home/opnfv/repos/vnfs/vims-test
  46. repo_sdnvpn: /home/opnfv/repos/sdnvpn
  47. repo_sfc: /home/opnfv/repos/sfc
  48. dir_repo_onos: /home/opnfv/repos/onos
  49. repo_promise: /home/opnfv/repos/promise
  50. repo_barometer: /home/opnfv/repos/barometer <-------- ADD THIS LINE ONLY
  51.  
  52.  
  53.  
  54. ########################################################
  55. ~/repos/functest/functest/ci/testcases.yaml
  56. ########################################################
  57.  
  58.  
  59. ADD A TEST CASE IN THE FEATURES SECTION
  60.  
  61. -
  62. name: barometer
  63. criteria: 'success_rate == 100%'
  64. blocking: false
  65. description: >-
  66. Test suite from Barometer project.
  67. dependencies:
  68. installer: '' <--- HERE YOU NEED TO SPECIFY THE DEPENDENCIES FOR THE INSTALLERS/SCENARIOS
  69. scenario: ''
  70. run:
  71. module: 'functest.opnfv_tests.features.barometer'
  72. class: 'Barometercollectd'
Advertisement
Add Comment
Please, Sign In to add comment