Skip to content

Commit

Permalink
Update security context tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nemacysts committed Sep 25, 2024
1 parent d659eae commit 849179d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_kubernetes_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 849179d

Please sign in to comment.