Vagrant 运行kitchen测试时无法接受许可证

Vagrant 运行kitchen测试时无法接受许可证,vagrant,chef-infra,chef-recipe,test-kitchen,Vagrant,Chef Infra,Chef Recipe,Test Kitchen,我运行厨房测试,不能接受许可证,回答“是”什么也不做 厨房 provisioner: name: chef_zero always_update_cookbooks: true retry_on_exit_code: - 35 # 35 is the exit code signaling that the node is rebooting max_retries: 1 client_rb: exit_status: :enabled # Opt-in to the

我运行厨房测试,不能接受许可证,回答“是”什么也不做

厨房

provisioner:
  name: chef_zero
  always_update_cookbooks: true
  retry_on_exit_code:
  - 35 # 35 is the exit code signaling that the node is rebooting
  max_retries: 1
client_rb:
    exit_status: :enabled # Opt-in to the standardized exit codes
    client_fork: false  # Forked instances don't return the real exit code
    environment: _default
    chef_license: accept
    product_name: chef
    chef-client: 14

根据github问题,尝试在provisioner部分从
accept
更新到
accept no persist

供应器:
姓名:chef_zero
总是更新食谱:真的吗
日志级别:信息
厨师长执照:不接受
产品名称:厨师
产品版本:14

注意(通过tas50对github问题的评论):TestKitchen 1.x不支持chef许可。计划是将2.x分支上的工作向后移植到1-stable分支,并在支持的情况下发布一个新的1.x版本