Fix InstanceConfigSetPropRequest schema

Fix the value incorrectly being set as required in the schema and thus
preventing props on config field objects of the instance from being
removed.
This commit is contained in:
Hornwitser committed 2024-01-24 03:43:21 +01:00
1 parent e3cfc090d3
commit 499e973db9
4 files changed
+12 -2

No files matched your search

+9
View File
@@ -557,6 +557,15 @@ describe("Integration of Clusterio", function() {
slowTest(this);
await checkInstanceStatus(44, "running");
});
it("should allow creating and removing props", async function() {
slowTest(this);
await execCtl("instance config set-prop test factorio.settings new_property new-string-value");
let config = await getControl().send(new lib.InstanceConfigGetRequest(44));
assert.equal(config["factorio.settings"]["new_property"], "new-string-value");
await execCtl("instance config set-prop test factorio.settings new_property");
config = await getControl().send(new lib.InstanceConfigGetRequest(44));
assert.equal(config["factorio.settings"]["new_property"], undefined);
});
});
describe("user set-admin/whitelisted/banned", function() {