Test kitchen is Chef's mix testing syntax. It empowers writing tests, which pursue VM is instantiated and combined utilizing the cookbook. The tests keep running on VM and can check that everything fills in of course.
This is node contract to ChefSpec, which just recreates a Chef run. Test Kitchen boots up a genuine node and runs Chef on it.
So as to do this, we need Vagrant installed on the machine which helps in dealing with a virtual machine. At that point we need bookshelf installed and snared with Vagrant so as to oversee cookbook conditions
Step 1 − Edit default recipe in the cookbook.
Step 2 – After that edit cookbook attributes.
Step 3 – Let’s edit gem file to install the necessary Ruby gems.
Step 4 – Then install the necessary Ruby gem.
Step 5 – Let’s create .kitchen.yml file in the cookbook.
Step 6 – Now create a test directory inside the cookbook.
Step 7 – Generate a test cookbook for integration testing.
Step 8 – At this step edit test cookbooks default recipe.
Step 9 – Go to the cookbook and create Minitest Spec.
Step 10 – Now edit your main cookbook's Berksfile.
Chef (software) Related Interview Questions
|Linux Interview Questions||Windows 95 Interview Questions|
|Mac OS X Deployment Interview Questions||Mac OS X TroubleShooting Interview Questions|
|IBM AIX Interview Questions||IBM AIX 7 Administration Interview Questions|
|Windows 7 Interview Questions||Berkeley Software Distribution (BSD) Interview Questions|
|Advanced Linux Interview Questions||Devops Chef Interview Questions|
Chef (software) Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.