From 8d1e980ec40e65db1d545531cf2b7fc3e4c9e81d Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Fri, 24 May 2024 09:35:17 +0200 Subject: [PATCH] feat(software): use software package exclusion pattern to ignore uninteresting packages Signed-off-by: Reuben Miller --- images/common/config/tedge.toml | 5 +++-- tests/debian-systemd/main/operations.robot | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/images/common/config/tedge.toml b/images/common/config/tedge.toml index f485e9f..4a67c42 100644 --- a/images/common/config/tedge.toml +++ b/images/common/config/tedge.toml @@ -11,5 +11,6 @@ client.host = "tedge" proxy.bind.address = "0.0.0.0" proxy.client.host = "tedge" -[apt] -name = "(tedge|c8y|python|wget|vim|curl|apt|mosquitto|ssh|sudo).*" +[software.plugin] +# Exclude uninteresting software management packages (regardless of type) +exclude = "^(glibc|lib|kernel-|iptables-module).*" diff --git a/tests/debian-systemd/main/operations.robot b/tests/debian-systemd/main/operations.robot index fc9749a..77414c8 100644 --- a/tests/debian-systemd/main/operations.robot +++ b/tests/debian-systemd/main/operations.robot @@ -20,6 +20,9 @@ Install software package Operation Should Be SUCCESSFUL ${operation} timeout=90 Cumulocity.Device Should Have Installed Software vim-tiny + # lib* packages should be excluded by default due to the custom tedge.toml config + Cumulocity.Device Should Not Have Installed Software libc-bin + Uninstall software package ${operation}= Cumulocity.Uninstall Software {"name": "vim-tiny", "softwareType": "apt"} timeout=90 Operation Should Be SUCCESSFUL ${operation}