官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 伊金霍洛旗| 镇坪县| 屯门区| 宁化县| 佳木斯市| 潞西市| 乐陵市| 兴化市| 藁城市| 桃江县| 肃宁县| 扎鲁特旗| 绵竹市| 宁强县| 邮箱| 开鲁县| 鸡泽县| 德兴市| 疏勒县| 手机| 芮城县| 都江堰市| 沙湾县| 丰台区| 固安县| 木兰县| 达州市| 平泉县| 贵阳市| 沐川县| 靖远县| 石首市| 巴里| 蚌埠市| 平武县| 田阳县| 榆中县| 沧源| 托克逊县| 龙岩市| 勃利县|