1
0
mirror of https://github.com/Tecnativa/docker-socket-proxy synced 2025-01-02 20:00:55 +00:00

Merge pull request #139 from proudier/exec_test

test: check if connection upgrades work (using exec)
This commit is contained in:
Pedro M. Baeza 2024-09-10 08:06:32 +02:00 committed by GitHub
commit 0e8d6601b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)