2.2 KiB
2.2 KiB
测试方案-2026-05-19-23-10-56
测试方案文档路径
工程分析/测试方案-2026-05-19-23-10-56.md
静态检查
- 执行
sh -n scripts/patch-reactive-resume-filename.sh。
部署验证
- 执行
scripts/patch-reactive-resume-filename.sh reactive-resume-reactive-resume-1。 - 确认容器
reactive-resume-reactive-resume-1恢复 healthy。
业务验证
- 在容器内搜索
王志博-医工智能外科-简历.pdf。 - 通过
curl http://127.0.0.1:3003/assets/file-D5WsIgJH.js验证静态资源已包含新文件名。 - 通过
curl http://127.0.0.1:3003/api/health验证服务健康。
Git/Gitea 备份验证
- 本地创建包含时间戳和简要描述的 commit。
- 尝试
git push origin main。 - 若 Gitea HTTP 凭据不可用,记录失败原因并保留本地 commit。
风险与回归关注点
- 浏览器缓存可能保留旧静态资源,因此本次必须更新 cache bust。
- Reactive Resume 镜像升级后构建文件哈希可能变化,脚本内固定文件路径需要重新定位。
实际执行结果
sh -n scripts/patch-reactive-resume-filename.sh:通过。./scripts/patch-reactive-resume-filename.sh reactive-resume-reactive-resume-1:通过。- 容器健康状态:
reactive-resume-reactive-resume-1为healthy。 - 容器内验证:
/app/apps/web/.output/public/assets/file-D5WsIgJH.js和/app/apps/web/.output/server/_ssr/pdf-document-COfeOLVC.mjs均包含王志博-医工智能外科-简历.pdf。 - HTTP 静态资源验证:
curl http://127.0.0.1:3003/assets/file-D5WsIgJH.js可检索到王志博-医工智能外科-简历.pdf。 - Cache bust 验证:业务页面 import 已指向
file-D5WsIgJH.js?v=rr-filename-20260519-cn。 - 服务健康验证:
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-10-56 修改简历PDF下载文件名。 - Gitea 远端推送:执行
git push origin main时失败,原因是 HTTP 远端http://192.168.31.5:5002无法读取用户名;未在命令行写入账号密码。