mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 13:28:19 +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:
parent
94d494d8fe
commit
0217af9d82
@ -1,10 +1,14 @@
|
|||||||
summary: smoke test for the tinyproxy profile
|
summary: smoke test for the tinyproxy profile
|
||||||
execute: |
|
execute: |
|
||||||
# enable tinyproxy service
|
# restart tinyproxy service as it may already be running
|
||||||
systemctl start tinyproxy
|
systemctl restart tinyproxy
|
||||||
|
|
||||||
|
# wait for it to be running
|
||||||
|
sleep 1
|
||||||
|
|
||||||
# check is running
|
# check is running
|
||||||
systemctl is-active tinyproxy
|
systemctl is-active tinyproxy
|
||||||
|
|
||||||
# tinyproxy system service is confined
|
# check tinyproxy system service is confined
|
||||||
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy (enforce)'
|
cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy \(enforce\)'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user