Source code for citadel.nodes.test

#!/usr/bin/env python

import citadel.nodes.node


[docs]class Test(citadel.nodes.node.Base): """:synopsis: Placeholder for the test stage. :requirements: None :platform: Any **Usage** .. code-block:: yaml :linenos: test: ansible: playbook: some_playbook.yml inventory: some_inventory This module is simply part of the convention to run citadel by stages. Other supported stages are: build, publish and test. These are used to control their execution at specific moments since, at some points of your lifecycle you may wish to simply run the build and publish stages, or just the deploy, without having to run the whole thing. Stages get used when invoking the CLI of citadel itself: .. code-block:: bash :linenos: citadel-generate -i build,publish,test Would ignore the build and publish phases, and compute whatever there is left in the citadel.yml file (likely the deploy). If you just want to run the build, you could: .. code-block:: bash :linenos: citadel-generate -i publish,deploy,test """ def __init__(self, yml, path): super(Test, self).__init__(yml, path)