feat(platform): include release in alert runbook

This commit is contained in:
lingniu
2026-07-04 15:59:20 +08:00
parent 7d6d1afbf2
commit a01a958e60
2 changed files with 6 additions and 3 deletions

View File

@@ -2900,7 +2900,7 @@ test('shows alert rule and notification policy workspace on quality page', async
redisOnlineKeys: 368,
tdengineWritable: false,
mysqlWritable: true,
runtime: { requestTimeoutMs: 5000 }
runtime: { platformRelease: 'platform-20260704155607', requestTimeoutMs: 5000 }
},
traceId: 'trace-test',
timestamp: 1783094400000
@@ -2969,6 +2969,7 @@ test('shows alert rule and notification policy workspace on quality page', async
fireEvent.click(screen.getByRole('button', { name: '复制通知策略Runbook' }));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('【告警通知策略Runbook】'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('运行版本platform-20260704155607'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('P0 实时中断 / 接入运维 + 业务责任人'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('升级30 分钟升级'));
expect(writeText).toHaveBeenCalledWith(expect.stringContaining('验收:来源恢复并持续 10 分钟,车辆服务可查到实时与历史证据'));