Skip to content

添加自动化验证,避免初始化脚本重置数据 #28

Description

@fsword

之前存在一个bug是这样的,由于seed脚本编写的不严密,导致web容器重启并重新执行 rake db:seed 时会错误的重置admin的密码,这类错误需要有自动化的手段及时发现。

大致的思路应该是这样:

  1. 系统自动化部署验证至少两遍,确保部署工作可重复
  2. 执行 integration test 时需要保留脏数据,用于在遗留数据下的测试
  3. 必要时可以准备一个线上数据脱敏后的数据库,专用于基于遗留数据的升级部署测试

这样,应该可以确保数据初始化成功,且能重复执行而不会重置旧数据

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions