← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1903.c.8.d

预览是有限风险检查

理解等级:高级

plan 或 preview 对比代码与实例,列出拟议变更,适合发现重建数据库等破坏性操作;可自动解析结果检查政策。人工阅读可能漏看,预览也可能不知道镜像不存在等深层事实。它是实例部署前的有限保障,复用栈仍需实际部署和测试。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 实现基础设施代码测试 · 查看原书依据

      Having humans review changes isn’t very reliable. People might misunderstand or not notice a problematic change. You can write automated tests that check the output of a preview command. This kind of test might check changes against policies, failing if the code creates a deprecated

    参考来源

    - 位置:《Infrastructure As Code》第18章《实现基础设施代码测试》(来源项目:book-sources;源文件:extracted/Infrastructure As Code/_epub-src/OEBPS/ch18.html) - 结论依据:原文在该段定义概念并解释相关过程或限制,支撑“plan 或 preview 对比代码与实例,列出拟议变更,适合发现重建数据库等破坏性操作;可自动解析结果检查政策”这一核心结论;正文的用途与边界据同小节后续论述整理。 - 原始内容:Having humans review changes isn’t very reliable. People might misunderstand or not notice a problematic change. You can write automated tests that check the output of a preview command. This kind of test might check changes against policies, failing if the code creates a deprecated