test: align imageRef selftests with Aipod spec source

This commit is contained in:
AgentRun Codex
2026-06-11 01:30:01 +08:00
parent 5a6e5a4bbd
commit 9972a2114e
5 changed files with 21 additions and 9 deletions
+3 -2
View File
@@ -6,7 +6,7 @@ import { startManagerServer } from "../../mgr/server.js";
import { MemoryAgentRunStore } from "../../mgr/store.js";
import { ManagerClient } from "../../mgr/client.js";
import type { JsonRecord, QueueDispatchResult, QueueTaskRecord } from "../../common/types.js";
import { assertNoSecretLeak, type SelfTestCase } from "../harness.js";
import { assertNoSecretLeak, loadArtificerImageRef, type SelfTestCase } from "../harness.js";
const selfTest: SelfTestCase = async (context) => {
const fakeKubectl = path.join(context.tmp, "fake-kubectl-queue-q2.js");
@@ -39,10 +39,11 @@ process.exit(1);
`);
await chmod(fakeKubectl, 0o755);
const store = new MemoryAgentRunStore();
const artificerImageRef = await loadArtificerImageRef(context.root);
const aipodImageRef = {
kind: "env-image-dockerfile",
repoUrl: "git@github.com:pikasTech/agentrun.git",
commitId: "59272f8edb4e23d805b7b9da0050ec40cfc0233d",
commitId: artificerImageRef.commitId,
dockerfilePath: "deploy/container/Containerfile",
};
const server = await startManagerServer({