Skip to content

Commit

Permalink
Merge pull request #139 from proudier/exec_test
Browse files Browse the repository at this point in the history
test: check if connection upgrades work (using exec)
  • Loading branch information
pedrobaeza committed Sep 10, 2024
2 parents 393a99c + fb9794d commit 0e8d660
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 0e8d660

Please sign in to comment.