Unit tests for chef cookbooks with chefspec. knife cookbook create tdi-example-vim -o . next step is to define some examples inside described recipe,. For chefspec, tests go in your cookbook's spec a great way to learn how to write good tests is by example. the chefspec project contains example tests for many. Chefspec - write rspec examples for opscode chef cookbooks.
Chef chefspec - learn chef in simple and easy steps starting from basic to advanced concepts with examples including overview, architecture, version control system setup, workstation, client, test kitchen, knife, solo setup, cookbooks, cookbook dependencies, environment variable, roles, chef client as daemon, shell, testing cookbooks. In trying to write chefspec tests, following the examples on the chefspec readme (https: why can't chefspec find the chef_handler cookbook? ask question.. For example, chefspec allows you to say things like: it 'creates a file' do in order to get started with chefspec, create a new cookbook directory.
0 komentar:
Posting Komentar