Role os_neutron for OpenStack-Ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. [tox]
  2. minversion = 2.0
  3. skipsdist = True
  4. envlist = docs,linters,functional
  5. [testenv]
  6. usedevelop = True
  7. install_command =
  8. pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
  9. commands =
  10. /usr/bin/find . -type f -name "*.pyc" -delete
  11. passenv =
  12. COMMON_TESTS_PATH
  13. HOME
  14. http_proxy
  15. HTTP_PROXY
  16. https_proxy
  17. HTTPS_PROXY
  18. no_proxy
  19. NO_PROXY
  20. TESTING_BRANCH
  21. TESTING_HOME
  22. USER
  23. whitelist_externals =
  24. bash
  25. setenv =
  26. ANSIBLE_INVENTORY={toxinidir}/tests/lxb_inventory
  27. PYTHONUNBUFFERED=1
  28. ROLE_NAME=os_neutron
  29. TEST_IDEMPOTENCE=false
  30. VIRTUAL_ENV={envdir}
  31. WORKING_DIR={toxinidir}
  32. [testenv:docs]
  33. basepython = python3
  34. deps = -r{toxinidir}/doc/requirements.txt
  35. commands=
  36. bash -c "rm -rf doc/build"
  37. sphinx-build -b html doc/source doc/build/html
  38. [doc8]
  39. # Settings for doc8:
  40. extensions = .rst
  41. [testenv:releasenotes]
  42. basepython = python3
  43. deps = -r{toxinidir}/doc/requirements.txt
  44. commands =
  45. sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
  46. # environment used by the -infra templated docs job
  47. [testenv:venv]
  48. basepython = python3
  49. commands =
  50. {posargs}
  51. [testenv:pep8]
  52. basepython = python3
  53. commands =
  54. bash -c "{toxinidir}/tests/common/test-pep8.sh"
  55. doc8 doc
  56. [flake8]
  57. # Ignores the following rules due to how ansible modules work in general
  58. # F403 'from ansible.module_utils.basic import *' used;
  59. # unable to detect undefined names
  60. ignore=F403
  61. [testenv:bashate]
  62. basepython = python3
  63. commands =
  64. bash -c "{toxinidir}/tests/common/test-bashate.sh"
  65. [testenv:ansible-syntax]
  66. basepython = python3
  67. commands =
  68. bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
  69. [testenv:ansible-lint]
  70. basepython = python3
  71. commands =
  72. bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
  73. [testenv:functional]
  74. commands =
  75. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  76. [testenv:distro_install]
  77. setenv =
  78. {[testenv]setenv}
  79. ANSIBLE_PARAMETERS=-e @{toxinidir}/tests/common/test-distro_install-vars.yml
  80. commands =
  81. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  82. [testenv:ovs]
  83. setenv =
  84. {[testenv]setenv}
  85. ANSIBLE_INVENTORY={toxinidir}/tests/ovs_inventory
  86. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-ovs.yml
  87. commands =
  88. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  89. [testenv:calico]
  90. setenv =
  91. {[testenv]setenv}
  92. ANSIBLE_INVENTORY={toxinidir}/tests/calico_inventory
  93. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-calico.yml
  94. commands =
  95. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  96. [testenv:opendaylight]
  97. setenv =
  98. {[testenv]setenv}
  99. ANSIBLE_INVENTORY={toxinidir}/tests/opendaylight_inventory
  100. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-opendaylight.yml
  101. commands =
  102. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  103. [testenv:opendaylight-bgpvpn]
  104. setenv =
  105. {[testenv]setenv}
  106. ANSIBLE_INVENTORY={toxinidir}/tests/opendaylight_inventory
  107. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-opendaylight-bgpvpn.yml
  108. commands =
  109. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  110. [testenv:ovs-nsh]
  111. setenv =
  112. {[testenv]setenv}
  113. ANSIBLE_INVENTORY={toxinidir}/tests/opendaylight_inventory
  114. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-ovs-nsh.yml
  115. commands =
  116. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  117. [testenv:ovn]
  118. setenv =
  119. {[testenv]setenv}
  120. ANSIBLE_INVENTORY={toxinidir}/tests/ovn_inventory
  121. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-ovn.yml
  122. commands =
  123. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  124. [testenv:odl-sfc]
  125. setenv =
  126. {[testenv]setenv}
  127. ANSIBLE_INVENTORY={toxinidir}/tests/opendaylight_inventory
  128. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-odl-sfc.yml
  129. commands =
  130. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  131. [testenv:ovs-sfc]
  132. setenv =
  133. {[testenv]setenv}
  134. ANSIBLE_INVENTORY={toxinidir}/tests/ovs_inventory
  135. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-ovs-sfc.yml
  136. commands =
  137. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  138. [testenv:ovs-fwaasv2]
  139. setenv =
  140. {[testenv]setenv}
  141. ANSIBLE_INVENTORY={toxinidir}/tests/ovs_inventory
  142. ANSIBLE_OVERRIDES={toxinidir}/tests/neutron-overrides-ovs-fwaasv2.yml
  143. commands =
  144. bash -c "{toxinidir}/tests/common/test-ansible-functional.sh"
  145. [testenv:linters]
  146. basepython = python3
  147. commands =
  148. bash -c "{toxinidir}/tests/common/test-ansible-env-prep.sh"
  149. {[testenv:pep8]commands}
  150. {[testenv:bashate]commands}
  151. {[testenv:ansible-lint]commands}
  152. {[testenv:ansible-syntax]commands}