armada/armada/tests/unit
Sean Eagan c31a961bf1 Automate deletion of test pods
When running helm tests for a chart release multiple times in a site,
if the previous test pod is not deleted, then the test pod creation
can fail due to a name conflict. Armada/helm support immediate test pod
cleanup, but using this means that upon test failure, the test pod logs will
not be available for debugging purposes. Due to this, the recommended approach
for deleting test pods in Armada has been using `upgrade.pre.delete` actions.
So chart authors can accomplish test pod deletion using this
feature, however, it often takes awhile, usually not until they test upgrading
the chart for chart authors to realize that this is necessary and to get it
implemented.

This patchset automates deletion of test pods directly before running tests by
using the `wait.labels` field in the chart doc when they exist to find all pods
in the release and then using their annotations to determine if they are test
pods and deleting them if so.

A later patchset is planned to implement defaulting of the wait labels when
they are not defined.

Change-Id: I2092f448acb88b5ade3b31b397f9c874c0061668
2019-01-28 13:19:09 -06:00
..
api test: Refactor test handler 2018-11-29 17:30:57 +00:00
common fix: Use superior oslo.policy authorize over enforce 2018-10-15 20:24:51 +01:00
handlers Automate deletion of test pods 2019-01-28 13:19:09 -06:00
resources Fix for get manifest 2018-09-14 15:27:03 +00:00
utils Add caching and cleanup of chart tarballs 2018-10-29 16:02:44 -05:00
__init__.py Implement wait for timeout feature and unit test 2017-06-22 16:02:25 -05:00
base.py [test] Increase armada.handlers.armada test coverage 2018-06-11 10:15:28 -04:00
fake_policy.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00
fixtures.py chore(docstring): Fix up improper sphinx syntax in docstrings 2018-06-22 21:35:29 +00:00