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

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.

主站蜘蛛池模板: 东城区| 乌兰县| 扎兰屯市| 黔西县| 闸北区| 大兴区| 揭西县| 江油市| 邵东县| 吕梁市| 张家口市| 瑞金市| 辉县市| 杭州市| 额济纳旗| 桑植县| 庆云县| 获嘉县| 浦东新区| 德兴市| 和硕县| 灵宝市| 吐鲁番市| 通道| 巨野县| 贺兰县| 东辽县| 曲靖市| 突泉县| 厦门市| 江安县| 炉霍县| 汝阳县| 高密市| 喜德县| 环江| 达孜县| 天峨县| 夏河县| 武功县| 石城县|