test: acknowledge corrupt plugin fixture source

This commit is contained in:
Jesse Merhi
2026-07-11 21:30:23 +10:00
parent 1aae001657
commit 84dbc0fdc7
2 changed files with 4 additions and 1 deletions
@@ -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",