Add option to document integration test providers seperately

This commit is contained in:
Anders Ingemann 2015-12-13 17:35:45 +01:00
parent 7117a6ac61
commit 35121f9c7f
9 changed files with 33 additions and 5 deletions

View file

@ -287,6 +287,15 @@ for readme_path in glob.glob('../bootstrapvz/plugins/*/README.rst'):
include.write('.. include:: ' + path_to_readme)
for readme_path in glob.glob('../tests/integration/providers/*/README.rst'):
provider_name = os.path.basename(os.path.dirname(readme_path))
include_path = os.path.join('testing/integration_test_providers', provider_name + '.rst')
if not os.path.exists(include_path):
path_to_readme = os.path.join('../../../tests/integration/providers', provider_name, 'README.rst')
with open(include_path, 'w') as include:
include.write('.. include:: ' + path_to_readme)
# -- Create task overview graph data --------------------------------------
from docs import taskoverview

View file

@ -7,6 +7,6 @@ Testing
unit_tests
integration_tests
integration_test_providers
integration_test_providers/index
.. include:: ../../tests/README.rst

View file

@ -1 +0,0 @@
.. include:: ../../tests/integration/providers/README.rst

View file

@ -0,0 +1,3 @@
*
!index.rst
!.gitignore

View file

@ -0,0 +1,10 @@
Integration test providers
==========================
.. toctree::
:maxdepth: 1
:glob:
*
.. include:: ../../../tests/integration/providers/README.rst

View file

@ -67,7 +67,7 @@ Missing parts
-------------
The integration testing harness is in no way complete.
* It still has no support for providers other than virtualbox and EC2.
* It still has no support for providers other than Virtualbox, EC2 and Docker.
* Creating an SSH connection to a booted instance is cumbersome and does not
happen in any of the tests - this would be particularly useful when manifests
are to be tested beyond whether they boot up.

View file

@ -1,2 +0,0 @@
Integration test providers
==========================

View file

@ -0,0 +1,2 @@
EC2
---

View file

@ -0,0 +1,7 @@
Virtualbox
----------
Dependencies
~~~~~~~~~~~~
vboxapi 1.0