fix: bootstrap new services in artifact catalogs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -333,7 +333,7 @@ test("v03 refresh accepts runtime lane config and env-reuse image tags", async (
|
||||
const deployPath = path.join(tempDir, "deploy.yaml");
|
||||
const catalogPath = path.join(tempDir, "artifact-catalog.v03.json");
|
||||
const reportPath = path.join(tempDir, "v03-artifacts.json");
|
||||
const serviceIds = V02_SERVICE_IDS;
|
||||
const serviceIds = [...V02_SERVICE_IDS, "hwlab-tasktree-api", "hwlab-tasktree-worker"];
|
||||
await writeStructuredFile(tempDir, deployPath, {
|
||||
environment: "dev",
|
||||
namespace: "hwlab-dev",
|
||||
@@ -354,6 +354,29 @@ test("v03 refresh accepts runtime lane config and env-reuse image tags", async (
|
||||
},
|
||||
services: SERVICE_IDS.map((serviceId) => ({ serviceId }))
|
||||
});
|
||||
await writeFile(catalogPath, `${JSON.stringify({
|
||||
catalogVersion: "v1",
|
||||
kind: "hwlab-artifact-catalog",
|
||||
environment: "v03",
|
||||
profile: "v03",
|
||||
namespace: "hwlab-v03",
|
||||
endpoint: "https://hwlab-v03.74-48-78-17.nip.io",
|
||||
commitId,
|
||||
artifactState: "published",
|
||||
publish: { ciPublished: true, registryVerified: true, provenance: "previous-run" },
|
||||
allowedProfiles: ["v03"],
|
||||
forbiddenProfiles: ["dev", "prod"],
|
||||
services: V02_SERVICE_IDS.map((serviceId, index) => ({
|
||||
serviceId,
|
||||
commitId,
|
||||
sourceCommitId: commitId,
|
||||
image: `127.0.0.1:5000/hwlab/${serviceId}:${commitId}`,
|
||||
imageTag: commitId,
|
||||
digest: digestFor(index),
|
||||
profile: "v03",
|
||||
namespace: "hwlab-v03"
|
||||
}))
|
||||
}, null, 2)}\n`);
|
||||
await writeFile(reportPath, `${JSON.stringify({
|
||||
reportVersion: "v1",
|
||||
taskId: "v03-artifact-publish",
|
||||
|
||||
Reference in New Issue
Block a user