mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
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:
1 parent
e3cfc090d3
commit
499e973db9
4 files changed
+12
-2
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user