Skip to content

Commit 0e8d660

Browse files
authored
Merge pull request #139 from proudier/exec_test
test: check if connection upgrades work (using exec)
2 parents 393a99c + fb9794d commit 0e8d660

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)