mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +09:00
Give templates their own table and keep rcon_password per instance
The templates table shows name, inheritor count and a create instance action instead of the instance status and start/stop columns. factorio.rcon_password joins the ports as never inherited. Part of #200 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b5c372f109
commit
b584991f5c
6 files changed
+66
-11
No files matched your search
@@ -433,11 +433,14 @@ describe("controller/InstanceManager", function () {
|
||||
assert.equal(child.config.isInherited("factorio.game_port"), false);
|
||||
assert.equal(child.config.isInherited("instance.name"), false);
|
||||
});
|
||||
it("should never inherit ports", function () {
|
||||
it("should never inherit ports or the rcon password", function () {
|
||||
template.config.set("factorio.rcon_password", "secret");
|
||||
const config = new lib.InstanceConfig("controller", { "instance.id": 12, "instance.template_id": 10 });
|
||||
instances.applyTemplate(config, ["instance.id", "instance.template_id"]);
|
||||
assert.equal(config.get("factorio.game_port"), null);
|
||||
assert.equal(config.isInherited("factorio.game_port"), false);
|
||||
assert.equal(config.get("factorio.rcon_password"), null);
|
||||
assert.equal(config.isInherited("factorio.rcon_password"), false);
|
||||
});
|
||||
it("should inherit factorio.settings per property with its own server name", function () {
|
||||
const settings = child.config.get("factorio.settings");
|
||||
|
||||
Reference in new issue
Block a user