mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 14:45:24 +00:00
chore: lock the plugin boundary and remove 2.9.0 leftovers
This commit is contained in:
1 parent
6489b62ece
commit
2961297989
399 files changed
+3964
-5627
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { validateManifest } from "@termix/plugin-sdk/manifest";
|
||||
import manifest from "../../manifest.json";
|
||||
|
||||
// Old URLs something outside Termix still calls keep reaching the plugin.
|
||||
const redirects = manifest.contributes.http.legacyRedirects as unknown[];
|
||||
|
||||
describe("legacy URLs", () => {
|
||||
it("declares them in a manifest that validates", () => {
|
||||
expect(validateManifest(manifest)).toEqual([]);
|
||||
});
|
||||
|
||||
it("redirects /host/step-ca-callback, which Step CA identity providers were set up with before 2.9", () => {
|
||||
expect(redirects).toContainEqual({
|
||||
from: "/host/step-ca-callback",
|
||||
to: "/callback",
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user