Skip to content

Commit

Permalink
feat(software): use software package exclusion pattern to ignore unin…
Browse files Browse the repository at this point in the history
…teresting packages

Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller committed May 24, 2024
1 parent f0ce795 commit 8d1e980
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions images/common/config/tedge.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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).*"
3 changes: 3 additions & 0 deletions tests/debian-systemd/main/operations.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8d1e980

Please sign in to comment.