assert capabilities existence

This commit is contained in:
paulfantom 2018-06-25 23:49:55 +02:00
parent 00670c903e
commit 7be1b66dc0
No known key found for this signature in database
GPG Key ID: 12AE0185401674E7
1 changed files with 5 additions and 0 deletions

View File

@ -42,3 +42,8 @@ def test_minio_service(Service):
s = Service('minio')
assert s.is_running
assert s.is_enabled
def test_capabilities(host):
service_file = host.file("/etc/systemd/system/minio.service")
assert service_file.contains("AmbientCapabilities=CAP_NET_BIND_SERVICE")