armada/armada/tests/unit/api
Michael Beaver 48920224cc Support in Armada for locking Tiller
This creates a new mechanism in Armada to enable functions to only be
run once across multiple instances of Armada working with the same
Kubernetes cluster. This is accomplished by utilizing custom resources
via the Kubernetes API.

This also introduces new config defaults that can be used to configure
the lock timeout, expiration, and update interval.

Some notes on how the lock works:
    * Functions to be locked can add the new decorator
        * The optional name parameter can be used to create multiple
          types of locks which can coexist
    * If the lock is unable to be acquired before the timeout a new
      exception is raised
    * The lock is updated regularly while the decorated function is
      still running
    * If a lock already exists it will only be overwritten if the
      duration since its last update is longer than the expiration time

For now this locking method is being used for components that require
write access to Tiller so that simultaneous write operations are
avoided.

Change-Id: Iee07da9a233ee2e2a54c6bc4881185388b377c05
2019-03-22 13:56:50 -05:00
..
__init__.py testing-utils-lib 2017-06-28 12:47:26 -05:00
base.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00
test_api_initialization.py Remove duplicate option certfile from Armada config 2018-06-13 19:35:25 +01:00
test_armada_controller.py Support in Armada for locking Tiller 2019-03-22 13:56:50 -05:00
test_health_controller.py bug(tests): Unskip Armada API unit tests 2017-12-14 17:02:50 -04:00
test_rollback_controller.py Support in Armada for locking Tiller 2019-03-22 13:56:50 -05:00
test_test_controller.py Support in Armada for locking Tiller 2019-03-22 13:56:50 -05:00
test_tiller_controller.py Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06:00
test_validation_controller.py [TrivialFix] Fix documentation job failing on underline. 2018-01-10 23:20:08 -04:00
test_versions_controller.py Adding yapf config, plus formatted code. 2018-06-22 14:56:04 -05:00