fix: stabilize auth identity, record operations, and workflow diagnostics

This commit is contained in:
gitea committed 2026-10-15 14:54:10 +08:00
1 parent c74fdda7da
commit 7ec369f77e
36 files changed
+1021 -337

No files matched your search

+4 -2
View File
@@ -588,6 +588,7 @@ describe("CLI - workflow job 执行详情与异常精准透视", () => {
return { json: async () => ({ code: 200, data: null }) };
},
get: (url: string) => {
if (url.includes("/level/failed")) return { json: async () => ({ code: 200, data: [] }) };
if (url.includes("execution")) {
return {
json: async () => ({
@@ -665,7 +666,7 @@ describe("CLI - workflow job 执行详情与异常精准透视", () => {
area: "workflow",
action: "test",
args: ["wf_test_1"],
options: { flow: "ZJ-20261015-001387", platformId: "p1" },
options: { flow: "ZJ-20261015-001387", platformId: "p1", yes: true },
raw: ["workflow", "test", "wf_test_1", "--flow=ZJ-20261015-001387", "--platform-id=p1"],
},
mockRuntime
@@ -681,6 +682,7 @@ describe("CLI - workflow job 执行详情与异常精准透视", () => {
it("allows workflow test when pipeline is enabled in production with full security prompt", async () => {
const mockClient = {
get: (url: string) => {
if (url.includes("/level/failed")) return { json: async () => ({ code: 200, data: [] }) };
if (url.includes("api/easo/pipelines/")) {
return {
json: async () => ({
@@ -740,7 +742,7 @@ describe("CLI - workflow job 执行详情与异常精准透视", () => {
area: "workflow",
action: "test",
args: ["wf_prod_1"],
options: { flow: "ZJ-20261015-001387", platformId: "p1" },
options: { flow: "ZJ-20261015-001387", platformId: "p1", yes: true },
raw: ["workflow", "test", "wf_prod_1", "--flow=ZJ-20261015-001387", "--platform-id=p1"],
},
mockRuntime