mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
fix: harden the plugin runtime after the 2.9.0 security review
This commit is contained in:
1 parent
2961297989
commit
c6a44b7ff3
69 files changed
+4613
-312
No files matched your search
@@ -285,7 +285,9 @@ describe("adopting a legacy core table", () => {
|
||||
"0001_adopt.sql",
|
||||
adoptLegacyTableSql("sqlite", "fleets", "p_fleets_fleets"),
|
||||
);
|
||||
await applyPluginMigrations("fleets", root, createRunner());
|
||||
await applyPluginMigrations("fleets", root, createRunner(), {
|
||||
bundled: true,
|
||||
});
|
||||
|
||||
expect(tableExists("fleets")).toBe(false);
|
||||
const rows = sqlite
|
||||
@@ -319,7 +321,9 @@ describe("adopting a legacy core table", () => {
|
||||
);
|
||||
|
||||
await expect(
|
||||
applyPluginMigrations("workspaces", root, createRunner()),
|
||||
applyPluginMigrations("workspaces", root, createRunner(), {
|
||||
bundled: true,
|
||||
}),
|
||||
).rejects.toThrow(/belongs to the "fleets" plugin/);
|
||||
|
||||
// Refused before execution, so the legacy table is still there.
|
||||
|
||||
Reference in new issue
Block a user