From 48478a89cdb37af4aecf0a7284b064286eea12ba Mon Sep 17 00:00:00 2001 From: mudler-agent Date: Sat, 24 Oct 2026 22:06:27 +0200 Subject: [PATCH] test(addons): refuse an unlisted platform in the packaging contract (#12884) Tables now enables the four platforms the CI hosts run on (#12879), so the spec that expected the host platform to be refused as not enabled failed on the add-on packages run for 88aa56518. The refused platform is now one the matrix never lists. Assisted-by: Claude:claude-sonnet-5-5 [Claude Code] Signed-off-by: Ettore Di Giacinto Co-authored-by: Ettore Di Giacinto --- tests/addons/packaging/packaging_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/addons/packaging/packaging_test.go b/tests/addons/packaging/packaging_test.go index 674c79b16..38da38648 100644 --- a/tests/addons/packaging/packaging_test.go +++ b/tests/addons/packaging/packaging_test.go @@ -284,8 +284,10 @@ var _ = Describe("first-party package", func() { }) It("refuses a platform the matrix does not enable and a missing executable of another platform", func() { + // Tables enables every platform the CI hosts run on, so the refused + // platform is one the matrix never lists. layout := filepath.Join(GinkgoT().TempDir(), "leg") - out, err := packageSh("--layout", layout, "--version", "1.0.0", "--platform", hostPlat, "--executable", binary) + out, err := packageSh("--layout", layout, "--version", "1.0.0", "--platform", "windows/amd64", "--executable", binary) Expect(err).To(HaveOccurred(), out) Expect(out).To(ContainSubstring("not enabled")) Expect(layout).NotTo(BeADirectory())