mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:30:43 +00:00
test: add Crestodian QA lab setup scenario
This commit is contained in:
@@ -108,6 +108,36 @@ async function main() {
|
||||
"Crestodian agent creation did not apply",
|
||||
);
|
||||
|
||||
clearConfigCache();
|
||||
const discordPluginAllowRuntime = createRuntime();
|
||||
await runCrestodian(
|
||||
{
|
||||
message: 'config set plugins.allow ["discord"]',
|
||||
yes: true,
|
||||
interactive: false,
|
||||
},
|
||||
discordPluginAllowRuntime.runtime,
|
||||
);
|
||||
assert(
|
||||
discordPluginAllowRuntime.lines.join("\n").includes("[crestodian] done: config.set"),
|
||||
"Crestodian Discord plugin allowlist did not apply",
|
||||
);
|
||||
|
||||
clearConfigCache();
|
||||
const discordPluginEntryRuntime = createRuntime();
|
||||
await runCrestodian(
|
||||
{
|
||||
message: "config set plugins.entries.discord.enabled true",
|
||||
yes: true,
|
||||
interactive: false,
|
||||
},
|
||||
discordPluginEntryRuntime.runtime,
|
||||
);
|
||||
assert(
|
||||
discordPluginEntryRuntime.lines.join("\n").includes("[crestodian] done: config.set"),
|
||||
"Crestodian Discord plugin entry did not apply",
|
||||
);
|
||||
|
||||
clearConfigCache();
|
||||
const discordTokenRuntime = createRuntime();
|
||||
await runCrestodian(
|
||||
@@ -162,6 +192,11 @@ async function main() {
|
||||
assert(reef, "Crestodian did not create reef agent");
|
||||
assert(reef.workspace === "/tmp/openclaw-reef", "Crestodian did not write reef workspace");
|
||||
assert(reef.model === "openai/gpt-5.2", "Crestodian did not write reef model");
|
||||
assert(config.plugins?.allow?.includes("discord"), "Crestodian did not allow Discord plugin");
|
||||
assert(
|
||||
config.plugins?.entries?.discord?.enabled === true,
|
||||
"Crestodian did not enable Discord plugin entry",
|
||||
);
|
||||
assert(config.channels?.discord?.enabled === true, "Crestodian did not enable Discord");
|
||||
const discordToken = config.channels?.discord?.token;
|
||||
assert(
|
||||
|
||||
Reference in New Issue
Block a user