Files
Reactive_Resume/工程分析/测试方案-2026-05-19-23-23-50.md

49 lines
2.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 测试方案-2026-05-19-23-23-50
## 测试方案文档路径
`工程分析/测试方案-2026-05-19-23-23-50.md`
## 静态检查
- 执行 `sh -n scripts/patch-reactive-resume-filename.sh`
- 搜索脚本确认包含 `ZhiboWang-Resume.pdf`
## 部署验证
- 执行 `./scripts/patch-reactive-resume-filename.sh reactive-resume-reactive-resume-1`
- 确认容器 `reactive-resume-reactive-resume-1``healthy`
## 业务验证
- 验证容器内 public JS 与 SSR 文件包含 `ZhiboWang-Resume.pdf`
- 验证 HTTP 静态资源 `/assets/file-D5WsIgJH.js` 包含 `ZhiboWang-Resume.pdf`
- 验证 HTTP 静态资源不再包含 `王志博-医工智能外科简历.pdf``王志博-医工智能外科-简历.pdf`
- 验证 `http://127.0.0.1:3003/api/health` 返回 healthy。
- 验证 `http://127.0.0.1:3003/audience/resume` 返回 200。
## Git/Gitea 备份验证
- 创建本地回滚 commit。
- 尝试 `git push origin main`
- 若 HTTP 凭据不可用,记录失败原因。
## 风险与回归关注点
- 浏览器缓存可能短暂保留旧中文 cache bust脚本恢复 `rr-filename-20260519` 后应重新更新 importer 与 manifest。
## 实际执行结果
- `sh -n scripts/patch-reactive-resume-filename.sh`:通过。
- 脚本搜索:`PDF_FILENAME``pdfFilename` 均恢复为 `ZhiboWang-Resume.pdf``CACHE_BUST``cacheBust` 均恢复为 `rr-filename-20260519`
- `./scripts/patch-reactive-resume-filename.sh reactive-resume-reactive-resume-1`:通过。
- 容器状态:`reactive-resume-reactive-resume-1``healthy`
- 容器内验证public JS 与 SSR 文件均包含 `ZhiboWang-Resume.pdf`
- 容器内中文残留验证public JS 与 SSR 文件未检出 `王志博-医工智能外科`
- HTTP 静态资源验证:`/assets/file-D5WsIgJH.js` 返回内容包含 `ZhiboWang-Resume.pdf`
- Cache bust 验证:业务页面 import 已恢复为 `file-D5WsIgJH.js?v=rr-filename-20260519`
- 服务健康验证:`curl http://127.0.0.1:3003/api/health` 返回 `status: healthy`
- 公开简历页验证:`curl -I http://127.0.0.1:3003/audience/resume` 返回 `HTTP/1.1 200 OK`
- Git 本地备份 commit已创建提交信息为 `2026-05-19-23-23-50 回滚简历PDF下载文件名`
- Gitea 远端推送:执行 `git push origin main` 时失败,原因是 HTTP 远端 `http://192.168.31.5:5002` 无法读取用户名;未在命令行写入账号密码。