mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
test: acknowledge corrupt plugin fixture source
This commit is contained in:
@@ -40,7 +40,7 @@ pack_fixture_plugin "$npm_pack_dir" /tmp/demo-corrupt-plugin.tgz demo-corrupt-pl
|
||||
start_npm_fixture_registry "@openclaw/demo-corrupt-plugin" "0.0.1" /tmp/demo-corrupt-plugin.tgz "$npm_registry_dir"
|
||||
|
||||
echo "Installing managed external plugin..."
|
||||
node "$entry" plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" >/tmp/openclaw-corrupt-plugin-install.log 2>&1
|
||||
node "$entry" plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" --acknowledge-non-clawhub-install >/tmp/openclaw-corrupt-plugin-install.log 2>&1
|
||||
node "$entry" plugins inspect demo-corrupt-plugin --runtime --json >/tmp/openclaw-corrupt-plugin-before.json
|
||||
unset NPM_CONFIG_REGISTRY npm_config_registry
|
||||
|
||||
|
||||
@@ -200,6 +200,9 @@ describe("plugin update unchanged Docker E2E", () => {
|
||||
it("bounds corrupt plugin update commands and prints diagnostics on hangs", () => {
|
||||
const script = readFileSync(CORRUPT_UPDATE_SCENARIO_SCRIPT, "utf8");
|
||||
|
||||
expect(script).toContain(
|
||||
'plugins install "npm:@openclaw/demo-corrupt-plugin@0.0.1" --acknowledge-non-clawhub-install',
|
||||
);
|
||||
expect(script).toContain("OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS");
|
||||
expect(script).toContain(
|
||||
"openclaw_e2e_read_positive_int_env OPENCLAW_UPDATE_CORRUPT_PLUGIN_TIMEOUT_SECONDS 900",
|
||||
|
||||
Reference in New Issue
Block a user