From 724ecc866e04f405b6645460b4c4af01c660490f Mon Sep 17 00:00:00 2001 From: Tai Groot Date: Fri, 6 Mar 2026 01:14:20 +0000 Subject: [PATCH] fix(ci): update snap test caps, install Flatseal in flatpak CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .github/workflows/integration.yml | 1 + snap/snap_integration_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 74d827a..b15125a 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -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 diff --git a/snap/snap_integration_test.go b/snap/snap_integration_test.go index 95569fa..cfd6d0c 100644 --- a/snap/snap_integration_test.go +++ b/snap/snap_integration_test.go @@ -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)