Skip to content

Commit

Permalink
test: check if connection upgrade works
Browse files Browse the repository at this point in the history
  • Loading branch information
proudier committed Sep 9, 2024
1 parent 393a99c commit fb9794d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit fb9794d

Please sign in to comment.