test: align imageRef selftests with Aipod spec source
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user