mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
Merge pull request #1010 from bbassie/feature/plugin-browser
Plugin management through web interface
This commit is contained in:
1 parent
e36a76acc5
commit
ffe82f81d8
48 files changed
+4275
-536
No files matched your search
@@ -15,7 +15,7 @@ import {
|
||||
spawnNode, instancesDir, factorioDir, databaseDir, controllerConfigPath,
|
||||
requiresFactorio, hasFactorio,
|
||||
} from "./index.js";
|
||||
import { slowTest } from "../common.js";
|
||||
import { externalTest, slowTest } from "../common.js";
|
||||
import { getTestRconPort } from "./rcon_port.js";
|
||||
import { ControllerEcho, HostEchoReceived } from "../file/test_plugin/messages.js";
|
||||
|
||||
@@ -540,6 +540,19 @@ describe("Integration of Clusterio", function() {
|
||||
// Install always fails, we can not test restart option
|
||||
});
|
||||
|
||||
describe("controller plugin search", function() {
|
||||
it("runs", async function() {
|
||||
externalTest(this);
|
||||
await execCtl("controller plugin search global_chat --page-size 5");
|
||||
});
|
||||
it("rejects invalid paging", async function() {
|
||||
await assert.rejects(
|
||||
execCtl("controller plugin search --page 0"),
|
||||
/Invalid page or page size/
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("controller update", function() {
|
||||
it("runs", async function() {
|
||||
await execCtl("controller update");
|
||||
|
||||
Reference in new issue
Block a user