2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-28 21:07:56 +00:00

tests/profiles/tinyproxy/task.yaml: fix tinyproxy smoke test

Signed-off-by: Alex Murray <alex.murray@canonical.com>
This commit is contained in:
Alex Murray 2025-02-06 21:32:36 +10:30
parent 94d494d8fe
commit 0217af9d82
No known key found for this signature in database
GPG Key ID: F498D2D9DE7DAD9C

View File

@ -1,10 +1,14 @@
summary: smoke test for the tinyproxy profile
execute: |
# enable tinyproxy service
systemctl start tinyproxy
# restart tinyproxy service as it may already be running
systemctl restart tinyproxy
# wait for it to be running
sleep 1
# check is running
systemctl is-active tinyproxy
# tinyproxy system service is confined
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy (enforce)'
# check tinyproxy system service is confined
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy \(enforce\)'