diff options
author | Jason Luo <cl4531@att.com> | 2019-03-10 00:36:25 +0000 |
---|---|---|
committer | Jason Luo <cl4531@att.com> | 2019-03-12 14:46:19 +0000 |
commit | ecc38094077da21c7cb7c84597710945fbc01788 (patch) | |
tree | cc32b27d44ea8c740711a4c0f4b3928b2b9e4623 /k8s/tests | |
parent | f024f8e353847f5a59aeeb3b011e5502ee89d253 (diff) |
add liveness probe, fix readiness prob exec
liveness and readiness probes may run script with
arguments, ports and volumes are optional instead
of mandatory, test_tasks.py accept ports[] and
volumes[]
fix the issue of labels which are logner than 63
Issue-ID: DCAEGEN2-1126
Change-Id: Id2f893adc300bf508c0512a51b3665872d36f674
Signed-off-by: Jason Luo <cl4531@att.com>
Diffstat (limited to 'k8s/tests')
-rw-r--r-- | k8s/tests/test_tasks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/k8s/tests/test_tasks.py b/k8s/tests/test_tasks.py index 948489a..cf78860 100644 --- a/k8s/tests/test_tasks.py +++ b/k8s/tests/test_tasks.py @@ -247,7 +247,7 @@ def test_enhance_docker_params(mockconfig): test_kwargs = { "docker_config": {}, "service_id": None } actual = tasks._enhance_docker_params(**test_kwargs) - assert actual == {'envs': {"SERVICE_TAGS": ""}, 'docker_config': {}, "service_id": None } + assert actual == {'envs': {"SERVICE_TAGS": ""}, 'docker_config': {}, 'ports': [], 'volumes': [], "service_id": None } # Good - Test just docker config ports and volumes @@ -289,4 +289,4 @@ def test_notify_container(mockconfig): from k8splugin import tasks test_input = { "docker_config": { "policy": { "trigger_type": "unknown" } } } - assert [] == tasks._notify_container(**test_input)
\ No newline at end of file + assert [] == tasks._notify_container(**test_input) |