test(plugins): exercise clawhub clawpack fixtures

This commit is contained in:
Vincent Koc
2026-05-02 08:57:24 -07:00
parent 43de6ae725
commit 437acb4184
5 changed files with 61 additions and 8 deletions

View File

@@ -307,5 +307,6 @@ describe("docker build helper", () => {
expect(clawhub).toContain('plugins update "$CLAWHUB_PLUGIN_ID"');
expect(clawhub).toContain("clawhub:@openclaw/kitchen-sink");
expect(assertions).toContain("clawhub-updated");
expect(assertions).toContain("record.clawpackSha256");
});
});

View File

@@ -131,6 +131,7 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
expect(assertionsScript).toContain("assertCutoverPreinstalled");
expect(assertionsScript).toContain("record.source !== source");
expect(assertionsScript).toContain("record.clawhubPackage !== packageName");
expect(assertionsScript).toContain("record.clawpackSha256");
expect(assertionsScript).toContain("assertClawHubExternalInstallContract");
expect(assertionsScript).toContain("expectedErrorMessages");
expect(assertionsScript).toContain(
@@ -140,6 +141,9 @@ describe("scripts/lib/plugin-prerelease-test-plan.mjs", () => {
expect(readFileSync("scripts/e2e/lib/clawhub-fixture-server.cjs", "utf8")).toContain(
'from "openclaw/plugin-sdk/plugin-entry"',
);
expect(readFileSync("scripts/e2e/lib/clawhub-fixture-server.cjs", "utf8")).toContain(
"X-ClawHub-ClawPack-Sha256",
);
expect(script).toContain("docker stats --no-stream");
expect(sweepScript).toContain("scan_logs_for_unexpected_errors");
});