test(mock): add worker domain and IP asset fixtures
This commit is contained in:
1 parent
6dd4d70f08
commit
5301a4fe04
2 files changed
+13
-2
No files matched your search
@@ -558,6 +558,17 @@ export const assets: Asset[] = [
|
|||||||
status_code: 200,
|
status_code: 200,
|
||||||
last_seen: T("2026-07-25T21:35:00Z"),
|
last_seen: T("2026-07-25T21:35:00Z"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 27,
|
||||||
|
type: "subdomain",
|
||||||
|
company_id: 1,
|
||||||
|
task_ids: [1],
|
||||||
|
domain: "very-long-admin-console.internal.acme.example.com",
|
||||||
|
root_domain: "acme.example.com",
|
||||||
|
record_type: "A",
|
||||||
|
record_value: ["203.0.113.210"],
|
||||||
|
last_seen: T("2026-07-26T03:59:00Z"),
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const assetCounts: Record<string, number> = assets.reduce<Record<string, number>>((m, a) => {
|
export const assetCounts: Record<string, number> = assets.reduce<Record<string, number>>((m, a) => {
|
||||||
|
|||||||
@@ -792,8 +792,8 @@ function route(m: string, path: string, seg: string[], q: URLSearchParams, b: Re
|
|||||||
let mappings: Array<{ intentID: string; assetID: number; summary: string }> = [];
|
let mappings: Array<{ intentID: string; assetID: number; summary: string }> = [];
|
||||||
if (seg[1] === "t-acme-web") {
|
if (seg[1] === "t-acme-web") {
|
||||||
mappings = [
|
mappings = [
|
||||||
{ intentID: "i3", assetID: 6, summary: "后台功能枚举意图从前序子域发现中选定" },
|
{ intentID: "i3", assetID: 27, summary: "后台功能枚举意图从前序子域发现中选定" },
|
||||||
{ intentID: "i5", assetID: 3, summary: "订单接口测试意图从 API 任务目标中选定" },
|
{ intentID: "i5", assetID: 7, summary: "订单接口测试意图从 API 任务目标中选定" },
|
||||||
];
|
];
|
||||||
} else if (seg[1] === "t-acme-api") {
|
} else if (seg[1] === "t-acme-api") {
|
||||||
mappings = [{ intentID: "i5", assetID: 3, summary: "订单接口测试意图从 API 任务目标中选定" }];
|
mappings = [{ intentID: "i5", assetID: 3, summary: "订单接口测试意图从 API 任务目标中选定" }];
|
||||||
|
|||||||
Reference in new issue
Block a user