fix: 收敛 HWLAB Argo 自动同步声明

This commit is contained in:
pikastech
2026-07-21 10:43:38 +02:00
parent 63f3bf8866
commit 6d8bea70de
3 changed files with 20 additions and 0 deletions
@@ -95,6 +95,14 @@ test("HWLAB v0.3 and production share one NC01 PaC Repository while keeping lane
expect(development?.repositoryRef).toBe("hwlab-nc01-v03");
expect(production?.repositoryRef).toBe("hwlab-nc01-v03");
expect((nc01Repositories[0]?.params as Record<string, unknown>).source_branch).toBe("v0.3");
expect(development?.argoBootstrap).toEqual({
project: "hwlab-v03",
repoUrl: "http://git-mirror-http.devops-infra.svc.cluster.local:8080/pikasTech/HWLAB.git",
targetRevision: "v0.3-gitops",
path: "deploy/gitops/node/nc01/runtime-v03",
destinationNamespace: "hwlab-v03",
automated: true,
});
expect((production?.params as Record<string, unknown>).source_branch).toBe("release");
expect((production?.params as Record<string, unknown>).gitops_branch).toBe("release-gitops");
expect((production?.params as Record<string, unknown>).pipeline_name).toBe("hwlab-nc01-production-ci-image-publish");