mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-28 09:08:54 -04:00
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 <mudler@localai.io>
Co-authored-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
1 parent
f8b7576dc7
commit
48478a89cd
1 file changed
+3
-1
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user