Skip to content

Commit fb9794d

Browse files
committed
test: check if connection upgrade works
1 parent 393a99c commit fb9794d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_service.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,12 @@ def test_network_post_permissions(proxy_factory):
7676
]
7777
forbidden_calls = []
7878
_check_permissions(allowed_calls, forbidden_calls)
79+
80+
81+
def test_exec_permissions(proxy_factory):
82+
with proxy_factory(CONTAINERS=1, EXEC=1, POST=1) as container_id:
83+
allowed_calls = [
84+
("exec", container_id, "ls"),
85+
]
86+
forbidden_calls = []
87+
_check_permissions(allowed_calls, forbidden_calls)

0 commit comments

Comments
 (0)