feat: support custom server deployment drafts
This commit is contained in:
@@ -173,6 +173,17 @@ describe("plugin manifest validation", () => {
|
||||
expect(validateManifestFile("examples/scum-server-plugin/manifest.json")).toEqual([]);
|
||||
});
|
||||
|
||||
it("rejects unsupported or unsafe inline create-field declarations", () => {
|
||||
const malformed = validateTemporaryScumCompanionManifest((manifest) => {
|
||||
manifest.server.createFields[0].type = "path";
|
||||
});
|
||||
expect(malformed.some((error) => error.includes("createFields") && error.includes("type"))).toBe(true);
|
||||
const unsafe = validateTemporaryScumCompanionManifest((manifest) => {
|
||||
manifest.server.createFields[0].defaultValue = "/srv/hidden-server";
|
||||
});
|
||||
expect(unsafe.some((error) => error.includes("raw host path"))).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts a pinned ready SCUM UE4SS DLL release and lifecycle reference", () => {
|
||||
const errors = validateTemporaryScumCompanionManifest((manifest) => {
|
||||
const extension = manifest.runtimeProfiles.dllExtensions[0];
|
||||
|
||||
Reference in New Issue
Block a user