armada/armada/tests/unit/api
Sean Eagan 7af22df7dc Implement tiller gRPC channel clean up
We have seen issues with dangling threads in Armada. This is likely due to
a bug [0] in the version of gRPC that we were pinned to.

This patchset:

- moves us to the latest versions of the gRPC python libraries which add
  a new `channel.close()` method to cleanup channels.
- implements the python context manager api in the tiller handler
- uses the context manager api to explicitly scope tiller channel creation
  and cleanup to each Armada API and CLI call.

This also fixes a couples issues with error handling introduced in [1].

[0]: https://github.com/grpc/grpc/issues/14338
[1]: https://review.openstack.org/#/c/610384

Change-Id: I2577a20fc76c397aa33157dc12a0e1d36f49733e
2018-11-12 13:32:52 -06: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 Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06:00
test_health_controller.py bug(tests): Unskip Armada API unit tests 2017-12-14 17:02:50 -04:00
test_rollback_controller.py Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06:00
test_test_controller.py Implement tiller gRPC channel clean up 2018-11-12 13:32:52 -06: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