- Chef:Powerful Infrastructure Automation
- John Ewart Matthias Marschall Earl Waud
- 157字
- 2021-07-09 21:06:34
Testing recipes
There are a number of ways to test your recipes. One approach is to simply follow the process of developing your recipes, uploading them to your Chef server, and deploying them to a host; repeat this until you are satisfied. This has the benefit of executing your recipes on real instances, but the drawback is that it is slow, particularly if you are testing on multiple platforms, and requires that you maintain a fleet of hosts. If your cookbook run times are reasonably short and you have a small number of platforms to support them, then this might be a viable option. There is a better option to test your recipes, and it is called ChefSpec. For those who have used RSpec, a Ruby testing library, these examples will be a natural extension of RSpec. If you have never used RSpec, the beginning of this chapter will introduce you to RSpec's testing language and mechanisms.
- 現代測控系統典型應用實例
- 火格局的時空變異及其在電網防火中的應用
- Practical Ansible 2
- Seven NoSQL Databases in a Week
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 自動檢測與傳感技術
- Mastering Elastic Stack
- OpenStack Cloud Computing Cookbook
- 電氣控制與PLC技術應用
- 分析力!專業Excel的制作與分析實用法則
- 智能生產線的重構方法
- 單片機技術項目化原理與實訓
- 電腦上網入門
- PowerMill 2020五軸數控加工編程應用實例
- MPC5554/5553微處理器揭秘