handle SecurityOptions: null in docker response

This commit is contained in:
anthony sottile 2025-09-06 14:40:20 -04:00
parent e70b313c80
commit 2930ea0fcd
2 changed files with 3 additions and 2 deletions

View file

@ -89,7 +89,8 @@ def test_docker_user_rootless(info_ret):
(
(0, b'{"SecurityOptions": ["name=cgroupns"]}', b''),
(0, b'{"host": {"security": {"rootless": false}}}', b''),
(0, b'{"respone_from_some_other_container_engine": true}', b''),
(0, b'{"response_from_some_other_container_engine": true}', b''),
(0, b'{"SecurityOptions": null}', b''),
(1, b'', b''),
),
)