From f17ceca7a06cc79d46c58fd9cbff9e08944b8724 Mon Sep 17 00:00:00 2001 From: Alan Rominger Date: Mon, 28 Mar 2022 22:39:59 -0400 Subject: [PATCH] Add in default value to unit tests --- awx/main/tests/unit/models/test_ha.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/awx/main/tests/unit/models/test_ha.py b/awx/main/tests/unit/models/test_ha.py index a0ce3476e2..86b8d65aaf 100644 --- a/awx/main/tests/unit/models/test_ha.py +++ b/awx/main/tests/unit/models/test_ha.py @@ -93,7 +93,7 @@ class TestInstanceGroup(object): def test_cleanup_params_defaults(): inst = Instance(hostname='foobar') - assert inst.get_cleanup_task_kwargs(exclude_strings=['awx_423_']) == {'exclude_strings': ['awx_423_'], 'file_pattern': '/tmp/awx_*_*'} + assert inst.get_cleanup_task_kwargs(exclude_strings=['awx_423_']) == {'exclude_strings': ['awx_423_'], 'file_pattern': '/tmp/awx_*_*', 'grace_period': 60} def test_cleanup_params_for_image_cleanup(): @@ -104,4 +104,5 @@ def test_cleanup_params_for_image_cleanup(): 'process_isolation_executable': 'podman', 'remove_images': ['quay.invalid/foo/bar'], 'image_prune': True, + 'grace_period': 60, }