1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2024-11-23 08:28:08 +00:00

test: check if connection upgrade works

This commit is contained in:
Pierre Roudier 2024-09-09 16:53:56 -04:00
parent 393a99c069
commit fb9794d2df
No known key found for this signature in database

View File

@ -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)