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

2.2 KiB
Raw Permalink Blame History

测试方案-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-1healthy
  • 容器内验证:/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 无法读取用户名;未在命令行写入账号密码。