From 8729c65bfe36e760ae54adebd0f60a1818eea086 Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Tue, 4 Feb 2025 16:44:37 +1030 Subject: [PATCH] tests/profiles/tinyproxy: add spread smoke test for tinyproxy Signed-off-by: Alex Murray --- .image-garden.mk | 1 + tests/profiles/tinyproxy/task.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/profiles/tinyproxy/task.yaml diff --git a/.image-garden.mk b/.image-garden.mk index bd12d1a4f..19cc2ded1 100644 --- a/.image-garden.mk +++ b/.image-garden.mk @@ -35,6 +35,7 @@ packages: - python3-tk - python3-ttkthemes - swig +- tinyproxy - toybox endef diff --git a/tests/profiles/tinyproxy/task.yaml b/tests/profiles/tinyproxy/task.yaml new file mode 100644 index 000000000..6c61b662c --- /dev/null +++ b/tests/profiles/tinyproxy/task.yaml @@ -0,0 +1,10 @@ +summary: smoke test for the tinyproxy profile +execute: | + # enable tinyproxy service + systemctl start tinyproxy + + # check is running + systemctl is-active tinyproxy + + # tinyproxy system service is confined + cat /proc/$(pidof tinyproxy)/attr/apparmor/current | MATCH 'tinyproxy (enforce)'