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:
parent
393a99c069
commit
fb9794d2df
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user