From 849179db3983c4b798272cde8439e6ffd18975cb Mon Sep 17 00:00:00 2001 From: Luis Perez Date: Wed, 25 Sep 2024 09:30:15 -0700 Subject: [PATCH] Update security context tests --- tests/test_kubernetes_tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_kubernetes_tools.py b/tests/test_kubernetes_tools.py index a43c1ba0a1..7b8818d350 100644 --- a/tests/test_kubernetes_tools.py +++ b/tests/test_kubernetes_tools.py @@ -1067,8 +1067,9 @@ def test_get_security_context_without_cap_add(self): def test_get_security_context_with_cap_add(self): self.deployment.config_dict["cap_add"] = ["SETGID"] + expected_dropped_caps = list(set(CAPS_DROP) - {"SETGID"}) expected_security_context = V1SecurityContext( - capabilities=V1Capabilities(add=["SETGID"], drop=CAPS_DROP) + capabilities=V1Capabilities(add=["SETGID"], drop=expected_dropped_caps) ) assert self.deployment.get_security_context() == expected_security_context