From fb9794d2dfbc6f08e02311f4e51e87a926fe3066 Mon Sep 17 00:00:00 2001 From: Pierre Roudier Date: Mon, 9 Sep 2024 16:53:56 -0400 Subject: [PATCH] test: check if connection upgrade works --- tests/test_service.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/test_service.py b/tests/test_service.py index 2d38aa1..4724d3f 100644 --- a/tests/test_service.py +++ b/tests/test_service.py @@ -76,3 +76,12 @@ def test_network_post_permissions(proxy_factory): ] forbidden_calls = [] _check_permissions(allowed_calls, forbidden_calls) + + +def test_exec_permissions(proxy_factory): + with proxy_factory(CONTAINERS=1, EXEC=1, POST=1) as container_id: + allowed_calls = [ + ("exec", container_id, "ls"), + ] + forbidden_calls = [] + _check_permissions(allowed_calls, forbidden_calls)