
While authoring [0], it was discovered that Armada has duplicate logic for deciding if Helm test cleanup should be enabled as well as the tests themselves. Because of this, changes to test logic (e.g. adding pre-test actions), requires changing all traces of the repeated logic, which can lead to inconsistent behavior if not properly addressed. This change moves all test decision logic to a singular Test handler, implemented by the `Test` class. This change does NOT change the expected behavior of testing during upgrades; however, tests initiated from the API and CLI will not execute when testing a manifest if they are disabled in a chart, unless using the `--enable-all` flag. [0] https://review.openstack.org/617834 Change-Id: I1530d7637b0eb6a83f048895053a5db80d033046
44 lines
1.3 KiB
ReStructuredText
44 lines
1.3 KiB
ReStructuredText
Armada - Test
|
|
=============
|
|
|
|
|
|
Commands
|
|
--------
|
|
|
|
.. code:: bash
|
|
|
|
Usage: armada test [OPTIONS]
|
|
|
|
This command test deployed charts
|
|
|
|
The tiller command uses flags to obtain information from tiller services.
|
|
The test command will run the release chart tests either via a
|
|
manifest or by targeting a release.
|
|
|
|
To obtain armada deployed releases:
|
|
|
|
$ armada test --file examples/simple.yaml
|
|
|
|
To test release:
|
|
|
|
$ armada test --release blog-1
|
|
|
|
Options:
|
|
--cleanup Delete test pods after test completion
|
|
--enable-all Run disabled chart tests
|
|
--file TEXT armada manifest
|
|
--release TEXT helm release
|
|
--tiller-host TEXT Tiller Host IP
|
|
--tiller-port INTEGER Tiller Host Port
|
|
-tn, --tiller-namespace TEXT Tiller Namespace
|
|
--target-manifest TEXT The target manifest to run. Required for
|
|
specifying which manifest to run when multiple
|
|
are available.
|
|
--help Show this message and exit.
|
|
|
|
Synopsis
|
|
--------
|
|
|
|
The test command will perform helm test defined on the release. Test command can
|
|
test a single release or a manifest.
|