fix(ci): update snap test caps, install Flatseal in flatpak CI

- snap integration test asserted Clean=false, but snap now implements
  Cleaner — updated to assert True
- flatpak CI job now installs Flatseal before running integration tests
  so Version/List tests have a known installed package
This commit is contained in:
2026-03-06 01:14:20 +00:00
parent 77bdcfef3a
commit 724ecc866e
2 changed files with 2 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y flatpak
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install -y flathub com.github.tchx84.Flatseal
- name: Integration tests
run: sudo -E go test -v -tags integration -count=1 -coverprofile=coverage-flatpak.out ./flatpak/
- uses: actions/upload-artifact@v4

View File

@@ -24,7 +24,7 @@ func TestIntegration_Snap(t *testing.T) {
caps := snack.GetCapabilities(mgr)
assert.True(t, caps.VersionQuery, "snap should support VersionQuery")
assert.False(t, caps.Hold)
assert.False(t, caps.Clean)
assert.True(t, caps.Clean, "snap should support Clean")
assert.False(t, caps.FileOwnership)
assert.False(t, caps.RepoManagement)
assert.False(t, caps.KeyManagement)